0

Why this code fails even without data race

Hi I believe I do not have any data race or dead locks in code below: https://www.sololearn.com/en/compiler-playground/cYpHeSPf145u Is above statement correct? If yes, why not it complete all the output statements? If no, could you please help me understand the error? https://sololearn.com/compiler-playground/cYpHeSPf145u/?ref=app

29th Jun 2025, 5:02 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
2 Respostas
+ 3
you're sleeping 2 seconds... Sololearn is timing out. run your simulation faster. maybe use milliseconds instead of seconds
29th Jun 2025, 9:44 PM
Bob_Li
Bob_Li - avatar
+ 1
Thanks Bob_Li
30th Jun 2025, 4:07 AM
Ketan Lalcheta
Ketan Lalcheta - avatar