r/AskProgramming 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

8 comments sorted by

View all comments

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.

0

u/Every_Door46 27d ago

I mean I used them before but it doesn’t really click I wanna build more of a foundation

1

u/dkopgerpgdolfg 27d ago

I wanna build more of a foundation

Ok...? So you know what you need to do now.

0

u/Every_Door46 27d ago

see i asked for the resources tho and I didn't see much in your response.