How many threads to create and when?

前端 未结 7 1490
不思量自难忘°
不思量自难忘° 2021-01-02 05:37

I have a networking Linux application which receives RTP streams from multiple destinations, does very simple packet modification and then forwards the streams to the final

7条回答
  •  一生所求
    2021-01-02 06:19

    Let your program decide. Add code to it that measures throughput and increases/decreases the number of threads dynamically to maximize it.

    This way, your application will always perform well, regardless of the number of execution cores and other factors

提交回复
热议问题