threads for C/C++ under Unix?

Skip Montanaro montnaro at sprite.crd.ge.com
Fri Oct 13 02:41:56 AEST 1989


In article <12298 at polya.Stanford.EDU> hall at eclipse.stanford.edu (Keith Hall)
writes:


   What is the state-of-the-art in terms of a
   (preferably public domain) portable Unix library that provides
   *preemptive* (time-sliced) lightweight processes?  The C-threads
   package in Mach would serve as a good model of functionality/interface.

You can't have preemptive lightweight processes without kernel support. I
know that Stellar's task system is kernel-supported. Ihave no idea how it
compares to the C-threads interface. You can make blocking system calls from
a task, while other tasks in the same process continue execution. This is
not true for task systems that are pure libraries (like Sun's LWP stuff).

--
Skip Montanaro (montanaro at crdgw1.ge.com)



More information about the Comp.lang.c mailing list