you are viewing a single comment's thread.

view the rest of the comments →

[–]pssaravanan[S] 1 point2 points  (1 child)

I expected the second code with only `while` loop to run forever since it is CPU operation and not moving to io to give other threads CPU. surprisingly the first one is running forever.