Top
Back: setcores
Forward: semaphore
FastBack:
FastForward:
Up: resources_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.2.11.3 getcores

Procedure from library resources.lib (see resources_lib).

Usage:
getcores(n), n int

Return:
the number of available processor cores.

Note:
This procedure should only be called in the main process of a Singular session and not within any task defined via tasks.lib.

Example:
 
LIB "resources.lib";
setcores(4);
==> 4
getcores();
==> 4
See also: addcores; parallel_lib; setcores; tasks_lib.


Top Back: setcores Forward: semaphore FastBack: FastForward: Up: resources_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.