comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: C++ primer on multithreading
Date: Sun, 24 Apr 2011 09:42:19 +0200
Date: 2011-04-24T09:42:19+02:00	[thread overview]
Message-ID: <j2mohtafo4c6.1c1zatdywwksb.dlg@40tude.net> (raw)
In-Reply-To: 73ead305-a1e1-4d8a-b9ae-39672108cacf@f11g2000vbx.googlegroups.com

On Sat, 23 Apr 2011 14:35:02 -0700 (PDT), Maciej Sobczak wrote:

> On Apr 23, 8:51�am, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
> wrote:
> 
>> For that you need a queue of threads
> 
> This queue is already part of system-level implementation of condition
> variables and there is no need to implement it at the user level.

Event-based implementations have advantages of their own. E.g. thread queue
when used must be sorted by thread priorities and/or queueing time. One
frequently must wait for multiple events: "can queue" or "timed out" or
"can read from file" or "must exist'.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



      reply	other threads:[~2011-04-24  7:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-20 10:45 C++ primer on multithreading Alex R. Mosteo
2011-04-20 11:23 ` Peter C. Chapin
2011-04-20 13:06   ` Alex R. Mosteo
2011-04-20 11:32 ` Dmitry A. Kazakov
2011-04-20 12:00 ` Maciej Sobczak
2011-04-20 13:04   ` Alex R. Mosteo
2011-04-20 14:34     ` Georg Bauhaus
2011-04-20 20:44     ` Maciej Sobczak
2011-04-21  8:50       ` Alex R. Mosteo
2011-04-21  6:58     ` Dmitry A. Kazakov
2011-04-21 21:03       ` Maciej Sobczak
2011-04-22  8:38         ` Dmitry A. Kazakov
2011-04-22 21:45           ` Maciej Sobczak
2011-04-23  6:51             ` Dmitry A. Kazakov
2011-04-23 21:35               ` Maciej Sobczak
2011-04-24  7:42                 ` Dmitry A. Kazakov [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox