In a very simple language, no man can walk very fast on one leg. If the man runs both legs, then the speed of walking will be more than double. Thread also works the same in CPU. You have now become clear that what the threads are.

Learn more in the next few details.

What are CPU Threads or Processors Threads?

In each processor, the core has one or two logical processors. This logical processor has to work on threads. In other words, the logical processor runs threads. If a processor does not support Hyper-threading, then it will be one logical processor per Core.

Whatever operating system is working on, whether it is in the background or on the screen, the work is divided into threads. Threads work according to processor core and speed. If the processor is a single core and threads are also one, the speed of the processor will be less than any other completing tasks.

(Note: Threads are not part of the processor core. Threads are part of the process. This process and threads are created from the operating system.)

You can check threads in Windows 7 by pressing Ctrl+Alt+Delete > Task manager > Process

In Process tab, you can clearly see threads and Process. Threads one after the other in waiting. The overwhelming majority of the threads in most Windows system are “waiting” for one thing most of the time: they are watching for Input/Output to complete, they are watching for the timer of the process to expire, they are watching for a page fault to be resolved.

In OS Linux and UNIX operating system use the term “blocked” – are not attempting to use processor time and do not use any till no matter they are watching for happens.

The operating system lives in a geeky

The operating system only sees that thread is running or loaded on the logical processor. The thread which loads in the initial time on RAM and has not yet gone on the L1 cache memory of the processor.  Now the time the thread takes from RAM to L1 cache memory, the operating system can not know at that time. The CPU firmware might use that time to do some work on the other LP in the core.

Hyperthreading or Multi-Threading

It is known by its name that it has to work two threads per core. When the Hyper-threading is enabled in the CPU then two logical processors start working on one core.  Two logical processor run threads faster.

Example: The car will run from low speed on the road of one lane and traffic will also be there and the vehicle will run faster on two-lane road and traffic will be less.

Single core threadq
single lane thread example
Two-Lane Hyperthreading Example

Here you can see how the processor works after Hyper-Threading by clicking here

Sharing is caring!

Leave a Reply