[asterisk-dev] (Possibly) Unnecessary futex calls
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Fri Feb 20 10:33:03 CST 2009
On Friday 20 February 2009 08:50:01 Benny Amorsen wrote:
> Sean Bright <sean.bright at gmail.com> writes:
> > Benny Amorsen wrote:
> >> there. However, what is pid 8947 doing?! It seems to be waking up
> >> because of a futex at least 25 times a second.
> >
> > Perhaps a silly question, but...
> >
> > All of those PIDs (25451, 25452, and 8947) belong to an Asterisk process?
>
> Yes, they're actually thread ID's not process ID's. Not that there's
> much difference in Linux, but I should still get it right.
In answer to your original question, this is probably the underlying
implementation of a mutex. In this case, it's a mutex with contention,
relying on the kernel to provide contention resolution.
--
Tilghman
More information about the asterisk-dev
mailing list