[comp.os.os2.programmer] SH & timeslicing

hysky@kontu.utu.fi (10/11/90)

I'm having some *weird* problems with my OS/2 1.2EE.
I'm currently using the Unix like shell posted to the news a while ago.
When I start NMAKE on background (nmake &) it seems that it only works
when I do something on foreground.
I have tried to experiment with timeslice, maxwait, priority but nothing
seems to help; nmake just waits for yesterday....
(That timeslicing system seems to suck anyway IMHO)

All answers greatly appreciated,
/Hysky@kontu.utu.fi

ballard@cheddar.ucs.ubc.ca (Alan Ballard) (10/11/90)

In article <1990Oct11.122421.35597@kontu.utu.fi> hysky@kontu.utu.fi writes:

>I'm currently using the Unix like shell posted to the news a while ago.
>When I start NMAKE on background (nmake &) it seems that it only works
>when I do something on foreground.
 
Could it be that unix-like shell (which I haven't looked at) is actually
dumb enough to sit in a polling loop waiting for you to enter something?
That would explain the symptom, since the foreground task gets priority.
(And the background would get a share of the CPU when the foreground does
something else, such as any disk I/O). 
 
Just speculation... you could check it out by running one of the CPU 
monitor programs and see if it shows 100%. 
Alan Ballard                   | Internet: ballard@ucs.ubc.ca
University Computing Services  |   Bitnet: USERAB1@UBCMTSG
University of British Columbia |    Phone: 604-228-3074
Vancouver B.C. Canada V6R 1W5  |      Fax: 604-228-5116

rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) (10/17/90)

In article <1990Oct11.122421.35597@kontu.utu.fi> hysky@kontu.utu.fi writes:
>I'm having some *weird* problems with my OS/2 1.2EE.
>I'm currently using the Unix like shell posted to the news a while ago.
>When I start NMAKE on background (nmake &) it seems that it only works
>when I do something on foreground.
>I have tried to experiment with timeslice, maxwait, priority but nothing
>seems to help; nmake just waits for yesterday....

(I ported that shell to OS/2)

I have already noticed that too if running the shell in a PM Window. If
the shell is running fullscreen, everything works fine.
At the moment I could only suggest running it fullscreen ..

If anyone has an idea what PM does with it's child sessions he could
send me a note ..

Kai Uwe Rommel

--
/* Kai Uwe Rommel
 * Munich
 * rommel@lan.informatik.tu-muenchen.dbp.de
 */