Can multithreading be implemented on a single processor system?

前端 未结 6 1053
走了就别回头了
走了就别回头了 2020-12-04 08:16

I have always followed the concept that multithreading can only be implemented on multiple processors system where there are more than one processor to be assigned to each t

6条回答
  •  执笔经年
    2020-12-04 08:57

    You can have more than four active threads on a quad core system. There is scheduling, unless you can guarantee that processes won't try to create more threads than there are processors.

    Yes, you can have multiple threads on a single-core computer.

    The difference between single processor and multi-processor systems is that a multi-processor system can indeed do more than one thing at a time. It can do N things at a time, where N is the number of processor cores. A single-processor core can only do one thing at a time. As WhozCraig said in his comment, it's the difference between actual and perceived concurrency.

提交回复
热议问题