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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,26a580f6f38f0b22 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.germany.com!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: newbie question... Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1120413528.973603.160220@g47g2000cwa.googlegroups.com> Date: Sun, 3 Jul 2005 20:32:29 +0200 Message-ID: <1c81byfp8nosi.1f1er6bnww4vx$.dlg@40tude.net> NNTP-Posting-Date: 03 Jul 2005 20:32:25 MEST NNTP-Posting-Host: 547bb076.newsread2.arcor-online.net X-Trace: DXC=P_?NF0ZoONJbSWda:jMWf@Q5U85hF6f;DjW\KbG]kaMHU7^]5?JhlBNQj1Xe=8[n[M[6LHn;2LCVNI^><>f3dFYJmBZZ3X6Da;A X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:11843 Date: 2005-07-03T20:32:25+02:00 List-Id: On 3 Jul 2005 10:58:49 -0700, e.coli wrote: > what is the difference?: > > accept foo; > ... > code The code is executed after the rendezvous with the task that has called foo, i.e. asynchronously to that task. > accept foo do > ... > same code above > ... > end foo; The code will be executed during the rendezvous, synchronously to the task that calls foo. The caller's task is blocked between its call to foo and "end foo;". After "end foo;" both tasks continue their work independently on each other. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de