comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: Basic question about select
Date: Thu, 29 Apr 2010 11:42:18 -0700
Date: 2010-04-29T11:42:18-07:00	[thread overview]
Message-ID: <hrckgu$atb$1@tornado.tornevall.net> (raw)
In-Reply-To: <ee7c15df-2fbf-46d8-9e0b-7b8597ef3b17@y18g2000prn.googlegroups.com>

Adam Beneschan wrote:
> 
> Hmmm... I haven't studied the dispatching rules enough to know how
> multiple processors affect things---that's why I assumed a single
> processor, for simplicity.  If there are more than one, however, and
> if the body of PID will get assigned to run on a different processor
> than the main thread, then I'd think that makes things worse---you
> can't tell at all whether the SELECT or the ACCEPT will occur first,
> and there isn't any reason that it should work the same every time you
> run it.

Sure. They might happen at the same time.

That's the nature of concurrency. If you want things to happen in a specific 
order, you need to make them all part of the same task.

-- 
Jeff Carter
"Now look, Col. Batguano, if that really is your name."
Dr. Strangelove
31



  reply	other threads:[~2010-04-29 18:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-28 18:16 Basic question about select John Wilkinson
2010-04-28 18:36 ` Dmitry A. Kazakov
2010-04-28 21:00   ` Jeffrey R. Carter
2010-04-28 22:41     ` Dmitry A. Kazakov
2010-04-29  0:20       ` Jeffrey R. Carter
2010-04-29  2:16         ` Adam Beneschan
2010-04-29  4:25           ` Jeffrey R. Carter
2010-04-29 17:27             ` Adam Beneschan
2010-04-29 18:42               ` Jeffrey R. Carter [this message]
2010-04-29  0:47       ` Jeffrey R. Carter
2010-04-29  7:37         ` Dmitry A. Kazakov
replies disabled

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