comp.lang.ada
 help / color / mirror / Atom feed
* Tasking without Protected Objects.
@ 2017-01-31 14:33 patrick
  2017-01-31 14:52 ` Dmitry A. Kazakov
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: patrick @ 2017-01-31 14:33 UTC (permalink / 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


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

end of thread, other threads:[~2017-01-31 17:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-31 14:33 Tasking without Protected Objects patrick
2017-01-31 14:52 ` 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

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