> Hi, the real-time (/usr/src/uts/common/disp/rt.c) > class implements either SCHED_FIFO. SCHED_RR or > SCHED_OTHER. Can anyone point me to the place where > this is set in the code?? I'm lost. :( i.e how do I > change from FIFO to RR and where is the code for the > RR and FIFO? > > Thanks. > /a OpenSolaris noob
>From the userland side, one thing I see is http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/rt/sched.c#77 which looks to me like both SCHED_FIFO and SCHED_RR map to RT, and SCHED_OTHER maps to TS. Some other places (rtsched.c, spawn.c) seem to further map SCHED_RR to RT_TQDEF and perhaps map SCHED_FIFO to RT_TQINF, but this is fairly involved, so I might be misreading. However, that seems consistent with the definitions of SCHED_FIFO (which gets all the time it wants) and SCHED_RR (which gets time-sliced). Anyway, as long as you're using the POSIX library routines, I suppose it all Just Works. Otherwise, I suppose an app wishing to bypass all that would have to use priocntl(2) or some such. This message posted from opensolaris.org _______________________________________________ opensolaris-help mailing list [email protected]
