What do threads do in a processor




















The CPU central processing unit is the core of every smartphone, tablet, and computer. It is a critical component that dictates the way your computer will perform and determines how well it can do the job. The CPU is sometimes called the brain of the computer. It sits upon the motherboard also called the main circuit board and is a separate component from the memory component.

It acts upon the memory component, which stores all the data and information on your system. The memory component and the CPU are separate from your graphics card. As technology advances from year to year, we see CPUs getting smaller and smaller. And they are performing faster than ever before. It is not a law of physics or a law of natural science—it is due to the projected growth rate of the number of components per integrated circuit.

As we said earlier, the CPU is the brain of your computer. It takes the data from a particular program or application, performs a series of calculations, and executes the command. It performs a three-part cycle otherwise referred to as the repetitive loop of fetch, decode, and execute. Once it has the instructions from the memory, it moves onto the second phase. It is within this second phase that it decodes those instructions. The decoded info passes through the CPU to reach the units that need to actually perform the required function.

In the decoding process, it performs mathematical equations to send the required signal to your system. This cycle repeats over and over again for every action and command you perform. But they are still crucial to feeding the specialized hardware numbers they need to perform the task at hand. The CPU is a critical part of any system, and it works hand in hand with threads.

Different CPUs have different amounts of thread to limit or expand the performance of your computer. So what exactly are threads? How do they relate to your CPU? How do they affect the way your system performs? Without any additional or special hardware, this is equal to the core count.

Some processers, however, will have more threads than they have cores. Some Intel CPUs have a feature called hyperthreading , which allows an operating system to see double the amount of logical cores per physical core. This allows the operating system to schedule and run double the amount of threads simultaneously, so in the case of the CPU I linked to above, there are four physical cores, but eight logical ones so you can run eight threads simultaneously.

Each individual application running in the operating system is either single-threaded or multi-threaded think of each thread as a "sub-application". Single-threaded applications require just one thread to run on the CPU, whereas multi-threaded applications have many sub-threads running simultaneously.

Additional cores, or hyper-threading, allow more application threads to simultaneously run at once. This allows multi-threaded not single-threaded applications to run much faster, since more than one thread can run at once on the CPU. Just a final note, hyperthreading improves the performance of some multithreaded applications specifically optimized for it since there is still only half the number of physical cores as there are logical.

In some various cases, applications may run faster with hyperthreading disabled although many applications do benefit from it. Regardless of hyperthreading, an increase in the number of physical cores will always benefit multithreaded applications. A "core" represents an actual physical subset of a processor that can by itself handle processing, whereas a "thread" is how many actual processes the processor can handle at once.

Intel has developed a technology they label "hyper-threading" this technique allows for one physical core which would normally only be able to handle one thread at a time to now be able to handle two threads simultaneously. A thread is a task that the processor must handle, for a simple explanation, you can assume that every application you open such as paint, notepad, media player has its own thread You will just experience better performance with more cores because now you can dish out all of the work to more core processors.

For example, my work computer has an i7 in it. The i7 has 4 physical cores, but each core can do 'hyper-threading' which allows this processor to handle 8 threads at once. So if I open up the task manager, I will see 8 boxes for processor performance scale. A general rule of thumb is that more physical cores are better than more threads.

So if you were comparing a processors that had 4 cores and 4 threads, would be better than 2 cores 4 threads. When you open an app that requires some data to be fetched from the internet, the content area of the app is replaced by a spinner.

This will rotates until the data is fetched and displayed. A CPU core is the part of something central to its existence or character. In the same way in the computer system, the CPU is also referred to as the core. It was first used on desktop CPUs with the Pentium 4 in Therefore, it only performs a single task and fails to perform any type of multiple operations.

Skip to content. Cores is an actual hardware component whereas thread is a virtual component that manages the tasks. Cores use content switching while threads use multiple CPUs for operating numerous processes. Cores require only a signal process unit whereas threads require multiple processing units. The threads are always created by the operating system for performing a task of a specific application.

There is single thread code of that core which performs the computations also known as primary thread on the core which when gets the information from the user, creates another thread and allocates the task to it.

Similarly, if it gets another instruction it forms second thread and allocates the task to it. Making a total of two threads. Skip to content. Change Language. Related Articles.



0コメント

  • 1000 / 1000