Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ thr_getscheduler(3thread) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

priocntl(2)

thr_getprio(3thread)

thr_setprio(3thread)

thr_setscheduler(3thread)

thr_yield(3thread)

thread(3thread)






       thr_getscheduler(3thread)                  thr_getscheduler(3thread)


       NAME
             thr_getscheduler - get the scheduling policy information for a
             thread

       SYNOPSIS
             cc [options] -Kthread file
             #include <thread.h>
             int thr_getscheduler(thread_t tid, sched_param_t *param);

          Parameters
             tid    a thread ID

             param  a pointer to a sched_param_t structure containing the
                    policy-specific parameters (set by thr_getscheduler)

       DESCRIPTION
             thr_getscheduler sets the sched_param_t pointed to by param to
             the policy-specific parameters for tid.

          tid Parameter
             tid is the ID of the thread whose scheduling policy
             information thr_getscheduler will retrieve.

          param Parameter
             param points to a sched_param_t structure in which
             thr_getscheduler will store tid's scheduling policy and
             parameters.

             sched_param_t is defined as follows:

                         struct {
                               id_t  policy;
                               long  policy_params[POLICY_PARAM_SZ];
                         } sched_param_t;

             See thr_setscheduler(3thread)  for  the  available  scheduling
             policies and parameters.

          Security Restrictions
             No privileges or special permissions are required to use
             thr_getscheduler.

          Return Values
             thr_getscheduler returns zero for success and an error number
             for failure, as described below.



                           Copyright 1994 Novell, Inc.               Page 1













      thr_getscheduler(3thread)                  thr_getscheduler(3thread)


         Errors
            If any of the following conditions is detected,
            thr_getscheduler fails and returns the corresponding value:

            ESRCH    No thread can be found in the current process with
                     identity tid.

      USAGE
            thr_getscheduler is used by multithreaded applications which
            need to control their scheduling.

      REFERENCES
            priocntl(2), thr_getprio(3thread), thr_setprio(3thread),
            thr_setscheduler(3thread), thr_yield(3thread), thread(3thread)


































                          Copyright 1994 Novell, Inc.               Page 2








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026