comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Freezing a task
Date: Fri, 18 Nov 2011 09:56:24 +0100
Date: 2011-11-18T09:56:24+01:00	[thread overview]
Message-ID: <1ss4otw82eqys$.dxnargs48fgt$.dlg@40tude.net> (raw)
In-Reply-To: 28970031.85.1321580088989.JavaMail.geo-discussion-forums@yqbl36

On Thu, 17 Nov 2011 17:34:48 -0800 (PST), Rego, P. wrote:

> Well, answering also Jeff, Adam and Stefan, there are some bots which are
> shared by some tasks, and each task controls just one subsystem
> reciprocally (i.e. this one is controlled at one timeslot by just one
> task), but other tasks can "steal" the thread, so they can assume the
> control over that ones.

This is what rendezvous are for. If the task A and the task B must
cooperatively do some stuff (= control a bot), they just engage a
rendezvous and perform that stuff upon the rendezvous. That would
effectively block one of them.

P.S. I don't understand this design. Why do not you have a pool of tasks
and assign a free one for each operation to be performed on the bot? Once
completed the operation, the task returns to the pool.

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



  reply	other threads:[~2011-11-18  8:56 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-17 15:33 Freezing a task Rego, P.
2011-11-17 16:00 ` Simon Wright
2011-11-17 16:22   ` Dmitry A. Kazakov
2011-11-17 16:53     ` Dmitry A. Kazakov
2011-11-17 18:27     ` Simon Wright
2011-11-18  1:23     ` Rego, P.
2011-11-18  6:04       ` Jeffrey Carter
2011-11-18  8:47       ` Dmitry A. Kazakov
2011-11-18 10:05         ` Simon Wright
2011-11-18 11:41           ` Georg Bauhaus
2011-11-18 13:42             ` Dmitry A. Kazakov
2011-11-17 16:00 ` Dmitry A. Kazakov
2011-11-17 16:53   ` stefan-lucks
2011-11-17 17:08     ` Dmitry A. Kazakov
2011-11-17 17:13 ` Adam Beneschan
2011-11-17 18:01   ` AdaMagica
2011-11-18  1:22   ` Rego, P.
2011-11-17 17:34 ` Jeffrey Carter
2011-11-18  1:34   ` Rego, P.
2011-11-18  8:56     ` Dmitry A. Kazakov [this message]
2011-11-18  7:24 ` anon
2011-11-18 22:25   ` Anh Vo
2011-11-19  7:37     ` anon
2011-11-22  1:58   ` Rego, P.
replies disabled

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