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.107.164.29 with SMTP id n29mr9492085ioe.90.1508225106005; Tue, 17 Oct 2017 00:25:06 -0700 (PDT) X-Received: by 10.157.15.247 with SMTP id m52mr474081otd.1.1508225105981; Tue, 17 Oct 2017 00:25:05 -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!border2.nntp.ams1.giganews.com!nntp.giganews.com!peer01.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!k70no237935itk.0!news-out.google.com!194ni476itf.0!nntp.google.com!l196no237743itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 17 Oct 2017 00:25:05 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.167.238.77; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR NNTP-Posting-Host: 85.167.238.77 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to make tasks to run in parallel From: reinert Injection-Date: Tue, 17 Oct 2017 07:25:05 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 3231084436 X-Received-Bytes: 1959 Xref: news.eternal-september.org comp.lang.ada:48485 Date: 2017-10-17T00:25:05-07:00 List-Id: Yes yes... On Tuesday, October 17, 2017 at 8:08:05 AM UTC+2, gautier...@hotmail.com wrote: > 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!