Re:Composable multi-threaded parallelism in Julia
by DNF2 on Wednesday July 24, 2019 @03:37AM
(#20513058)
What would be the purpose of yielding control from the thread and tell it to wait, rather than just let it run to completion?
Re:Composable multi-threaded parallelism in Julia
by ska on Wednesday July 24, 2019 @01:44PM
(#20517643)
Sometimes you don't know where you want to spend your CPU budget until you have more information.
This trait of tasks makes sense when writing things like web servers because it prevents developers from shooting themselves in the foot by writing something that isn't stateless.
By proactive computing, I mean some program that always has control of the entire execution graph. For example, a simulation may initialize a bunch of datastructures, separate some of them into threads, run the threads, wait for all of them to complete x ticks, do some synchronization or measurement of the total system, then continue y times, and exit.