Get the latest tech news

Fast-Servers


There's a network-server programming pattern which is so popular that it's the canonical approach towards writing network servers: This design is easy to recognise: The main loop waits for some event, then dispatches based on the file descriptor and state that the file descriptor is in. At one point it was in vogue to actually fork() so that each file descriptor could be handled by a different thread, but now "worker threads" are usually created that all perform the same task and rely on the kernel to schedule file descriptors to them.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of servers

servers

Related news:

News photo

Report: Apple Asks Google to Run Siri on Its Servers

News photo

Critical SolarWinds Serv-U flaws offer root access to servers

News photo

Break free of Ring's servers, earn a five-figure bounty