15 ms·
The std.parallelism library in D lets you get some basic CPU info: https://dlang.org/phobos/std_parallelism.html#.totalCPUs https://dlang.org/phobos/std_parall
by vram22 9y ago
The std.parallelism library in D lets you get some basic CPU info:
https://dlang.org/phobos/std_parallelism.html#.totalCPUs https://dlang.org/phobos/std_parallelism.html#.totalCPUs
num_cores: find number of cores in your PC's processor
https://jugad2.blogspot.in/2016/09/numcores-find-number-of-cores-in-your.html https://jugad2.blogspot.in/2016/09/numcores-find-number-of-c...
You can also use the library for some simple parallel processing, as the name indicates:
Simple parallel processing in D with std.parallelism
https://jugad2.blogspot.in/2016/12/simple-parallel-processing-in-d-with.html https://jugad2.blogspot.in/2016/12/simple-parallel-processin...