{"video_id":"fp_c8m3VyhwCs","title":"TQ: What Exactly Is A CPU Core, Anyway?","channel":"Techquickie","show":"Techquickie","published_at":"2021-09-22T00:55:00.044Z","duration_s":233,"segments":[{"start_s":0.0,"end_s":6.8,"text":"We've gotten used to throwing around the term CPU core, the part of your processor that does the actual, you know, processing.","speaker":null,"is_sponsor":0},{"start_s":6.8,"end_s":11.8,"text":"We understand that more cores are usually better, especially for applications like video editing.","speaker":null,"is_sponsor":0},{"start_s":11.8,"end_s":16.3,"text":"But what exactly makes a core different from the rest of the CPU?","speaker":null,"is_sponsor":0},{"start_s":16.3,"end_s":22.0,"text":"And how exactly do they work? It's probably useful to first define what a core is not.","speaker":null,"is_sponsor":0},{"start_s":22.0,"end_s":29.6,"text":"Cores don't handle I.O. or input output from the rest of the system as there's a separate part of the CPU die that deals with that.","speaker":null,"is_sponsor":0},{"start_s":29.8,"end_s":37.3,"text":"Nor do they provide you with the graphics. That is the responsibility of an integrated GPU, which also sits on a different part of the die.","speaker":null,"is_sponsor":0},{"start_s":37.3,"end_s":42.4,"text":"So now let's look at what a core does do by talking about the different parts of a core.","speaker":null,"is_sponsor":0},{"start_s":42.4,"end_s":46.1,"text":"Let's start out with the ALU or Arithmetic Logic Unit.","speaker":null,"is_sponsor":0},{"start_s":46.1,"end_s":51.0,"text":"The ALU does exactly what it sounds like. It's the part of your computer that does the thinking.","speaker":null,"is_sponsor":0},{"start_s":51.0,"end_s":57.6,"text":"More specifically, it handles mathematical operations and also carries out logical operations such as comparing different values.","speaker":null,"is_sponsor":0},{"start_s":57.7,"end_s":60.9,"text":"Although this might make the ALU sound like a fancy calculator,","speaker":null,"is_sponsor":0},{"start_s":60.9,"end_s":68.4,"text":"the programming languages that enable everything you do on your computer rely on math and formal logic that the ALU can understand.","speaker":null,"is_sponsor":0},{"start_s":68.4,"end_s":72.5,"text":"Cores often also have a floating point unit, which is similar to an ALU,","speaker":null,"is_sponsor":0},{"start_s":72.5,"end_s":76.5,"text":"but deals with number sets that have their decimal points in different places.","speaker":null,"is_sponsor":0},{"start_s":76.5,"end_s":80.9,"text":"And you can learn more about what this means and why it's important in this video right up here.","speaker":null,"is_sponsor":0},{"start_s":80.9,"end_s":85.4,"text":"But how do the ALU and the FPU know what to work on?","speaker":null,"is_sponsor":0},{"start_s":85.4,"end_s":88.5,"text":"Well, data is fed to these units by registers.","speaker":null,"is_sponsor":0},{"start_s":88.5,"end_s":93.7,"text":"These are temporary holding places for whatever the CPU core has to process next.","speaker":null,"is_sponsor":0},{"start_s":93.7,"end_s":99.1,"text":"One type of register, called an input register, holds the data that the CPU needs to process,","speaker":null,"is_sponsor":0},{"start_s":99.1,"end_s":105.2,"text":"while another type of register, called an instruction register, tells the CPU what to do with that data.","speaker":null,"is_sponsor":0},{"start_s":105.2,"end_s":110.8,"text":"So if the system needs to multiply 6 and 3, it will place 6 and 3 into the input registers","speaker":null,"is_sponsor":0},{"start_s":110.8,"end_s":113.9,"text":"and a multiply instruction into the instruction register.","speaker":null,"is_sponsor":0},{"start_s":113.9,"end_s":117.3,"text":"The ALU will then figure out the product, 18 in this case,","speaker":null,"is_sponsor":0},{"start_s":117.3,"end_s":122.6,"text":"and send the result to yet another part of the core called an accumulator.","speaker":null,"is_sponsor":0},{"start_s":122.6,"end_s":125.9,"text":"The accumulator then sends the result to the cache,","speaker":null,"is_sponsor":0},{"start_s":125.9,"end_s":130.9,"text":"which is a small amount of extremely fast memory built into each core.","speaker":null,"is_sponsor":0},{"start_s":130.9,"end_s":137.4,"text":"This data can then be read by the program that requested it. And by the way, the cache sends data the other direction as well.","speaker":null,"is_sponsor":0},{"start_s":137.4,"end_s":143.7,"text":"Specifically, it holds the data and the instruction the CPU has to process and execute before that data enters the ALU.","speaker":null,"is_sponsor":0},{"start_s":143.7,"end_s":147.9,"text":"Now, at the beginning of all this, the data is initially fetched from your main system RAM,","speaker":null,"is_sponsor":0},{"start_s":147.9,"end_s":153.7,"text":"but having it in the cache before the cores need to process it makes your PC run much faster.","speaker":null,"is_sponsor":0},{"start_s":153.7,"end_s":158.9,"text":"Once the CPU core finishes working on one instruction, it of course has to move on to the next one.","speaker":null,"is_sponsor":0},{"start_s":158.9,"end_s":162.5,"text":"So another part of the core is called the instruction pointer.","speaker":null,"is_sponsor":0},{"start_s":162.5,"end_s":167.7,"text":"It contains the location and memory where the CPU should load the next instruction from.","speaker":null,"is_sponsor":0},{"start_s":167.7,"end_s":174.5,"text":"But what ties all of it together? To find the answer out, we actually have to go outside the cores themselves.","speaker":null,"is_sponsor":0},{"start_s":174.5,"end_s":179.7,"text":"The CPU features a memory management unit or MMU that's separate from the cores","speaker":null,"is_sponsor":0},{"start_s":179.7,"end_s":185.0,"text":"that directs the data that flows between RAM and the CPU cores, kind of like a traffic cop.","speaker":null,"is_sponsor":0},{"start_s":185.0,"end_s":190.6,"text":"And the CPU die also has a control unit that manages the cores by synchronizing their different parts","speaker":null,"is_sponsor":0},{"start_s":190.6,"end_s":198.3,"text":"so that they work together fluidly. To do so, the control unit uses a clock signal that runs at a specific clock rate.","speaker":null,"is_sponsor":0},{"start_s":198.3,"end_s":205.3,"text":"That same number you see on your CPU or computer's label given in gigahertz or billions of clock cycles per second.","speaker":null,"is_sponsor":0},{"start_s":205.3,"end_s":212.1,"text":"Fast enough to help you watch this video. So hopefully now you understand the difference between a CPU core and the other parts of your processor.","speaker":null,"is_sponsor":0},{"start_s":212.1,"end_s":219.3,"text":"And we know this was a very simplified high level overview of a very complicated device like a CPU.","speaker":null,"is_sponsor":0},{"start_s":219.3,"end_s":223.6,"text":"We don't exactly have time to get into a whole PhD dissertation here on Tech Quicky,","speaker":null,"is_sponsor":0},{"start_s":223.6,"end_s":228.6,"text":"but maybe you'll find one of those down in the comments. So thanks for watching guys, if you liked this video, hit like, hit subscribe,","speaker":null,"is_sponsor":0},{"start_s":228.6,"end_s":233.6,"text":"and hit us up in the comments with your suggestions for topics that we should cover in the future.","speaker":null,"is_sponsor":0}],"full_text":"We've gotten used to throwing around the term CPU core, the part of your processor that does the actual, you know, processing. We understand that more cores are usually better, especially for applications like video editing. But what exactly makes a core different from the rest of the CPU? And how exactly do they work? It's probably useful to first define what a core is not. Cores don't handle I.O. or input output from the rest of the system as there's a separate part of the CPU die that deals with that. Nor do they provide you with the graphics. That is the responsibility of an integrated GPU, which also sits on a different part of the die. So now let's look at what a core does do by talking about the different parts of a core. Let's start out with the ALU or Arithmetic Logic Unit. The ALU does exactly what it sounds like. It's the part of your computer that does the thinking. More specifically, it handles mathematical operations and also carries out logical operations such as comparing different values. Although this might make the ALU sound like a fancy calculator, the programming languages that enable everything you do on your computer rely on math and formal logic that the ALU can understand. Cores often also have a floating point unit, which is similar to an ALU, but deals with number sets that have their decimal points in different places. And you can learn more about what this means and why it's important in this video right up here. But how do the ALU and the FPU know what to work on? Well, data is fed to these units by registers. These are temporary holding places for whatever the CPU core has to process next. One type of register, called an input register, holds the data that the CPU needs to process, while another type of register, called an instruction register, tells the CPU what to do with that data. So if the system needs to multiply 6 and 3, it will place 6 and 3 into the input registers and a multiply instruction into the instruction register. The ALU will then figure out the product, 18 in this case, and send the result to yet another part of the core called an accumulator. The accumulator then sends the result to the cache, which is a small amount of extremely fast memory built into each core. This data can then be read by the program that requested it. And by the way, the cache sends data the other direction as well. Specifically, it holds the data and the instruction the CPU has to process and execute before that data enters the ALU. Now, at the beginning of all this, the data is initially fetched from your main system RAM, but having it in the cache before the cores need to process it makes your PC run much faster. Once the CPU core finishes working on one instruction, it of course has to move on to the next one. So another part of the core is called the instruction pointer. It contains the location and memory where the CPU should load the next instruction from. But what ties all of it together? To find the answer out, we actually have to go outside the cores themselves. The CPU features a memory management unit or MMU that's separate from the cores that directs the data that flows between RAM and the CPU cores, kind of like a traffic cop. And the CPU die also has a control unit that manages the cores by synchronizing their different parts so that they work together fluidly. To do so, the control unit uses a clock signal that runs at a specific clock rate. That same number you see on your CPU or computer's label given in gigahertz or billions of clock cycles per second. Fast enough to help you watch this video. So hopefully now you understand the difference between a CPU core and the other parts of your processor. And we know this was a very simplified high level overview of a very complicated device like a CPU. We don't exactly have time to get into a whole PhD dissertation here on Tech Quicky, but maybe you'll find one of those down in the comments. So thanks for watching guys, if you liked this video, hit like, hit subscribe, and hit us up in the comments with your suggestions for topics that we should cover in the future."}