[Solved] Multiple Thread Processing [closed]


I think you need some modules( you may have some of them already ).

  1. Reading packet
  2. Detecting node id( with finding patterns ) and sending the packet to a proper thread.
  3. Processing with the packet delivered

In conclusion, you need three threads.

One, which I call it Main thread, manages 1, 2 in the list above,
the other two deal with packet which corresponds to the node id.

So you need two different type of threads.
Main thread and processing thread.

solved Multiple Thread Processing [closed]