2 ms·
I'll just repost my famous comment from two years ago: If you want your program to take page faults as PHK suggests, it has to be multithreaded. If you choose
by wmf 14y ago
I'll just repost my famous comment from two years ago:
If you want your program to take page faults as PHK suggests, it has to be multithreaded. If you choose event-driven concurrency you can't afford to take page faults in mmap() or read(). When you make the threads vs. events decision you're implicitly making a bunch of related decisions about I/O and scheduling as well; a hybrid approach (like using events and mmap) won't work well. http://news.ycombinator.com/item?id=1760642 http://news.ycombinator.com/item?id=1760642