> Date: Thu, 27 Sep 2007 07:13:42 -0700 (PDT)
> From: micke <[EMAIL PROTECTED]>
> 
> "There are no separate dispatch queues for the different classes."
> 
> well according to Solaris Internals, page 229, I quote: "Kernel preempt
> dispatch queue. Real-time threads are managed on a separate dispatch
> queue from other classes"
> 
> I've checked the rtshed.c and sched.c etc. But I have a hard time
> getting a "grip" about the SCHED_FIFO and SCHED_RR. If someone could
> help me sort out this I would really appreciate it.

The POSIX scheduling interfaces are wrapped around priocntl(2) in libc,
so there is no kernel knowledge of SCHED_FIFO or SCHED_RR:
http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/rt/sched.c

The RT scheduling class inserts entries into the dispatch queues in:
http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/disp/rt.c

The actual dispatch activity (thread selection) occurs in:
http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/disp/disp.c

                                                -JZ

> Why I'm asking is be course I'd like to add the SCHED_SPORADIC policy.
> But I need to find where the FIFO and RR are implemented so to say ...
> hmm hope you understand what I mean.
> 
> Any help is appreciated.
> 
> Thanks.
> /Micke
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to