maxNumCompThreads Replacement

Returns the number of available CPU cores
600 Downloads
Updated 10 Jun 2010

View License

maxNumCompThreads returns the number of available CPU cores, works with Windows, Linux, OpenBSD and MAC-OS, using a c-coded mex-file.

N = maxNumCompThreads()

Replacement of the original "Matlab maxNumCompThreads" which will be removed in a future release.

Cite As

Dirk-Jan Kroon (2026). maxNumCompThreads Replacement (https://ch.mathworks.com/matlabcentral/fileexchange/27856-maxnumcompthreads-replacement), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Instrument Connection and Communication in Help Center and MATLAB Answers
Version Published Release Notes
1.1.0.0

Replaced "wrapping" code by more elegant version of James Tursa

1.0.0.0