current location:Home > Computer machine
> How many cores and threads of the CPU are suitable for? Is the subsequent Ghz the better the higher the number? text
How many cores and threads of the CPU are suitable for? Is the subsequent Ghz the better the higher the number?
time:2023-04-02 10:04:41 source:scripttoolbox.com author:Loudspeaker box
How many cores and threads of the CPU are suitable for? Is the subsequent Ghz the better the higher the number?
Take a simple example. The CPU is a bank, and everyone queues up to deposit and withdraw money to go through the formalities. There are several windows that are several threads, that is, the number of customers that can be served "simultaneously". The number of cores is equivalent to the number of employees, that is, the people who actually work. There are 4 cores and 4 threads, four employees and four windows, and one employee is responsible for one window. There is nothing to say. There are 4 cores and 8 threads, four employees and eight windows. One employee is responsible for two windows. However, the employee does not have a clone technique. When employee A is working in window 1, he cannot handle window 2 at the same time. This is called hyperthreading (Hyperthread). What is the difference between 4 cores and 8 threads and 4 cores and 4 threads? Or what are the benefits of hyperthreading? It depends on the situation. If 4 depositors come and go through the formalities in 4 windows, then 4C4T (4 cores and 4 threads, abbreviated below) and 4C8T are no different. But the actual situation is that there are more than 100 people sitting in the hall of the bank all the year round, and they have to go through the formalities. The procedures are often very complicated, requiring depositors to fill in 10,000,000 documents. If you keep going through the formalities for the first four depositors, the latter will wait until the cucumber dishes are cold, and the bank will be complained to the death. So let's do it like this: when depositor X fills in the documents, call depositor Y to go through the formalities, and after X fills out the document, let X come over to continue the process. However, when calling Y to come over, you have to temporarily put away the list and information related to X's depositor, and wait for X to come over next time to put away the Y-related things, and then take out X's things. At this time, the advantage of more windows, that is, more threads, is displayed. When X fills in the documents at the No. 1 window, staff A can go to the No. 2 window to go through the formalities for Y, and then go to the No. 1 window to continue the formalities for X. This saves time in packing things up and down, which can greatly improve efficiency. Because such switching is actually very frequent, it is still a lot of things in general. And the more tasks hyperthreading is, the better the effect is. To be more specific, although the clerk can only handle one order at a time, he has two eyes, two hands, one mouth and one brain. When dealing with a customer's list, you must first look at it with your eyes, then think about how to deal with it, and then use your mouth. Almost all orders are in this process, and when these three items are completed, it is considered a single order. But when the clerk started to think about it after reading the first list, his eyes were actually idle. When I started to make the first list, my eyes and mind were idle. Can't let her idle! Therefore, we ask that the staff should start to look at the next order of the customer with their eyes when they start to think about the first order, instead of waiting for the first order to be completely processed before looking at the second order. In this way, after thinking about the first list and starting to speak, you can immediately start thinking about the second list, and at the same time your eyes can look at the third list. In other words, the clerk can work on the first order in his hand, think about the second order in his mind, and look at the third order at the same time. To a certain extent, although the clerk does not have a clone technique, he is handling three orders at the same time, which is much more efficient, right? This is called pipeline. But sometimes for a saver, the first order can't be continued until the next one is completed. For example, a depositor needs to check the balance before remittance, and it is impossible to process the remittance list without knowing the balance. In addition, lists are not the same as lists, some lists require a long time to think about, and some lists do not need to be thought about at all. Therefore, sometimes a staff member is in charge of a window, and sometimes his hands, brains and eyes are idle. At this time, hyperthreading can better drain the residual value of the employee. For example, although he does not have the avatar technique, for example, he is doing formalities for X in the first window, and his eyes are idle for various reasons, so he can first look at Y's list in the second window. Therefore, the general desktop-level CPU has hyperthreading, and the notebook CPU eats hyperthreading. Because the size of the laptop screen indirectly limits the number of programs you open. For example, on a desktop computer, you can easily put the browser + PDF + Excel + Word on one screen to read and write, which is very efficient. On a small 12-inch screen, opening a large Excel is already a big head, and if you open something else and cut it, it really can't work. So the notebook is better to save the hyper-threading to reduce power consumption. GHz represents how many actions each employee can perform per second. Generally speaking, the more movements an employee can do per second, the faster he can work. However, this is not absolute. Some employees are veterans, and they can complete one thing in 10 movements. Some staff are inefficient, and it takes 30 actions to complete the same thing.
Take a simple example. The CPU is a bank, and everyone queues up to deposit and withdraw money to go through the formalities. There are several windows that are several threads, that is, the number of customers that can be served "simultaneously". The number of cores is equivalent to the number of employees, that is, the people who actually work. There are 4 cores and 4 threads, four employees and four windows, and one employee is responsible for one window. There is nothing to say. There are 4 cores and 8 threads, four employees and eight windows. One employee is responsible for two windows. However, the employee does not have a clone technique. When employee A is working in window 1, he cannot handle window 2 at the same time. This is called hyperthreading (Hyperthread). What is the difference between 4 cores and 8 threads and 4 cores and 4 threads? Or what are the benefits of hyperthreading? It depends on the situation. If 4 depositors come and go through the formalities in 4 windows, then 4C4T (4 cores and 4 threads, abbreviated below) and 4C8T are no different. But the actual situation is that there are more than 100 people sitting in the hall of the bank all the year round, and they have to go through the formalities. The procedures are often very complicated, requiring depositors to fill in 10,000,000 documents. If you keep going through the formalities for the first four depositors, the latter will wait until the cucumber dishes are cold, and the bank will be complained to the death. So let's do it like this: when depositor X fills in the documents, call depositor Y to go through the formalities, and after X fills out the document, let X come over to continue the process. However, when calling Y to come over, you have to temporarily put away the list and information related to X's depositor, and wait for X to come over next time to put away the Y-related things, and then take out X's things. At this time, the advantage of more windows, that is, more threads, is displayed. When X fills in the documents at the No. 1 window, staff A can go to the No. 2 window to go through the formalities for Y, and then go to the No. 1 window to continue the formalities for X. This saves time in packing things up and down, which can greatly improve efficiency. Because such switching is actually very frequent, it is still a lot of things in general. And the more tasks hyperthreading is, the better the effect is. To be more specific, although the clerk can only handle one order at a time, he has two eyes, two hands, one mouth and one brain. When dealing with a customer's list, you must first look at it with your eyes, then think about how to deal with it, and then use your mouth. Almost all orders are in this process, and when these three items are completed, it is considered a single order. But when the clerk started to think about it after reading the first list, his eyes were actually idle. When I started to make the first list, my eyes and mind were idle. Can't let her idle! Therefore, we ask that the staff should start to look at the next order of the customer with their eyes when they start to think about the first order, instead of waiting for the first order to be completely processed before looking at the second order. In this way, after thinking about the first list and starting to speak, you can immediately start thinking about the second list, and at the same time your eyes can look at the third list. In other words, the clerk can work on the first order in his hand, think about the second order in his mind, and look at the third order at the same time. To a certain extent, although the clerk does not have a clone technique, he is handling three orders at the same time, which is much more efficient, right? This is called pipeline. But sometimes for a saver, the first order can't be continued until the next one is completed. For example, a depositor needs to check the balance before remittance, and it is impossible to process the remittance list without knowing the balance. In addition, lists are not the same as lists, some lists require a long time to think about, and some lists do not need to be thought about at all. Therefore, sometimes a staff member is in charge of a window, and sometimes his hands, brains and eyes are idle. At this time, hyperthreading can better drain the residual value of the employee. For example, although he does not have the avatar technique, for example, he is doing formalities for X in the first window, and his eyes are idle for various reasons, so he can first look at Y's list in the second window. Therefore, the general desktop-level CPU has hyperthreading, and the notebook CPU eats hyperthreading. Because the size of the laptop screen indirectly limits the number of programs you open. For example, on a desktop computer, you can easily put the browser + PDF + Excel + Word on one screen to read and write, which is very efficient. On a small 12-inch screen, opening a large Excel is already a big head, and if you open something else and cut it, it really can't work. So the notebook is better to save the hyper-threading to reduce power consumption. GHz represents how many actions each employee can perform per second. Generally speaking, the more movements an employee can do per second, the faster he can work. However, this is not absolute. Some employees are veterans, and they can complete one thing in 10 movements. Some staff are inefficient, and it takes 30 actions to complete the same thing.
(Responsible editor:Monitor)
Last:12th generation Core + OLED flagship high-brush screen, ASUS unparalleled thin and light notebook is a good choice
Next:ZTE Yuanhang 30S launched on the official website, the new machine passed the certification
Next:ZTE Yuanhang 30S launched on the official website, the new machine passed the certification
Related content
- ·The 12th generation i3CPU is also overclocked to 5G, MSI's new Mortar MAX motherboard makes low-end CPU performance soar
- ·Sony APS-C Movie Camera FX30 Released This Month, News Says, Cheaper Than FX3
- ·The latest router recommendation in 2022! Check to see if your router is on the list
- ·Apple M2 Pro / M2 Max version of MacBook Pro has been developed and tested, Apple Watch Pro has been exposed again
- ·The eye of the prodigal is not a prodigal, the new ROG Ranger RX TKL three-mode mechanical keyboard feels good to use
- ·The National Bank is 400 more expensive! Sony PS5 has actually risen in price: wait for the party to lose completely
- ·JD.com was selected into the first Fortune China ESG Influence List
- ·A war between Intel and AMD? What is XeSS that easily doubles the frame rate?
- ·Practical tutorial: Laptop memory upgrade, hard disk expansion and replacement, and lossless rapid migration system
- ·The industry's first four-star sterilization, what are the highlights of Senge U5 sterilization integrated dishwasher?
- ·The American God of War in the motherboard, the first choice for the beautiful white host, the colorful 690 motherboard is beautiful
- ·Gotta get a new processor! The new version of Sony PS5 is about to go on sale: no surprise for the price?
- ·Home AC+AP whole house coverage wireless WiFi solution! Not only strong signal, but also save money
- ·Xueba Tablet Honor Tablet 8 joins hands with Zhang Quanling to create first lesson for falling in love with reading
- ·There is a 200Hz ultra-high brush for less than a thousand yuan! This may be the most cost-effective e-sports screen with fish
- ·ASUS released ROG gaming phone 6D Ultimate invitation: released on September 19
Latest content
- ·Microsoft's Xbox console tests new interface to view games in XGP subscription library individually
- ·Musk: Cars can also be directly connected to the Starlink network, and the initial network speed of mobile phones is only 2~4Mbps
- ·Ideal Mall officially launched the new Ideal L9 accessories, AR smart glasses 2799 yuan
- ·Apple M2 Pro / M2 Max version of MacBook Pro has been developed and tested, Apple Watch Pro has been exposed again
- ·Good quality and multiple functions, recommended for school dormitory sockets
- ·Lenovo Yangtian M460 evaluation: a reliable device for small and medium-sized enterprises to improve office efficiency
- ·It is reported that the standard version of Xiaomi Mi 13 uses a 6.36-inch screen with a single-hole design in the center
- ·World Artificial Intelligence Conference 2022 announced to be held in Shanghai from September 1-3
- ·BYD frigate 07 debuted, priced at 220,000-280,000 yuan
- ·How to split PDF? 4 tools to help you easily solve! Easy to use and convenient
Recommended content
- ·San Francisco 49ers Snapback Hats
- ·Michigan Wolverines Snapback Hats
- ·Toronto Blue Jays Snapback Hats
- ·Tampa Bay Lightning Snapback Hats
- ·Las Vegas Raiders Snapback
- ·Tampa Bay Rays Snapback Hats
- ·Atlanta Falcons Jerseys
- ·New England Patriots Snapback Hats
- ·Texas A&M Aggies Snapback Hats
- ·Philadelphia Eagles Snapback Hats
Hot content
- ·Computer science! What are the wires in the case for?
- ·Apple's special event official announcement, the new iPhone may support satellite connection?
- ·The American God of War in the motherboard, the first choice for the beautiful white host, the colorful 690 motherboard is beautiful
- ·Complete text-to-speech reading in one step, two tools to improve learning efficiency
- ·2.8K OLED high-value large screen notebook! ASUS Dreadnought Pro15 Ryzen Edition goes on sale
- ·Has the owner been educated again? Tesla wants to cancel the shift lever in all systems: shifting has to be fully automatic
- ·The most beautiful folding screen flagship is officially released, the minimum is only 7499 yuan
- ·2022Q2 China printer data: commercial decline, consumption growth against the trend
- ·The back wave pushes the front wave, the new memory price butcher is here, the domestic cost-effective ordinary memory stick test
- ·It's crazy to change machines in summer, let's see if these are your dishes