Messages in this thread |  | | Date | Thu, 24 Aug 2000 20:27:39 +0200 | From | "Andi Kleen" <> | Subject | Re: SCO: "thread creation is about a thousand times faster than on |
| |
On Thu, Aug 24, 2000 at 11:28:42AM -0600, yodaiken@fsmlabs.com wrote: > On Thu, Aug 24, 2000 at 08:14:17PM +0200, Andi Kleen wrote: > > On Thu, Aug 24, 2000 at 09:11:48PM +0200, Alon Ziv wrote: > > > Even better: it's even possible to 'cheat' and make _all_ threads be owned > > > by the LinuxThreads 'manager' thread (basically, this is done by making the > > > initial thread into the manager and switching its computation to some other > > > thread). Which means--- just the one special thread in the whole mishmash. > > > > That still has the problem that you have to context switch to the > > manager thread for creating new threads, causing horrible latency. > > > > You really want pthread_create() to call clone() directly, without > > playing any pipe tricks. > > Right: so clone with the PARENT flag set. What's the problem?
Then your original parent would see any thread deaths. Probably not what you wanted.
-Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |