4 ms·
> at the cost of having his code be a little less performant Where did you read this? The proposal states: "This approach will solve the problem of delayed pre
by mseepgood 9y ago
> at the cost of having his code be a little less performant
Where did you read this? The proposal states: "This approach will solve the problem of delayed preemption with zero run-time overhead."
- uluyol 9y agoHopefully this can actually decrease overhead. Go's garbage collector has some short STW pauses that require stopping the world. It you have one thread misbehaving by running a tight loop right now, the rest of the threads will sit there spinning until that one thread reaches a preemption point. With explicit preemption, that period would be much shorter.