3 ms·
Good point. In practice though I like to keep 1 networking process/thread, and use the other cores for other tasks, such as database access, and other operation
by axod 18y ago
Good point. In practice though I like to keep 1 networking process/thread, and use the other cores for other tasks, such as database access, and other operations that might block. Or just long operations that need to get done without compromising other connections etc.
After all, the actual networking code isn't cpu heavy.
That way you don't have to deal with any synchronization or concurrency issues in the networking code at all.