From: patrick@spellingbeewinnars.org
Subject: Tasking without Protected Objects.
Date: Tue, 31 Jan 2017 06:33:25 -0800 (PST)
Date: 2017-01-31T06:33:25-08:00 [thread overview]
Message-ID: <095bc904-c60a-4521-a1a2-8f8b095a4b53@googlegroups.com> (raw)
Hi Everyone
I haven't been able to program much over the past month or two, what I have written in Ada are toy sized.
For fun I have been trying to restrict myself to Ada 83 with the use of Pragma Ada_83 .
I am assuming that if Ada 83 sucked so bad then there would have been an Ada 84 revision not Ada 95.
I don't think I need very complex tasking. I don't think I need one task to call another, I just need the main task/thread to communicate with the other tasks. I am trying not to use the protected object feature from Ada 95, I am hoping shared variables will work.
If I have :
var1
var2
var3
task1
task2
task3
and if each tasks only writes to it's variable, task1 -> var1
then can the main thread read/write to var1 thru var3 without issues? Could there be a conflict with the other non-main tasks ? assuming we are not talking about writing to a file.
Thanks for reading-Patrick
next reply other threads:[~2017-01-31 14:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-31 14:33 patrick [this message]
2017-01-31 14:52 ` Tasking without Protected Objects Dmitry A. Kazakov
2017-01-31 16:47 ` J-P. Rosen
2017-01-31 16:53 ` Björn Lundin
2017-01-31 17:53 ` patrick
2017-01-31 17:40 ` Jeffrey R. Carter
2017-01-31 17:55 ` patrick
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox