doc icon indicating copy to clipboard operation
doc copied to clipboard

Concurrency page lists wrong default for ThreadPoolScheduler default threads

Open jmaslak opened this issue 1 year ago • 0 comments

Problem or new feature

At least on my computer, ThreadPoolScheduler defaults to 64 threads:

$ raku -e 'say ThreadPoolScheduler.new.max_threads'
64

(The $*SCHEDULER instance also is set to 64 by default, with no environment set)

However, on https://docs.raku.org/language/concurrency , under ThreadPoolScheduler, it states that it is 16:

The [ThreadPoolScheduler](https://docs.raku.org/type/ThreadPoolScheduler) is the default scheduler, it maintains a pool of threads that are allocated on demand, creating new ones as necessary up to maximum number given as a parameter when the scheduler object was created (the default is 16.)

Suggestions

If 64 is what it always is, just change this, but if not, reflect reality. :)

jmaslak avatar Oct 16 '24 01:10 jmaslak