Hi,
I'm trying to understand the REALTIME CLASS in solaris:
All the documentation on net are specifying that :
The rt_tqsecs and rt_tqnsecs members are used for getting or
setting the time quantum associated with an LWP or group of
LWPs. rt_tqsecs is the number of seconds in the time quantum
and rt_tqnsecs is the number of additional nanoseconds in
the quantum.
The rt_tqnsecs member can also be set to one of the follow-
ing special values (defined in <sys/rtpriocntl.h>), in which
case the value of rt_tqsecs is ignored:
RT_TQINF
Set an infinite time quantum.
RT_TQDEF
Set the time quantum to the default for this priority
(see rt_dptbl(4)).
RT_NOCHANGE
Do not set the time quantum. This value is useful when you wish to change the realtime priority of an LWP
without affecting the time quantum. Specifying this
value when changing the class of an LWP to realtime
from some other class is equivalent to specifying
RT_TQDEF.
Now Question:
In my system(sys/rtpriocntl.h) the RT_TQDEF value is -3.
so what is the meaning of it?
After change the process priority to Realtime,
If I create one bound thread(highest priority say 20) and 3 unbound threads(all assigned with same priority 10,10,10)
are these unbound threads use the time slice in any way due to LWP time quantum?
Thanks.
I'm trying to understand the REALTIME CLASS in solaris:
All the documentation on net are specifying that :
The rt_tqsecs and rt_tqnsecs members are used for getting or
setting the time quantum associated with an LWP or group of
LWPs. rt_tqsecs is the number of seconds in the time quantum
and rt_tqnsecs is the number of additional nanoseconds in
the quantum.
The rt_tqnsecs member can also be set to one of the follow-
ing special values (defined in <sys/rtpriocntl.h>), in which
case the value of rt_tqsecs is ignored:
RT_TQINF
Set an infinite time quantum.
RT_TQDEF
Set the time quantum to the default for this priority
(see rt_dptbl(4)).
RT_NOCHANGE
Do not set the time quantum. This value is useful when you wish to change the realtime priority of an LWP
without affecting the time quantum. Specifying this
value when changing the class of an LWP to realtime
from some other class is equivalent to specifying
RT_TQDEF.
Now Question:
In my system(sys/rtpriocntl.h) the RT_TQDEF value is -3.
so what is the meaning of it?
After change the process priority to Realtime,
If I create one bound thread(highest priority say 20) and 3 unbound threads(all assigned with same priority 10,10,10)
are these unbound threads use the time slice in any way due to LWP time quantum?
Thanks.