multithreading on dual core machine?

前端 未结 5 2190
無奈伤痛
無奈伤痛 2020-12-05 21:30

I have a dual core processor and according to the explanation I\'m able to use only 2 threads but actually I\'m able to launch more than 2 threads at same time:

Here

5条回答
  •  执笔经年
    2020-12-05 21:40

    You can use more threads than you have processor cores. This can have several benefits: you can hide communication (e.g., file I/O or network) with computation, or get more processor time in time-slicing systems. With two cores, only two threads will physically be executing at the same time, but having more threads can increase performance. It's something you need to tune.

提交回复
热议问题