From: G.B. <nonlegitur@futureapps.invalid>
Subject: Re: How to: communication between multiple tasks using protected objects - with no polling?
Date: Thu, 22 Jan 2015 21:52:17 +0000 (UTC)
Date: 2015-01-22T21:52:17+00:00 [thread overview]
Message-ID: <204973896443655271.096946nonlegitur-futureapps.invalid@reader80.eternal-september.org> (raw)
In-Reply-To: 1x7jndf8up05d.1n1l3ck15y1lf.dlg@40tude.net
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote:
> On Wed, 21 Jan 2015 19:56:17 +0100, Jacob Sparre Andersen wrote:
>> To me it sounds like a single protected object for storing the state of
>> all the workers (students) makes most sense. The workers can push in
>> their most recent state through a (common) protected procedure. The
>> master (teacher) blocks on a protected entry until at least one worker
>> has updated its state.
>
> Right, though this works only with a single subscriber (the teacher).
> Usually there are more than one .
The PO and the teacher task(s) could share a suspension
object (one for each teacher). When the PO has collected
enough items, it calls Set_True on some suspension
object to wake the teacher task up.
next prev parent reply other threads:[~2015-01-22 21:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 22:36 How to: communication between multiple tasks using protected objects - with no polling? Esa Riihonen
2015-01-21 0:19 ` Hubert
2015-01-21 16:53 ` Esa Riihonen
2015-01-21 23:22 ` Hubert
2015-01-22 13:24 ` Esa Riihonen
2015-01-21 0:47 ` Jeffrey Carter
2015-01-21 8:11 ` Simon Wright
2015-01-21 17:16 ` Esa Riihonen
2015-01-21 18:39 ` Jeffrey Carter
2015-01-22 13:32 ` Esa Riihonen
2015-01-21 8:28 ` Dmitry A. Kazakov
2015-01-21 17:34 ` Esa Riihonen
2015-01-21 18:56 ` Jacob Sparre Andersen
2015-01-21 20:15 ` Dmitry A. Kazakov
2015-01-22 21:52 ` G.B. [this message]
2015-01-23 8:25 ` Dmitry A. Kazakov
2015-01-21 20:02 ` Dmitry A. Kazakov
2015-01-22 13:37 ` Esa Riihonen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox