Mercurial > octave
comparison libinterp/corefcn/nproc.cc @ 31183:932e43d948a6
maint: Merge stable to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 11 Aug 2022 09:38:09 +0200 |
parents | 32d2b6604a9f e217b44187a2 |
children | e88a07dec498 |
comparison
equal
deleted
inserted
replaced
31181:c6c4c6f04170 | 31183:932e43d948a6 |
---|---|
36 | 36 |
37 DEFUN (nproc, args, , | 37 DEFUN (nproc, args, , |
38 doc: /* -*- texinfo -*- | 38 doc: /* -*- texinfo -*- |
39 @deftypefn {} {@var{n} =} nproc () | 39 @deftypefn {} {@var{n} =} nproc () |
40 @deftypefnx {} {@var{n} =} nproc (@var{query}) | 40 @deftypefnx {} {@var{n} =} nproc (@var{query}) |
41 Return the current number of available processors. | 41 Return the current number of available (logical) processors. |
42 | |
43 This returns the number of logical processors. For processors with | |
44 hyperthreading, this is larger than the number of physical cores. | |
42 | 45 |
43 If called with the optional argument @var{query}, modify how processors | 46 If called with the optional argument @var{query}, modify how processors |
44 are counted as follows: | 47 are counted as follows: |
45 | 48 |
46 @table @code | 49 @table @code |