Why UNIX doesn't support event?

Chris Torek chris at mimsy.UUCP
Fri Feb 10 16:44:54 AEST 1989


In article <3921 at cbnews.ATT.COM> rock at cbnews.ATT.COM (Y. Rock Lee) writes:
>Inside UNIX KERNEL, one can also sleep on an event(address)
>and expect to be waken up later by someone else.
>But, on the user level a process can only sleep on TIME.
>... What is the philosophy behind [this]?

Not true (one can also await a signal with pause() or sigpause()),
but the essential difference is that, while the kernel is multithreaded
and thus needs a fancy scheduling mechanism, Unix processes are
(normally) single-threaded so such a primitive is pointless.

You can always write your own, by writing your own scheduler.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.wizards mailing list