c linux multithreading networking -
i have network application on gateway. receives , sends packets. of them, gateway acts router, in cases, can receive packets too.
should have:
- only 1 main thread
- a main thread + dispatch thread in charge of giving correct flow handler
- as many threads there flows
- something else.
?
doing multithreading correctly no simple matter, in many cases select , friends based solution whole lot easier create.
Comments
Post a Comment