Threads & Processes Vs MultiThreading & Multi-Core/MultiProcessor : How they are mapped?

后端 未结 7 1981
灰色年华
灰色年华 2020-12-07 08:49

I was very confused but the following thread cleared my doubts:

Multiprocessing, Multithreading,HyperThreading, Multi-core

But it addresses the queries from

相关标签:
7条回答
  • 2020-12-07 09:15

    Multithreading is the execution of more than one thread at a time. It can happen both on single core processors and the multicore processor systems. For single processor systems, context switching effects it. Look!Context switching in this computational environment refers to time slicing by the operating system. Therefore do not get confused. The operating system is the one that controls the execution of other programs. It allows one program to execute in the CPU at a time. But the frequency at which the threads are switched in and out of the CPU determines the transparency of parallelism exhibited by the system.

    For multicore environment,multithreading occurs when each core executes a thread.Though,in multicore again,context switching can occur in the individual cores.

    0 讨论(0)
提交回复
热议问题