Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 7/7/83; site rlgvax.UUCP
Path: utzoo!linus!decvax!harpo!seismo!rlgvax!guy
From: guy@rlgvax.UUCP (Guy Harris)
Newsgroups: net.unix-wizards,net.bugs
Subject: Re: sleep()
Message-ID: <840@rlgvax.UUCP>
Date: Sun, 17-Jul-83 07:08:50 EDT
Article-I.D.: rlgvax.840
Posted: Sun Jul 17 07:08:50 1983
Date-Received: Sun, 17-Jul-83 17:00:21 EDT
References: <567@hou5d.UUCP>,  <795@rlgvax.UUCP>
Organization: CCI Office Systems Group, Reston, VA
Lines: 8

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