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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a16d8fed93dd1792 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: Jeffrey Carter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Gnat Scheduling Question References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4qUqh.1143561$084.982029@attbi_s22> NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1168904960 12.201.97.213 (Mon, 15 Jan 2007 23:49:20 GMT) NNTP-Posting-Date: Mon, 15 Jan 2007 23:49:20 GMT Organization: AT&T ASP.att.net Date: Mon, 15 Jan 2007 23:49:20 GMT Xref: g2news2.google.com comp.lang.ada:8148 Date: 2007-01-15T23:49:20+00:00 List-Id: jpluto wrote: > > For example, if I want a high priority task to block, even though it > does NOT use a shared data object, but if another lower priority task > on the "same" cpu is running and is using a shared data object that > another task on another CPU needs, then how can I block that high > priority task and tell it to yield the cpu to that lower task unitl that > lower task finish using that shared data object? If they're on the same CPU, then using a ceiling priority higher than that of the high-priority task should do it.