From: " jpluto" <jpluto@hotmail.com>
To: comp.lang.ada@ada-france.org
Subject: Gnat Scheduling Question
Date: Sat, 06 Jan 2007 13:42:54 -0600
Date: 2007-01-06T21:00:02+01:00 [thread overview]
Message-ID: <mailman.12.1168113384.18371.comp.lang.ada@ada-france.org> (raw)
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
next reply other threads:[~2007-01-06 19:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-06 19:42 jpluto [this message]
2007-01-07 14:20 ` Gnat Scheduling Question Stephen Leake
2007-01-15 23:49 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox