DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

thr_get_rr_interval(3thread)


thr_get_rr_interval -- get the round-robin scheduling interval

Synopsis

   cc [options] -Kthread file
   

#include <thread.h>

void thr_get_rr_interval(timestruc_t *rr_time);

Description

thr_get_rr_interval stores the round-robin scheduling time quantum used by the Threads Library implementation for threads using the SCHED_RR scheduling policy in the timestruc_t pointed to by rr_time.

Parameters


rr_time
pointer to the timestruc_t object in which thr_get_rr_interval will place the value of the round-robin scheduling interval (set by thr_get_rr_interval)

timestruc_t is defined in time.h as follows:

   struct {
   	time_t	tv_sec;		/* seconds */
   	long	tv_nsec;	/* nanoseconds */
   } timestruc_t;

Security restrictions

thr_get_rr_interval requires no special permissions or privilege.

Return values

thr_get_rr_interval does not return a value.

Errors

None

References

Intro(3thread), thr_getscheduler(3thread), thr_setscheduler(3thread)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004