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=2.4 required=5.0 tests=BAYES_50,CTE_8BIT_MISMATCH, FREEMAIL_FROM,HELO_NO_DOMAIN,MAILING_LIST_MULTI, PP_MIME_FAKE_ASCII_TEXT,RDNS_NONE,SPOOFED_FREEMAIL_NO_RDNS autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a16d8fed93dd1792,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!news.germany.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!proxad.net!cleanfeed2-b.proxad.net!nnrp4-1.free.fr!not-for-mail Return-Path: X-Greylist: delayed 786 seconds by postgrey-1.24 at green; Sat, 06 Jan 2007 20:56:08 CET X-Originating-IP: [172.153.131.14] X-Originating-Email: [jpluto@hotmail.com] X-Sender: jpluto@hotmail.com From: "  jpluto" To: comp.lang.ada@ada-france.org Subject: Gnat Scheduling Question Date: Sat, 06 Jan 2007 13:42:54 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 06 Jan 2007 19:42:58.0399 (UTC) FILETIME=[DE2CEEF0:01C731CA] X-Virus-Scanned: amavisd-new at ada-france.org X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char C2 hex) in message header 'From': From: "\302\240 jpluto" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Organization: Guest of ProXad - France NNTP-Posting-Date: 06 Jan 2007 21:00:02 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1168113602 news-2.free.fr 288 88.191.14.223:57566 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:8086 Date: 2007-01-06T21:00:02+01:00 Please does anyone know the answer to the following questions? 1. The operating system (OS) schedules tasks, but gnat allow us to set schedule policies such as Round Robin and others, then how does gnat tell the OS to start doing Round Robin scheduling? or are the tasks in gnat are application threads and has nothing to do with the OS scheduling. If so, could you describe exactly how are these threads built in gnat? 2. If someone wants to write a new scheduling policy, which files I need to add to and update tell gnat to use my NEW scheduling policy. 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? 3. Which gnat files for tasking and scheduling tell the tasks to use these files and how these files hookup to the tasking model? For example, I see for Round Robin, gnat has the following files: a-diroro.ads and a-diroro.adb 4. Which gnat file is the file that looks at our program code to know exactly which scheduling policy we need using our pragma. Then once it sees which scheduling policy we need, which files and procedures it excuetes to run that scheduling policy? thank you _________________________________________________________________ Dave vs. Carl: The Insignificant Championship Series. �Who will win? http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://davevscarl.spaces.live.com/?icid=T001MSN38C07001