你有没有想过 CPU Cores 和 Threads 之间的区别?不是很混乱吗?别担心,在本指南中,我们将回答有关 CPU 内核与线程辩论的所有问题。(Have you thought about the difference between CPU Cores and Threads? Isn’t it confusing? Don’t worry in this guide we will answer all the queries regarding the CPU Cores vs Threads debate.)
还记得我们第一次在电脑上上课吗?我们被教导的第一件事是什么?是的,事实上,CPU是任何计算机的大脑。但是后来,当我们继续购买自己的电脑时,我们似乎忘记了这一切,并没有在CPU上考虑太多。这可能是什么原因?其中最重要的一点是,我们一开始就对CPU知之甚少。
现在,在这个数字时代,随着技术的出现,很多事情都发生了变化。过去,人们可以仅通过时钟速度(clock speed)来衡量CPU的性能。然而,事情并没有那么简单。最近,CPU具有多核和超线程等功能。这些性能比相同速度的单核CPU要好得多。(CPU)但是什么是CPU内核和线程?它们之间有什么区别?您需要知道什么才能做出最佳选择?这就是我在这里为您提供帮助的原因。在这篇文章中,我将和你谈谈CPU内核和线程,并让您了解它们的区别。阅读完本文后,您将无需了解更多信息。所以,不要再浪费时间了,让我们开始吧。继续阅读。
CPU Cores vs Threads Explained – 两者有什么区别?
计算机中的核心处理器(Core Processor in a Computer)
(CPU)如您所知,CPU代表中央处理单元(Central Processing Unit)。CPU是您看到的每台计算机的核心组件——无论是 PC 还是笔记本电脑。简而言之,任何计算的小工具内部都必须有一个处理器。进行所有计算计算的地方称为CPU。计算机的操作系统(operating system)也通过提供指令和指示来提供帮助。
现在,一个CPU也有很多子单元。其中一些是控制单元(Control Unit)和算术逻辑单元(ALU)。这些术语过于技术性,对于本文来说不是必需的。因此,我们会避开它们并继续我们的主要话题。
单个CPU在任何给定时间只能处理单个任务。现在,您可以意识到,这并不是您想要获得更好性能的最佳条件。然而,如今,我们所有人都看到计算机可以毫不费力地处理多任务,并且仍然提供出色的性能。那么,这是怎么发生的呢?让我们详细了解一下。
多核(Multiple Cores)
这种性能丰富的多任务处理能力的最大原因之一是多核。现在,在计算机的早期,CPU(CPUs)往往具有单核。这实质上意味着物理CPU内部仅包含一个中央处理单元。由于迫切需要提高性能,制造商开始添加额外的“核心”,即额外的中央处理单元。举个例子,当你看到一个双核CPU时,你看到的是一个有几个中央处理器的CPU 。双核CPU完全能够在任何给定时间同时运行两个进程。这反过来又使您的系统更快。这背后的原因是您的CPU现在可以同时执行多项操作。
这里没有其他技巧——双核CPU有两个中央处理器,而四核 CPU 在CPU 芯片(CPU chip)上有四个中央处理器,八核 CPU 有八个,依此类推。
另请阅读:(Also read:)修复系统时钟运行快速问题的(Fix System Clock Runs Fast Issue)8种方法(Ways)
这些额外的内核使您的系统能够提供增强和更快的性能。但是,物理CPU的尺寸仍然很小,以便安装在小插槽中。您只需要一个CPU 插槽(CPU socket)和一个插入其中的CPU 单元。(CPU unit)您不需要多个CPU 插槽(CPU socket)以及多个不同的CPU(CPUs),每个 CPU 都需要自己的电源、硬件、冷却和许多其他东西。除此之外,由于内核在同一个芯片上,它们可以更快地(quicker way)相互通信。因此,您将体验到更少的延迟。
超线程(Hyper-threading)
现在,让我们来看看这种更快更好的性能以及计算机的多任务处理能力背后的另一个因素——超线程。计算机业务巨头英特尔(Intel)首次使用超线程。他们想用它实现的是将并行计算引入消费类 PC。该功能于 2002 年首次在带有Premium 4 HT的台式 PC 上推出。回到那个时候,奔腾 4T(Pentium 4T)包含一个CPU 内核(CPU core),因此能够在任何给定时间执行单个任务。但是,用户能够足够快地在任务之间切换,使其看起来像多任务处理。提供超线程作为该问题的答案。
英特尔超线程技术(Intel Hyper-threading technology)(正如该公司命名的那样)发挥了一种技巧,让您的操作系统(operating system)相信有几个不同的CPU(CPUs)连接到它上面。然而,实际上,只有一个。这反过来又使您的系统更快,同时始终提供更好的性能。为了让你更清楚,这里是另一个例子。如果你有一个单核CPU和超线程(Hyper-threading),你的计算机的操作系统(operating system)会找到两个逻辑CPU(CPUs)。就像(Just)这样,如果你有一个双核CPU,操作系统(operating system)将被欺骗相信有四个逻辑CPU(CPUs)。结果,这些逻辑CPU(CPUs)通过使用逻辑来提高系统的速度。它还拆分和安排硬件执行(hardware execution)资源。反过来,这提供了执行多个过程所需的最佳速度。
CPU 内核(CPU Cores)与线程(Threads):有什么区别(Difference)?
现在,让我们花点时间来弄清楚核心和线程之间的区别。简单的说,你可以把芯比作人的嘴,而线可以比作人的手。如您所知,嘴负责进行进食,另一方面,手帮助组织“工作量”。线程有助于最轻松地将工作负载交付给CPU 。您拥有的线程越多,您的工作队列(work queue)就组织得越好。因此,您将获得更高的处理随附信息的效率。
CPU内核是物理CPU内部的实际(CPU)硬件组件(hardware component)。另一方面,线程是管理手头任务的虚拟组件。CPU与多个线程交互有几种不同的方式。通常,线程将任务提供给CPU。仅当第一个线程提供的信息不可靠或速度慢(例如缓存未命中(cache miss))时,才访问第二个线程。
内核和线程都可以在Intel和AMD处理器中找到。您只会在英特尔(Intel)处理器中找到超线程,在其他任何地方都找不到。该功能以更好的方式使用线程。另一方面,AMD内核通过添加额外的物理内核来解决这个问题。(AMD)因此,最终结果与超线程技术相当。
好的(Okay),伙计们,我们已经接近这篇文章的结尾了。是时候把它包起来了。这是您需要了解的有关CPU内核与线程(Threads)的所有信息,以及它们之间的区别。我希望这篇文章为您提供了很多价值。现在您已经掌握了有关该主题的必要知识,请尽可能地为您使用它。更多地了解您的CPU意味着您可以最轻松地充分利用您的计算机。
另请阅读:(Also read:) 在办公室(Offices)、学校或学院被(Schools or Colleges)阻止(Blocked)时解除阻止 YouTube(Unblock YouTube)?
所以你有它!使用上述指南,您可以轻松结束CPU Cores 与 Threads的争论。(CPU Cores vs Threads)但是,如果您对本指南仍有任何疑问,请随时在评论部分(comment section)提出。
CPU Cores vs Threads Explained - What's the difference?
Have you thought about the difference between CPU Cores and Threads? Isn’t it confusing? Don’t worry in this guide we will answer all the queries regarding the CPU Cores vs Threads debate.
Remember the first time we took classes on the computer? What was the first thing we were taught? Yes, it is the fact that CPU is the brain of any computer. However, later on, when we went on to buy our own computers, we seemed to forget all about it and did not give much of a thought on the CPU. What might be the reason for this? One of the most important ones is that we never knew much about the CPU in the first place.
Now, in this digital era and with the advent of technology, a lot of things have changed. In the past, one could have measured the performance of a CPU with its clock speed alone. Things, however, have not remained so simple. In recent times, a CPU comes with features such as multiple cores as well as hyper-threading. These perform way better than a single-core CPU of the same speed. But what are CPU cores and threads? What is the difference between them? And what do you need to know to make the best choice? That is what I am here to help you with. In this article, I will talk to you about CPU cores and threads and let you know their differences. You will need to know nothing more by the time you finish reading this article. So, without wasting any more time, let us begin. Keep on reading.
CPU Cores vs Threads Explained – What is the difference between both?
Core Processor in a Computer
CPU, as you already know, stands for Central Processing Unit. The CPU is the central component of each and every computer that you see –whether it is a PC or a laptop. To put it in a nutshell, any gadget that computes must have a processor inside it. The place where all the computational calculations are conducted is called the CPU. The operating system of the computer helps as well by giving instructions as well as directions.
Now, a CPU has quite a few sub-units too. Some of them are Control Unit and Arithmetic Logical Unit (ALU). These terms are way too technical and not necessary for this article. Therefore, we would avoid them and carry on with our main topic.
A single CPU can process only a single task at any given time. Now, as you can realize, this is not the best possible condition that you would want for better performance. However, nowadays, all of us see computers that handle multi-tasking effortlessly and still is providing stellar performances. So, how did that come to pass? Let us take a detailed look at that.
Multiple Cores
One of the biggest reasons for this performance-rich multi-tasking ability is multiple cores. Now, during the earlier years of the computer, CPUs tend to have a single core. What that essentially means is the physical CPU contained only one central processing unit inside it. Since there was a dire need for making the performance better, manufacturers started adding extra ‘cores,’ which are additional central processing units. To give you an example, when you see a dual-core CPU then you are looking at a CPU that has a couple of central processing units. A dual-core CPU is perfectly able to run two simultaneous processes at any given time. This, in turn, makes your system faster. The reason behind this is that your CPU can now do multiple things simultaneously.
There are no other tricks involved here – a dual-core CPU has two central processing units, whereas quad-cores ones have four central processing units on the CPU chip, an octa-core one has eight, and so on.
Also read: 8 Ways To Fix System Clock Runs Fast Issue
These additional cores enable your system to offer enhanced and faster performance. However, the size of the physical CPU is still kept small for it to fit in a small socket. All you need is a single CPU socket along with a single CPU unit inserted inside it. You do not need multiple CPU sockets along with several different CPUs, with each of them requiring their own power, hardware, cooling, and much other stuff. In addition to that, as the cores are on the same chip, they can communicate with each other in a quicker way. As a result, you will experience less latency.
Hyper-threading
Now, let us look at the other factor behind this faster and better performance along with the multitasking abilities of the computers – Hyper-threading. The giant in the business of computers, Intel, used hyper-threading for the first time. What they wanted to achieve with it was bringing parallel computation to consumer PCs. The feature was first launched in 2002 on desktop PCs with the Premium 4 HT. Back at that time, the Pentium 4T contained a single CPU core, thereby being able to perform a single task at any given time. However, the users were able to switch between the tasks fast enough for it to look like multitasking. The hyper-threading was provided as an answer to that question.
The Intel Hyper-threading technology – as the company named it – plays a trick that makes your operating system believe there are several different CPUs attached to it. However, in reality, there is only one. This, in turn, makes your system faster along with providing better performance all along. To make it even clearer to you, here is another example. In case you have a single-core CPU along with Hyper-threading, the operating system of your computer is going to find two logical CPUs in place. Just like that, in case you have a dual-core CPU, the operating system will be tricked into believing there are four logical CPUs. As a result, these logical CPUs increases the speed of the system via the usage of logic. It also splits as well as arranges the hardware execution resources. This, in turn, offers the best possible speed needed for conducting several processes.
CPU Cores vs Threads: What is the Difference?
Now, let us take a few moments to figure out what is the difference between a core and a thread. To put it simply, you can think of the core as the mouth of a person, while threads can be compared with the hands of a human being. As you know that the mouth is responsible for carrying out the eating, on the other hand, the hands help organize the ‘workload.’ The thread helps in delivering the workload to the CPU with the utmost ease. The more threads you have, the better your work queue is organized. As a result, you will get an enhanced efficiency for processing the information that comes with it.
CPU cores are the actual hardware component inside the physical CPU. On the other hand, threads are the virtual components that manage the tasks at hand. There are several different ways in which the CPU interacts with multiple threads. In general, a thread feeds the tasks to the CPU. The second thread is accessed only when the information that has been provided by the first thread is unreliable or slow such as a cache miss.
Cores, as well as threads, can be found in both Intel and AMD processors. You will find hyper-threading only in Intel processors and nowhere else. The feature uses threads in an even better way. AMD cores, on the other hand, tackle this issue by adding additional physical cores. As a result, the end results are in par with the hyper-threading technology.
Okay, guys, we have come toward the end of this article. Time to wrap it up. This is everything you need to know about CPU cores vs Threads and what is the difference between them both. I hope the article has provided you with much value. Now that you have the necessary knowledge on the topic, put it to the best possible use for you. Knowing more about your CPU means you can make the most out of your computer with the utmost ease.
Also read: Unblock YouTube When Blocked In Offices, Schools or Colleges?
So, there you have it! You can easily end the debate of CPU Cores vs Threads, using the above guide. But if you still have any queries regarding this guide then feel free to ask them in the comment section.