4 ms·
What do you do for networking, though? That seems to be the motivation to introduce callbacky code in web programming. (FWIW my own architectures tend to turn
by chipsy 14y ago
What do you do for networking, though? That seems to be the motivation to introduce callbacky code in web programming.
(FWIW my own architectures tend to turn callbacks into queues and polling.)
- jblow 14y agoJust like a C++ program would, you have a loop that blocks on network input. This has been solved since the 1970s.
- Evbn 14y agoAnd then how do you use the other 99% of your CPU? Just by extra machines every time a network call hangs? Add threads, and then you gave a whole new can of expensive worms.