comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: process blocking
Date: Fri, 10 Sep 2004 03:07:19 GMT
Date: 2004-09-10T03:07:19+00:00	[thread overview]
Message-ID: <HT80d.275164$8_6.229462@attbi_s04> (raw)
In-Reply-To: 41400af9$1@dnews.tpgi.com.au

In kinda pseudo-code form:

  If you set up the main process pMain with a loop, something like:

  task pMain is
  begin
    loop
      accept Step1;
      ... some code ...
      accept Step2;
    end loop;
  end pMain;

  Then have the process p1 rendevous with the two in sequence:

    myTask.Step1;
   ... some code ...
    myTask.Step2;

  You should get the described behaviour.

Steve
(The Duck)

"P Hull" <p.hull@msw.com> wrote in message
news:41400af9$1@dnews.tpgi.com.au...
> Hi, I know this is possible, but how does one go about having a process
(p1)
> siezing control of another process (pMain) such that no other process (p2,
> p3, .. pn) is able to access pMain? I am guessing you define one channel
and
> maintain access to this channel? I have no idea how to implement such
> blocking.
>
> any help most appreciated
>
> thanks
> peter
>
>





      parent reply	other threads:[~2004-09-10  3:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-09  7:49 process blocking P Hull
2004-09-09 11:38 ` Stephen Leake
2004-09-09 11:50   ` P Hull
2004-09-09 14:51     ` Georg Bauhaus
2004-09-09 18:09     ` Ludovic Brenta
2004-09-10  3:07 ` Steve [this message]
replies disabled

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