
Last chance! 50% off unlimited learning
Sale ends in
Set or get thread options
detect_threads()ravetools_threads(n_threads = "auto", stack_size = "auto")
detect_threads
returns an integer of default threads that
is determined by the number of CPU
cores; ravetools_threads
returns nothing.
number of threads to set
Stack size (in bytes) to use for worker threads. The
default used for "auto"
is 2MB on 32-bit systems and 4MB on 64-bit
systems.
detect_threads()
ravetools_threads(n_threads = 2)
Run the code above in your browser using DataLab