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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -