* (non-member) wait-notify mechanism in pthreads
@ 2003-04-28 8:37 ronkhu
2003-04-28 13:57 ` Glynn Clements
0 siblings, 1 reply; 3+ messages in thread
From: ronkhu @ 2003-04-28 8:37 UTC (permalink / raw)
To: linux-c-programming
Im not a member of this list but I've got a question:
How does one go about implementing a wait-notify mechanism in pthreads
in lieu of the
busy-waiting approach( which tends to be a cpu-hog)?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: (non-member) wait-notify mechanism in pthreads
2003-04-28 8:37 (non-member) wait-notify mechanism in pthreads ronkhu
@ 2003-04-28 13:57 ` Glynn Clements
2003-04-28 17:02 ` Luciano Moreira - igLnx
0 siblings, 1 reply; 3+ messages in thread
From: Glynn Clements @ 2003-04-28 13:57 UTC (permalink / raw)
To: ronkhu; +Cc: linux-c-programming
ronkhu wrote:
> Im not a member of this list but I've got a question:
> How does one go about implementing a wait-notify mechanism in pthreads
> in lieu of the
> busy-waiting approach( which tends to be a cpu-hog)?
Mutexes, condition variables, or POSIX semaphores. See the "POSIX
Threads" section in the "libc" Info file for more details.
--
Glynn Clements <glynn.clements@virgin.net>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: (non-member) wait-notify mechanism in pthreads
2003-04-28 13:57 ` Glynn Clements
@ 2003-04-28 17:02 ` Luciano Moreira - igLnx
0 siblings, 0 replies; 3+ messages in thread
From: Luciano Moreira - igLnx @ 2003-04-28 17:02 UTC (permalink / raw)
To: Glynn Clements, ronkhu; +Cc: linux-c-programming
If you dont need to execute something while waiting a thread to exit, you
can use only pthread API instead mutex, waiting a thread to join.
Luciano
----- Original Message -----
From: "Glynn Clements" <glynn.clements@virgin.net>
To: <ronkhu@ntsp.nec.co.jp>
Cc: <linux-c-programming@vger.kernel.org>
Sent: Monday, April 28, 2003 10:57 AM
Subject: Re: (non-member) wait-notify mechanism in pthreads
>
> ronkhu wrote:
>
> > Im not a member of this list but I've got a question:
> > How does one go about implementing a wait-notify mechanism in pthreads
> > in lieu of the
> > busy-waiting approach( which tends to be a cpu-hog)?
>
> Mutexes, condition variables, or POSIX semaphores. See the "POSIX
> Threads" section in the "libc" Info file for more details.
>
> --
> Glynn Clements <glynn.clements@virgin.net>
> -
> To unsubscribe from this list: send the line "unsubscribe
linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-28 17:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-28 8:37 (non-member) wait-notify mechanism in pthreads ronkhu
2003-04-28 13:57 ` Glynn Clements
2003-04-28 17:02 ` Luciano Moreira - igLnx
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).