Re: ATC, an example please.
- From: "Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 17:29:01 +0200
On 30 Jun 2005 08:55:27 -0400, Robert A Duff wrote:
> "Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx> writes:
>
>> ATC transfers control, it does not abort any other task.
>
> Well, it does abort any tasks inside the abortable region of the ATC.
> The task in this example could be moved inside the ATC,
> and then it would be aborted automatically.
Yes.
> But I was under the impression that the original poster wanted to abort
> the processing inside the accept statement, and allow the task to loop
> back and accept entry calls again.
Maybe, however it is difficult to see why then there could be any need in
two tasks. During rendezvous they stay synchronous anyway, so it is better
to have a subprogram inside the ATC.
> I don't see the point of splitting into the Start and Ready entries,
> since the caller isn't doing anything useful in between.
Just to mark where the calculation starts...
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.
- Follow-Ups:
- Re: ATC, an example please.
- From: Robert A Duff
- Re: ATC, an example please.
- References:
- ATC, an example please.
- From: e.coli
- Re: ATC, an example please.
- From: Dmitry A. Kazakov
- Re: ATC, an example please.
- From: Robert A Duff
- ATC, an example please.
- Prev by Date: Re: How difficult is ada to learn?
- Next by Date: Re: Virtual Components in Ada and Ruby
- Previous by thread: Re: ATC, an example please.
- Next by thread: Re: ATC, an example please.
- Index(es):
Relevant Pages
|