2003-11-10 19:12:41

by sankar

[permalink] [raw]
Subject: pthread condition variables question

Hi,
How is pthread condition variables implemented on linux. Specifically I want
to know how pthread_cond_signal() wakes the waiting thread. Does it send any
specific signal to the waiting thread or is there any other means??

Thx in advance.

Sankarshana M


2003-11-12 04:26:58

by Perez-Gonzalez, Inaky

[permalink] [raw]
Subject: RE: pthread condition variables question

> From: sankar

> How is pthread condition variables implemented on linux. Specifically I want
> to know how pthread_cond_signal() wakes the waiting thread. Does it send any
> specific signal to the waiting thread or is there any other means??

Using futexes (wait queues); http://people.redhat.com/drepper/futex.pdf.

I?aky P?rez-Gonz?lez -- Not speaking for Intel -- all opinions are my own (and my fault)