Description Usage Arguments Details Value Examples
Set thread options (number of threads to use for task scheduling and stack size per-thread) for TBB.
1 2 3 | setThreadOptions(numThreads = "auto",
stackSize = "auto")
defaultNumThreads()
|
numThreads |
Number of threads to use for task scheduling (call
|
stackSize |
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. |
The TBB library is automatically initialized with the default number
of threads and thread stack size when it loads. You can call
setThreadOptions
at any time to change the defaults.
The defaultNumThreads
returns the default number of threads
that are used by TBB if another value isn't specified using
setThreadOptions
.
1 2 3 4 5 6 | ## Not run:
setThreadOptions(numThreads = 4)
defaultNumThreads()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.