From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: multiple delay alternative
Date: Tue, 6 Mar 2018 17:36:41 +0100
Date: 2018-03-06T17:36:41+01:00 [thread overview]
Message-ID: <p7mg2p$jjg$1@dont-email.me> (raw)
In-Reply-To: <652df156-cec8-4417-ac0c-bed50c163a86@googlegroups.com>
On 03/06/2018 02:50 AM, Mehdi Saada wrote:
>
> Before that, one thing I can't get, even after asking other people:
> for protected objects, in a protected procedure, when it's blocked, because a reading (protected function) or an entry is being served, are the calls to the procedure put on a queue as with entries ?
> Someone said me the advantage of protected procedures was that you don't have to wait, but I read also they were exclusive with each others... damn.
An entry call may block, because the barrier is False or the task is not
executing an accept for it. A protected procedure call doesn't block, because it
has no barrier, but it may have to wait to obtain exclusive access to the PO.
Blocking and waiting are 2 different concepts.
If you have multiple calls to protected procedures of a PO at the same time, I
don't see anything that prevents that being implemented with a queue of callers.
The important thing is that the calls are mutually exclusive and higher priority
callers have precedence over lower priority ones.
--
Jeff Carter
"He that hath no beard is less than a man."
Much Ado About Nothing
132
next prev parent reply other threads:[~2018-03-06 16:36 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-04 18:22 multiple delay alternative Mehdi Saada
2018-03-05 0:21 ` Mehdi Saada
2018-03-05 4:08 ` Bojan Bozovic
2018-03-05 10:17 ` Robert Eachus
2018-03-05 8:15 ` Dmitry A. Kazakov
2018-03-05 9:23 ` AdaMagica
2018-03-05 10:32 ` Bojan Bozovic
2018-03-05 13:50 ` Mehdi Saada
2018-03-05 14:35 ` Dmitry A. Kazakov
2018-03-05 15:09 ` Mehdi Saada
2018-03-06 11:05 ` Dmitry A. Kazakov
2018-03-05 17:37 ` Jeffrey R. Carter
2018-03-05 23:28 ` Simon Wright
2018-03-06 0:11 ` Anh Vo
2018-03-06 1:50 ` Mehdi Saada
2018-03-06 6:00 ` Robert Eachus
2018-03-06 6:03 ` J-P. Rosen
2018-03-06 16:36 ` Jeffrey R. Carter [this message]
2018-03-06 10:31 ` Mehdi Saada
2018-03-06 11:18 ` Dmitry A. Kazakov
2018-03-06 13:43 ` Mehdi Saada
2018-03-06 15:17 ` Dmitry A. Kazakov
2018-03-06 20:06 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox