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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bdf72b2364b0da13 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.73.229 with SMTP id o5mr12536863pbv.7.1323783489622; Tue, 13 Dec 2011 05:38:09 -0800 (PST) Path: lh20ni17862pbb.0!nntp.google.com!news2.google.com!postnews.google.com!j10g2000vbe.googlegroups.com!not-for-mail From: Ada BRL Newsgroups: comp.lang.ada Subject: Re: Interrupts handling in ADA Date: Tue, 13 Dec 2011 05:36:15 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <30143086.6.1323549838421.JavaMail.geo-discussion-forums@vbbfq24> <9kluo1FtlhU1@mid.individual.net> NNTP-Posting-Host: 164.11.203.58 Mime-Version: 1.0 X-Trace: posting.google.com 1323783489 20156 127.0.0.1 (13 Dec 2011 13:38:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 13 Dec 2011 13:38:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j10g2000vbe.googlegroups.com; posting-host=164.11.203.58; posting-account=yig7mwoAAAAAcduNbH7Dpal1sjCSAijA User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUARELSCNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-12-13T05:36:15-08:00 List-Id: On 12 Dic, 09:12, Niklas Holsti wrote: > On 11-12-12 05:19 , a...@att.net wrote: > > > -- =A0Interrupts are not necessary. From you description a simple set o= f > > -- =A0tasks is all that is needed. > > -- > > -- =A0This program outline uses three task to read three sockets and > > -- =A0after pre-processing and verifing data (if needed) passes this > > -- =A0data to a main task. The main task then can continue processing > > -- =A0this data. > > Just a small comment on a detail in the example: > > > > > =A0 =A0task body Main is > ... > > =A0 =A0begin > ... > > =A0 =A0 =A0 =A0 =A0accept Acknowledge_1 ( Data : Unsigned_32 ) do > > =A0 =A0 =A0 =A0 =A0 =A0Task_1_Data :=3D Data ; > > =A0 =A0 =A0 =A0 =A0 =A0-- process data from task 1 > > =A0 =A0 =A0 =A0 =A0end Acknowledge_1 ; > > The rendezvous between the Main task and task 1 continues until the "end > Acknowledge_1". If the Main task processes the data from task 1 before > the "end Acknowledge_1", as above, task 1 cannot do anything else during > this processing. The program may be more responsive if the processing is > done after the rendezvous, in this way: > > =A0 =A0 =A0 =A0 =A0accept Acknowledge_1 ( Data : Unsigned_32 ) do > =A0 =A0 =A0 =A0 =A0 =A0Task_1_Data :=3D Data ; > =A0 =A0 =A0 =A0 =A0end Acknowledge_1 ; > =A0 =A0 =A0 =A0 =A0-- process data from task 1 > > In this form, the call of Acknowledge_1 from task 1 returns before the > processing, which means that task 1 can go on to do other things, while > the Main task is processing the data in Task_1_Data. > > -- > Niklas Holsti > Tidorum Ltd > niklas holsti tidorum fi > =A0 =A0 =A0 =A0. =A0 =A0 =A0@ =A0 =A0 =A0 . Thank you very much! You have replied to my question even before I asked! I don't want that the sockets are blocked at any time, they must be responsive to the incoming data from C side in every moment!!! I must not miss any data because, in this case, I would incur in a safety violation of the system.