This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Scheduling
- From: Duncan Sands <duncan dot sands at math dot u-psud dot fr>
- To: gcc at gcc dot gnu dot org
- Cc: "us tx" <ustx at hotmail dot com>
- Date: Fri, 5 Jan 2007 16:03:24 +0100
- Subject: Re: Scheduling
- References: <BAY133-F222CBA7255FE6698178DFAC5B80@phx.gbl>
> 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, then how does gnat tell the OS to
> start doing Round Robin scheduling?
>
> 2. If someone wants to write a new scheduling policy, what files I need to
> add and update to tell gnat to use my scheduling policy.
>
> For example, if I want tasks to block, even though it does NOT want to use a
> shared data object, but if another task on the "same" cpu is running and is
> using a shared data object that other tasks on other CPUs need that shared
> data object.
>
> For example, I see for Round Robin, gnat has the following files:
> a-diroro.ads and a-diroro.adb
>
> 3. Which gnat files for tasking and scheduling tell the tasks to use these
> files and how these files hookup to the tasking model?
>
> 4. What gnat file is the Scheduling and Tasking file? I want to see how it
> uses the Round Robin or how scheduling works in gnat?
I suggest you try asking on comp.lang.ada.
Best wishes,
Duncan.