3 ms·
> If you’re just handling requests there isn’t much for shared state No, but if your single listener/server thread is managing epoll for all your file descript
by pdonis 7y ago
> If you’re just handling requests there isn’t much for shared state
No, but if your single listener/server thread is managing epoll for all your file descriptors, you do have to have a way of synchronizing the worker threads with it, so they know when and when not to read from/write to their fd's. I assume Rachel is using some kind of semaphore or other threading synchronization mechanism for this.
- throwaway894345 7y agoRight, there is some shared state, but it’s very minimal.