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
Assume we have two worker, say w1 and w2 and have an alternate wait (ie. wait w1|w2). Now assume we have a runtime:sleep in the first worker to execute (say this is w1). When we hit this sleep it should cause the strand of w1 to pause. This should free us the thread that was running that strand to execute w2. However this doesn't happen and instead w1 blocks the execution of the program.
worker w2 should run first and when it hits sleep it don't yield and handover to w1
I couldn't get a more simpler test case to work since runtime will always choose to execute worker without the sleep every time. This is the only time I managed to get the runtime to run the worker with sleep first
Affected Version(s)
verified on 2201.8.6
OS, DB, other environment details and versions
No response
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered:
Description
Assume we have two worker, say
w1
andw2
and have an alternate wait (ie.wait w1|w2
). Now assume we have aruntime:sleep
in the first worker to execute (say this isw1
). When we hit thissleep
it should cause the strand ofw1
to pause. This should free us the thread that was running that strand to executew2
. However this doesn't happen and insteadw1
blocks the execution of the program.Steps to Reproduce
bal run
in fallowing directoriesworker
w2
should run first and when it hits sleep it don't yield and handover tow1
I couldn't get a more simpler test case to work since runtime will always choose to execute worker without the sleep every time. This is the only time I managed to get the runtime to run the worker with sleep first
Affected Version(s)
verified on
2201.8.6
OS, DB, other environment details and versions
No response
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: