Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kqueue/kevent project



On Mon, Mar 11, 2002 at 05:06:55PM -0500, Jim Magee wrote:
> On Monday, March 11, 2002, at 04:45 PM, Stefan Arentz wrote:
> > On Mon, Mar 11, 2002 at 09:16:16AM -0500, Jim Magee wrote:
> >> One "problem" the kqueues implementation presents: multiple threads
> >> sharing a kqueue.
> >
> > Are you refering to kernel threads or user threads?
>
> I'm referring to multiple threads (pthreads) in an application waiting
> on a single kqueue. The same problem arises, however, if each thread
> has its own kqueue, but the same event source is added to multiple of
> them. In either case, more than thread will be awakened if the source
> fires.

Ok, and this is a problem because waking up multiple threads at the
same time is expensive and gives a high load on the system? Sorry
this is one of the areas where I miss the practical experience :)

Stefan
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: kqueue/kevent project (From: Stefan Arentz <email@hidden>)
 >Re: kqueue/kevent project (From: Jim Magee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.