pthread_gettimeslice_np(3T)pthread_gettimeslice_np(3T)NAMEpthread_gettimeslice_np(), pthread_settimeslice_np() - set or get the
scheduling timeslice value for PTHREAD_SCOPE_PROCESS threads with
SCHED_TIMESHARE scheduling policy
SYNOPSISPARAMETERS
tslice This parameter specifies the timeslice value in mil‐
liseconds to be set.
DESCRIPTION
The functions are used to set and retrieve the timeslice value in mil‐
liseconds for timeshare process scope threads. The timeslice value
will not take into effect until the current time quantum is used up for
the thread.
sets the timeslice value to tslice for all timeshare process scope
threads in the process.
retrieves the process' timeslice value. tslice may range between 0 and
RETURN VALUE
returns the current timeslice value in tslice.
Upon successful completion, returns zero. Otherwise, an error number is
returned to indicate the error (the variable is not set).
ERRORS
If any of the following occur, the function returns the following error
number:
[EINVAL] The timeslice value was negative or greater than
WARNINGS
Setting the timeslice value lesser than the default timeslice value may
cause a performance deterioration.
AUTHOR
and were developed by HP.
SEE ALSOpthread_getschedparam(3T), pthread_attr_setschedpolicy(3T),
pthread_attr_getschedparam(3T), pthread_attr_getschedpolicy(3T),
rtsched(2).
STANDARDS CONFORMANCE
Pthread Library pthread_gettimeslice_np(3T)