I would like to run several receivers that will receive data in different ports, but are basically the same.
What is more suitable in performance aspect – Multithreading or Multiprocessing?
I would like to run several receivers that will receive data in different ports,
Share
If the application is I/O-bound, threading will suffice (and be faster).
If it’s CPU-bound, and you’re using cpython or another Python interpreter with a GIL, multiprocessing is the right choice instead.