From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.157.20.7 with SMTP id h7mr8213212oth.147.1485873205425; Tue, 31 Jan 2017 06:33:25 -0800 (PST) X-Received: by 10.157.17.114 with SMTP id p47mr1828493otp.6.1485873205394; Tue, 31 Jan 2017 06:33:25 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!r185no1593370ita.0!news-out.google.com!15ni9504itm.0!nntp.google.com!r185no1591870ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 31 Jan 2017 06:33:25 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2607:fea8:3ce0:c9e:ddd:30a6:9d65:dd8e; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 2607:fea8:3ce0:c9e:ddd:30a6:9d65:dd8e User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <095bc904-c60a-4521-a1a2-8f8b095a4b53@googlegroups.com> Subject: Tasking without Protected Objects. From: patrick@spellingbeewinnars.org Injection-Date: Tue, 31 Jan 2017 14:33:25 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:33219 Date: 2017-01-31T06:33:25-08:00 List-Id: 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 Pra= gma Ada_83 . I am assuming that if Ada 83 sucked so bad then there would have been an Ad= a 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 oth= er 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 ta= lking about writing to a file. Thanks for reading-Patrick