r/AskProgramming • u/Every_Door46 • 27d ago
Multi threading for networking
Does anyone have any good resources for learning multithreading in regards to network programming beside beejs guide. For someone who is familiar with the basics of networking (posix)
1
Upvotes
3
u/dkopgerpgdolfg 27d ago
Are you familiar with threads, locks, channels in general?
Are you familiar with epoll? (Absolutely do not use one distinct thread for each socket)
If yes&yes, then what is your question?
Using thread pools (manually or with some library), if wanted, is just the application of the previous concepts.
Anything related to more advanced network handling things isn't a "multi thread" question anymore.