From: guzzi@multimax (Mark D. Guzzi)
Subject: Re: shared variable between tasks
Date: 29 Jun 89 12:12:56 GMT [thread overview]
Message-ID: <9538@xenna.Encore.COM> (raw)
In-Reply-To: tancheeh@fred.cs.washington.edu (Nicholas Tan Chee Hiang)
Unprotected never appears to be updated because you read it once in
task Access_Variable when you initialize Letter, then you never read it
again. Try this instead:
task body Access_Variable is
-- Letter : Character := Unprotected;
begin
loop
-- Put (Letter);
Put (Unprotected);
delay 3.0;
end loop;
end Access_Variable;
--
-- Mark Guzzi
Encore Computer Corporation
guzzi@encore.com
(or guzzi@multimax.encore.com)
prev parent reply other threads:[~1989-06-29 12:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1989-06-29 2:07 shared variable between tasks Nicholas Tan Chee Hiang
1989-06-29 12:12 ` Mark D. Guzzi [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