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 speci-
fied in USE_THREADS.
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |