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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.228.142 with SMTP id o136mr1480364ith.55.1508220484351; Mon, 16 Oct 2017 23:08:04 -0700 (PDT) X-Received: by 10.157.20.173 with SMTP id d42mr441855ote.3.1508220484327; Mon, 16 Oct 2017 23:08:04 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!l196no204862itl.0!news-out.google.com!194ni476itf.0!nntp.google.com!l196no204858itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 16 Oct 2017 23:08:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1206:45c6:8b20:a4ad:bcb3:f56d:ca55; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:45c6:8b20:a4ad:bcb3:f56d:ca55 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to make tasks to run in parallel From: gautier_niouzes@hotmail.com Injection-Date: Tue, 17 Oct 2017 06:08:04 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 2604816419 X-Received-Bytes: 1831 Xref: news.eternal-september.org comp.lang.ada:48482 Date: 2017-10-16T23:08:04-07:00 List-Id: Just move "end run1" just after "x := a" accept run1(a : in real) do x := a; end run1; Between "accept" and "end run1" it is a rendezvous: the calling task and task test2_t are flirting together and passing messages; after the rendezvous they do their jobs separately, possibly in parallel. BTW: for a real program, don't use Float, use Long_Float!... HTH Gautier _____________________________________________________________ A free online game in Ada: http://pasta.phyrama.com/game.html New: High Scores lists!