3 ms·
Yes. Most robust implementations have a limit on how long they will pump the queue instead of continuing forever - in most of my applications I cap it at somew
by kevingadd 12y ago
Yes.
Most robust implementations have a limit on how long they will pump the queue instead of continuing forever - in most of my applications I cap it at somewhere around 1-10ms. You'd want a shorter limit for realtime stuff like games, a higher limit for high-throughput scenarios like servers. When the limit is reached I yield to the event loop and then continue running handlers from the queue after that.