From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,371144ace2969d7e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!87.79.20.105.MISMATCH!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: C++ primer on multithreading Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <9014siefelqm$.18a5dek2p9s4h$.dlg@40tude.net> <4c5fb8d6-7785-4c9f-bcf0-2bf6b3bb2cb0@e26g2000vbz.googlegroups.com> <1fr5ppc41ca7u.1oh598fh7fh9w.dlg@40tude.net> <73ead305-a1e1-4d8a-b9ae-39672108cacf@f11g2000vbx.googlegroups.com> Date: Sun, 24 Apr 2011 09:42:19 +0200 Message-ID: NNTP-Posting-Date: 24 Apr 2011 09:42:19 CEST NNTP-Posting-Host: 2e0288f1.newsspool3.arcor-online.net X-Trace: DXC=akN33B6A]c`EB;5>eE0T7mMcF=Q^Z^V3h4Fo<]lROoRa8kF On Sat, 23 Apr 2011 14:35:02 -0700 (PDT), Maciej Sobczak wrote: > On Apr 23, 8:51�am, "Dmitry A. Kazakov" > 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