Article View: net.lang.ada
Article #962BITNET mail follows
From: UKC340
Date: Mon, 22 Sep 1986 21:33
Date: Mon, 22 Sep 1986 21:33
45 lines
1619 bytes
1619 bytes
HELO UKCC.BITNET
VERB ON
TICK 0001
MAIL FROM:<UKC340@UKCC.BITNET>
RCPT TO:<ARPAINFO-ADA@ARPAUSC-ECLB.ARPA>
DATA
Date: 22 Sep 86 16:30 EST
From: UKC340@UKCC.BITNET
To: ARPAINFO-ADA@ARPAUSC_ECLB.ARPA
Subject: Task question
I have a question about the following ADA program:
with text_io; use text_io;
procedure tasks is
task horizontal;
task vertical;
task body vertical is
begin
loop
put_line("vertical");
end loop;
end vertical;
task body horizontal is
begin
loop
put_line("horizontal");
end loop;
end horizontal;
begin
null;
end tasks;
according to the ADA reference it states that a task is to run on its
own logical cpu which to me means that the output from the above program
would be something like a few lines of "horizontal" followed by a few
lines of "vertical" followed by a few lines of "horizontal", etc.
instead all i get is "horizontal" printed over and over again. Am
i misinterpreting what the reference is saying? does anyone
actually get the output to alternate between vertical and horizontal?
Technical Details
Message-ID:
<8609240636.AA15334@ucbvax.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!nike!ucbcad!ucbvax!UKCC.BITNET!UKC340Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!nike!ucbcad!ucbvax!UKCC.BITNET!UKC340 From: UKC340@UKCC.BITNET Newsgroups: net.lang.ada Subject: BITNET mail follows Message-ID: <8609240636.AA15334@ucbvax.Berkeley.EDU> Date: Mon, 22-Sep-86 17:33:00 EDT Article-I.D.: ucbvax.8609240636.AA15334 Posted: Mon Sep 22 17:33:00 1986 Date-Received: Wed, 24-Sep-86 05:26:41 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 45