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,7897733b1978b6a4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.156.85 with SMTP id v21mr305772bkw.8.1321606562329; Fri, 18 Nov 2011 00:56:02 -0800 (PST) Path: dq5ni22799bkb.0!nntp.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Freezing a task Date: Fri, 18 Nov 2011 09:56:24 +0100 Organization: cbb software GmbH Message-ID: <1ss4otw82eqys$.dxnargs48fgt$.dlg@40tude.net> References: <32992849.648.1321544004241.JavaMail.geo-discussion-forums@vbmh5> <28970031.85.1321580088989.JavaMail.geo-discussion-forums@yqbl36> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news2.google.com comp.lang.ada:14452 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2011-11-18T09:56:24+01:00 List-Id: 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