Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!sun-barr!decwrl!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.c Subject: Re: threads for C/C++ under Unix? Message-ID: <8720@goofy.megatest.UUCP> Date: 13 Oct 89 00:40:34 GMT References: Organization: Megatest Corporation, San Jose, Ca Lines: 15 From article , by montnaro@sprite.crd.ge.com (Skip Montanaro): > > You can't have preemptive lightweight processes without kernel support. > Hmmm. What kind of kernel support do you need? All that's necessary, I think, is that it have a "select" routine which can wake up when potentially blocking system calls would not block. Like Unix does. You must write a centralized scheduler that knows about I/O, signals, etc... LWP's would either have to forego standard system calls, or you would need a lookalike library that substitutes scheduler-based routines for the blocking calls like getchar(), etc.. But I think it can be done easily enough under BSD Unix, which has never been advertized as having kernel support for LWP's.