sleep()

Guy Harris guy at rlgvax.UUCP
Sun Jul 17 21:08:50 AEST 1983


It turns out the speedup was due to other causes; pause() sleeps on &u for
all processes where it is called.  Therefore, anybody who gets woken up during
a pause() wakes up everybody else who is pause()ing, so the old problem is
still there.  To remove this problem, make pause() sleep on u.u_procp+1 or
some other unique number (u.u_procp is out because wait() sleeps there).

	Guy Harris
	{seismo,mcnc,we13,brl-bmd,allegra}!rlgvax!guy



More information about the Comp.unix.wizards mailing list