In many cases more direct control about the number of threads for a given task is required. The current way of doing so is quite involved, requiring a few lines of code where every part is important.
Like:
size_t new_active_threads = ...
size_t old_active_threads = gang->num_active_threads();
gang->set_active_threads(new_active_threads);
gang->run_task(...);
gang->set_active_threads(old_active_threads);
The proposal is to add a method that allows you to set the number of threads to use for the given task directly.
Like:
size_t new_active_threads = ...
size_t old_active_threads = gang->num_active_threads();
gang->set_active_threads(new_active_threads);
gang->run_task(...);
gang->set_active_threads(old_active_threads);
The proposal is to add a method that allows you to set the number of threads to use for the given task directly.
- blocks
- 
                    JDK-8151814 Tune thread usage for concurrent tasks -           
- Open
 
-         
- 
                    JDK-8155093 Move the number of active worker threads out of WorkGang -           
- Open
 
-         
- 
                    JDK-8153507 Improve Card Table Clear Task -           
- Resolved
 
-         
- 
                    JDK-8155229 Tune thread usage for live data clearing -           
- Resolved
 
-         
- 
                    JDK-8155230 Tune thread usage for mark bitmap clear -           
- Resolved
 
-         
- duplicates
- 
                    JDK-8155231 Augment Workgang to run task with a given number of threads -           
- Closed
 
-         
- relates to
- 
                    JDK-8155709 Introduce an option to set the chunk size for clear actions -           
- Open
 
-         
             (1 duplicates, 1 relates to)