available_threads(3P)
NAME
available_threads - returns information about current thread usage
SUBROUTINE AVAILABLE_THREADS (NTOTAL, NUSING)
INTEGER NTOTAL
INTEGER NUSING
#include <sunperf.h>
void available_threads (int ∗total, int ∗now_using);
PURPOSE
This subroutine returns NTOTAL, which is the total number of CPUs available to the job (generally the number of CPUs presently on-line in the partition), and NUSING, which is the sum of the current Use numbers for all threads specified in USE_THREADS. If NTOTAL < NUSING then the system is potentially overcommitted.
ARGUMENTS
NTOTAL (output) INTEGER
Total number of CPUs available.
NUSING (output) INTEGER
Sum of current Use numbers for all threads specified in USE_THREADS.
SunOS 5.0 — Last change: 10 Dec 1998