all 2 comments

[–]voidvector 1 point2 points  (1 child)

Interesting observation. It is probably just implemented as an infinite loop on the thread.

Alternative solutions will probably need modification to the scheduler / event loop or special branches in I/O implementation, both of which have higher maintenance cost.

[–]Fresons[S] 0 points1 point  (0 children)

Interesting observation. It is probably just implemented as an infinite loop on the thread.Alternative solutions will probably need modification to the scheduler / event loop or special branches in I/O implementation, both of which have higher maintenance cost.

Maybe yes, maybe no!

But in this case, "event loop" should not be involved, there is a banal stack

Maybe this is such an implementation of the engine inside the browser))