←back to thread

495 points guntars | 1 comments | | HN request time: 0.001s | source
Show context
mgaunard ◴[] No.44981924[source]
"zero syscall"

> In order to avoid busy looping, both the kernel and the web server will only busy-loop checking the queue for a little bit (configurable, but think milliseconds), and if there’s nothing new, the web server will do a syscall to “go to sleep” until something gets added to the queue.

replies(3): >>44981958 #>>44982011 #>>44982686 #
1. KolmogorovComp ◴[] No.44981958[source]
It’s good to read an article until the end

> This means that a busy web server can serve all of its queries without even once (after setup is done) needing to do a syscall. As long as queues keep getting added to, strace will show nothing.