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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,385c146dd3112519 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!y33g2000yqb.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Private or public task ? Date: Tue, 9 Feb 2010 10:26:37 -0800 (PST) Organization: http://groups.google.com Message-ID: <73d216c6-1956-4582-b93f-e40b39233e59@y33g2000yqb.googlegroups.com> References: <38a0a3f9-b4a0-48f3-98c9-63b03fe03aca@q4g2000yqm.googlegroups.com> NNTP-Posting-Host: 79.91.74.81 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1265739997 15621 127.0.0.1 (9 Feb 2010 18:26:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 9 Feb 2010 18:26:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y33g2000yqb.googlegroups.com; posting-host=79.91.74.81; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9044 Date: 2010-02-09T10:26:37-08:00 List-Id: On 9 f=E9v, 16:20, Robert A Duff wrote: > You should read all the stuff in the Real Time annex about priorities > and ceilings and policies and whatnot. > > No, protected procedures and functions are not potentially blocking. The misunderstanding was because I was misled on the meaning of "blocking". Jean-Pierre's words changed the situation (see his post). > In your multiprocessor example, task#1 cannot procede > into the protected procedure until task#2 lets go > of it, but that's not blocking. =A0No lower-or-equal priority > task can preempt task#1. =A0One possible implementation is > that task#1 spins on the lock, which is OK because you > made sure your protected procedure executes in a short > bounded time. I've later learned today about spin, but I still have to learn more about it (that's an other area). > Protected entries, on the other hand, are potentially blocking, > because they put the task to sleep for an arbitrarily long time > (until the barrier becomes True). Unbounded