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.182.58.105 with SMTP id p9mr2460268obq.25.1413272174176; Tue, 14 Oct 2014 00:36:14 -0700 (PDT) X-Received: by 10.140.106.52 with SMTP id d49mr1010qgf.28.1413272174144; Tue, 14 Oct 2014 00:36:14 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!uq10no10344229igb.0!news-out.google.com!i10ni84qaf.0!nntp.google.com!dc16no2713486qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 14 Oct 2014 00:36:13 -0700 (PDT) In-Reply-To: <1244b718-fa93-4ded-a525-5051c78b0a7b@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=158.110.27.77; posting-account=9fwclgkAAAD6oQ5usUYhee1l39geVY99 NNTP-Posting-Host: 158.110.27.77 References: <41154c4b-6158-4701-ab25-85afa3b24ed2@googlegroups.com> <55ca779f-022c-4712-84df-55672e5ccb1e@googlegroups.com> <3802f993-6614-4a64-93c9-6072bc72959b@googlegroups.com> <1244b718-fa93-4ded-a525-5051c78b0a7b@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: passing messages between the tasks From: mockturtle Injection-Date: Tue, 14 Oct 2014 07:36:14 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:22448 Date: 2014-10-14T00:36:13-07:00 List-Id: On Tuesday, October 14, 2014 4:15:11 AM UTC+2, comp...@gmail.com wrote: > i think so....i am just way over my head with this homework i have thats = all....i will try to play with this Since it is not clear your actual doubt, let me also add this: if I and B a= re between "task body" and "begin" (as in the example by Adam) every task o= f type lamp (e.g., all the task in the array Lamps) has *its own copy* of B= and I so when, say, Lamp(1) changes the value of B, the value of B in, say= , Lamp(2) remains unchanged. =20 I am not an expert in compilers, but I guess that every time a new task is = started, the runtime allocates a block of memory to be associated to the ne= w task. That block of memory will be used, e.g., to keep some "internal da= ta" (e.g., the stack of the task (I guess)) and the "local variables" of th= e task such as B and I. Therefore, depending on the task the "name" B refe= rs to different memory areas. I do not know if this can help with your doubt. Riccardo