Skip to content

Commit

Permalink
How to increase the maximum threads in $*SCHEDULER
Browse files Browse the repository at this point in the history
Explain the current default limit on hyperoperators and methods.
  • Loading branch information
molecules committed Jul 18, 2016
1 parent b676fce commit f4843c3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions doc/Language/variables.pod6
Expand Up @@ -1152,8 +1152,18 @@ X<|$*SPEC>X<|$*TMPDIR>X<|$*THREAD>X<|$*SCHEDULER>
------------------+--------------------------------------------
$*THREAD | A L<Thread> object representing the currently executing thread.
------------------+--------------------------------------------
$*SCHEDULER | A L<ThreadPoolScheduler> object representing the current
| default scheduler.
$*SCHEDULER | A L<ThreadPoolScheduler> object representing the current default
| scheduler.
|
| Note on usage: For the current Rakudo, by default this imposes a
| maximum of 16 threads on hyperoperators and methods such as
| C<.hyper> and C<.race>. To change the maximum number of threads, either
| set the environment variable RAKUDO_MAX_THREADS or create a scoped copy
| with the default changed:
|
| my $*SCHEDULER = ThreadPoolScheduler.new( max_threads => 64 );
|
| This behavior is not tested in the spec tests and is subject to change.)
------------------+--------------------------------------------
=end pod

0 comments on commit f4843c3

Please sign in to comment.