File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -287,8 +287,14 @@ A macro to execute a `for` loop in parallel. The iteration space is distributed
287287coarse-grained tasks. This policy can be specified by the `schedule` argument. The 
288288execution of the loop waits for the evaluation of all iterations. 
289289
290+ Tasks spawned by `@threads` are scheduled on the `:default` threadpool. This means that 
291+ `@threads` will not use threads from the `:interactive` threadpool, even if called from 
292+ the main thread or from a task in the interactive pool. The `:default` threadpool is 
293+ intended for compute-intensive parallel workloads. 
294+ 
290295See also: [`@spawn`](@ref Threads.@spawn) and 
291296`pmap` in [`Distributed`](@ref man-distributed). 
297+ For more information on threadpools, see the chapter on [threadpools](@ref man-threadpools). 
292298
293299# Extended help 
294300
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments