* Tasking
@ 1996-06-05 0:00 Tod Trowbridge
1996-06-05 0:00 ` Tasking Theodore E. Dennison
1996-06-07 0:00 ` Tasking Mark Fisher
0 siblings, 2 replies; 11+ messages in thread
From: Tod Trowbridge @ 1996-06-05 0:00 UTC (permalink / raw)
I just started programming in ada and have a general
question about tasking.
I have a task in a package. If a procedure that withs
that package calls the task, does the task have to be waiting
at the accept statement, or will the procedure wait for the
task to get there.
Any help in this matter would be greatly appreciated
Thanks
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tasking
1996-06-05 0:00 Tasking Tod Trowbridge
@ 1996-06-05 0:00 ` Theodore E. Dennison
1996-06-07 0:00 ` Tasking Mark Fisher
1 sibling, 0 replies; 11+ messages in thread
From: Theodore E. Dennison @ 1996-06-05 0:00 UTC (permalink / raw)
Tod Trowbridge wrote:
>
> I have a task in a package. If a procedure that withs
> that package calls the task, does the task have to be waiting
> at the accept statement, or will the procedure wait for the
> task to get there.
The procedure will wait for the task to "accept".
If you want the other behavior you described, use a select
statement of the following form:
select
entry_call_statement
[sequence_of_statements]
else
sequence_of_statements
end select;
This is called a "Conditional Entry Call".
--
T.E.D.
| Work - mailto:dennison@escmail.orl.mmc.com |
| Home - mailto:dennison@iag.net |
| URL - http://www.iag.net/~dennison |
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tasking
1996-06-05 0:00 Tasking Tod Trowbridge
1996-06-05 0:00 ` Tasking Theodore E. Dennison
@ 1996-06-07 0:00 ` Mark Fisher
1 sibling, 0 replies; 11+ messages in thread
From: Mark Fisher @ 1996-06-07 0:00 UTC (permalink / raw)
It can work either way...
The procedure making the call to the entry point
will be suspend execution until the task reaches the
accept statement.
If the task reaches the accept statement first,
it will block (suspend) until the procedure makes
the entry call.
simple when you know ...
Mark
^ permalink raw reply [flat|nested] 11+ messages in thread
* tasking
@ 1998-10-07 0:00 grave
0 siblings, 0 replies; 11+ messages in thread
From: grave @ 1998-10-07 0:00 UTC (permalink / raw)
Hi,
I'm wanting to kill a task to let an exception propagate and kill the
process. How can I do this if the task is already excuting some part of
code like this :
select
entry start;
or
terminate;
end select;
Here I'm wanting to kill the task when it works in Do_Some_Stuff_Here;
Is this possible ?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Tasking
@ 1998-10-17 0:00 Chang Yang Lim
1998-10-17 0:00 ` Tasking David C. Hoos, Sr.
0 siblings, 1 reply; 11+ messages in thread
From: Chang Yang Lim @ 1998-10-17 0:00 UTC (permalink / raw)
I tried to use Tasking in my project recently. It worked fine sometimes.
However, it does give me a trouble, i don' t know why sometimes i got
"Segmentation fault". at first i thought maybe i passed the pointer
wrong, however, later i found it's not my problem. can anyone help me?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tasking
1998-10-17 0:00 Tasking Chang Yang Lim
@ 1998-10-17 0:00 ` David C. Hoos, Sr.
0 siblings, 0 replies; 11+ messages in thread
From: David C. Hoos, Sr. @ 1998-10-17 0:00 UTC (permalink / raw)
Chang Yang Lim wrote in message
<36287E02.C9F4908D@teaching.cs.adelaide.edu.au>...
>I tried to use Tasking in my project recently. It worked fine sometimes.
>However, it does give me a trouble, i don' t know why sometimes i got
>"Segmentation fault". at first i thought maybe i passed the pointer
>wrong, however, later i found it's not my problem. can anyone help me?
>
It's virtually impossible to provide help when you do not specify any of the
following:
OS
OS version
compiler
compiler version
Furthermore, you need to be more specific about the conditions under which
the problem occurs, and possibly supply the failing source code.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Tasking
@ 1998-10-27 0:00 Chang Yang Lim
0 siblings, 0 replies; 11+ messages in thread
From: Chang Yang Lim @ 1998-10-27 0:00 UTC (permalink / raw)
Hi everyone, I have problems with tasking again. ok, let me put in this
way:
I am using protected xxxx is in the main program. however, there are
few things that i will load the procedures from another package. All
procedures loaded from other packages are running in tasking.
and procedures will need to access the variables in protected part. how
am i suppose to do that?
eg.
protected x is
procedure save(...);
procedure load(...);
private
x : ...
end protected
task type a is
end a;
type a_access is access a;
task body a is
begin
yyyy(...) -- from other packages, and in this procedure, it will
access the values in the protected body part.
end a;
I appreciate someone can give me some guidelines. Thank you.
CY.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Tasking
@ 2005-12-16 7:33 krischik
2005-12-16 8:58 ` Tasking Maciej Sobczak
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: krischik @ 2005-12-16 7:33 UTC (permalink / raw)
Hello,
we have a question about Tasking at wikibooks:
http://en.wikibooks.org/wiki/Talk:Ada_Programming/Tasking
Anybody can help us out here?
Martin
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tasking
2005-12-16 7:33 Tasking krischik
@ 2005-12-16 8:58 ` Maciej Sobczak
2005-12-16 9:01 ` Tasking christoph.grein
2005-12-16 9:03 ` Tasking Dmitry A. Kazakov
2 siblings, 0 replies; 11+ messages in thread
From: Maciej Sobczak @ 2005-12-16 8:58 UTC (permalink / raw)
krischik wrote:
> we have a question about Tasking at wikibooks:
>
> http://en.wikibooks.org/wiki/Talk:Ada_Programming/Tasking
>
> Anybody can help us out here?
The task can become terminated before it even gets activated, it can
also become terminated by abortion...
The book "Concurrency in Ada" by Burns&Wellings has a nice set of
diagrams like the one started in the wikibook - the diagrams get more
complete (and complicated) with each chapter, as the details are added.
--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tasking
2005-12-16 7:33 Tasking krischik
2005-12-16 8:58 ` Tasking Maciej Sobczak
@ 2005-12-16 9:01 ` christoph.grein
2005-12-16 9:03 ` Tasking Dmitry A. Kazakov
2 siblings, 0 replies; 11+ messages in thread
From: christoph.grein @ 2005-12-16 9:01 UTC (permalink / raw)
Not_Yet_Activated
|
| Activate
v
.----- Activating ----.
| | |
| | Begin |
| V | Unhandled
Abort +------ Active -------+ Exception
| | |
| | End |
v v |
Abnormal Completed <----'
| |
| | Terminate
Abort | v
or `---> Terminated
End of
Redezvous
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tasking
2005-12-16 7:33 Tasking krischik
2005-12-16 8:58 ` Tasking Maciej Sobczak
2005-12-16 9:01 ` Tasking christoph.grein
@ 2005-12-16 9:03 ` Dmitry A. Kazakov
2 siblings, 0 replies; 11+ messages in thread
From: Dmitry A. Kazakov @ 2005-12-16 9:03 UTC (permalink / raw)
On 15 Dec 2005 23:33:30 -0800, krischik wrote:
> we have a question about Tasking at wikibooks:
>
> http://en.wikibooks.org/wiki/Talk:Ada_Programming/Tasking
>
> Anybody can help us out here?
Abort?
I think that under certain circumstances it could bring a task from
blocked/ready state to the terminated state.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-12-16 9:03 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-16 7:33 Tasking krischik
2005-12-16 8:58 ` Tasking Maciej Sobczak
2005-12-16 9:01 ` Tasking christoph.grein
2005-12-16 9:03 ` Tasking Dmitry A. Kazakov
-- strict thread matches above, loose matches on Subject: below --
1998-10-27 0:00 Tasking Chang Yang Lim
1998-10-17 0:00 Tasking Chang Yang Lim
1998-10-17 0:00 ` Tasking David C. Hoos, Sr.
1998-10-07 0:00 tasking grave
1996-06-05 0:00 Tasking Tod Trowbridge
1996-06-05 0:00 ` Tasking Theodore E. Dennison
1996-06-07 0:00 ` Tasking Mark Fisher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox