You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the features that I miss the most is the possibility of pausing and then resuming the execution of a goroutine.
The race detector does not cover all possible cases - e.g. when the issue is "correct" from memory+execution perspective but invalid from "acceptance" perspective. Meaning there can be a valid concurrent program which simply does not what we expected.
If pausing/resuming the execution of a goroutine is not possible maybe it would be enough even to allow doing it for the thread running current goroutine?
The text was updated successfully, but these errors were encountered:
pellared
changed the title
Allow users to pause/freeze + continue/thaw execution of a goroutine
Allow users to pause and resume the execution of a goroutine
Dec 11, 2020
This is basically a duplicate of #1529 (technically it's a superset of that, but I'm still going to close it as duplicate). The bottom line is that it can't be done without assistance from the runtime, even freezing a single thread.
One of the features that I miss the most is the possibility of pausing and then resuming the execution of a goroutine.
The race detector does not cover all possible cases - e.g. when the issue is "correct" from memory+execution perspective but invalid from "acceptance" perspective. Meaning there can be a valid concurrent program which simply does not what we expected.
Before I was developing mainly in C# and I was using https://docs.microsoft.com/pl-pl/visualstudio/debugger/how-to-use-the-threads-window?view=vs-2019#freeze-and-thaw-thread-execution to analyze such problems.
If pausing/resuming the execution of a goroutine is not possible maybe it would be enough even to allow doing it for the thread running current goroutine?
The text was updated successfully, but these errors were encountered: