comp.lang.ada
 help / color / mirror / Atom feed
* Concurrency in Ada
@ 2014-09-07 12:29 Stribor40
  2014-09-07 15:05 ` Dennis Lee Bieber
  2014-09-07 18:06 ` Jeffrey Carter
  0 siblings, 2 replies; 7+ messages in thread
From: Stribor40 @ 2014-09-07 12:29 UTC (permalink / raw)


I have this program from online tutorial that says that tasks will run as soon as program starts. My question is when does this program starts on what line if code
WITH Ada.Text_IO;                  --  Include Text_IO Library
WITH Ada.Integer_Text_IO;          --  Include Integer Text_IO Library
PROCEDURE task_demo_01 IS
                                   --  Task Type Specification
     TASK TYPE intro_task (message : Integer);

     TASK BODY intro_task IS       --  Task Body Definition
     BEGIN
          FOR count IN 1..5 LOOP
               Ada.Text_IO.put (Item => "Display from Task ");
               Ada.Integer_Text_IO.put (Item => message, Width => 1);
               Ada.Text_IO.new_line;
          END LOOP;
     END intro_task;
     --  Unlike procedures, these tasks are not called.
     --  These three tasks are activated once the program begins.
     Task_1 : intro_task (message => 1);
     Task_2 : intro_task (message => 2);
     Task_3 : intro_task (message => 3);
BEGIN                                           
     NULL;                                   
END task_demo_01;

Do tasks run all at same tine or they are scheduled by OS which would mean anytime you run this program output would be different? 


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Concurrency in Ada
@ 1996-12-03  0:00 Javier Crespo
  1996-12-03  0:00 ` Michael Feldman
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Javier Crespo @ 1996-12-03  0:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 555 bytes --]


Hello All:

I�m a graduate student who needs to know more about the concurrent features
in ADA 95 for a proyect work (we study Ada as CS1 in the degree, Physics).
I�ve consulted several sources including Alan Burns� "Concurrency in Ada",
but a would like to find a good full example of the use of concurrency in
Ada 95, as all the examples I have found in the net are for Ada 83. Could
anyone provide it to me, or tell me where could I find it?

	Thank you in advance
-- 
Javier Crespo (jcrespo@caminos.recol.es)
University of Cantabria, Spain





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-07 18:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-07 12:29 Concurrency in Ada Stribor40
2014-09-07 15:05 ` Dennis Lee Bieber
2014-09-07 18:06 ` Jeffrey Carter
  -- strict thread matches above, loose matches on Subject: below --
1996-12-03  0:00 Javier Crespo
1996-12-03  0:00 ` Michael Feldman
1996-12-03  0:00 ` Greg Bond
1996-12-18  0:00 ` elaine.waybright

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