How does a CPU work?
HTML-код
- Опубликовано: 11 сен 2024
- The Central Processing Unit (CPU) is at the heart of all our computing devices: desktops, laptops, and smartphones. But how does it work? Please, let me explains!
Twitter: / garyexplains
Instagram: / garyexplains
----
What is a CPU?
How a CPU works
How does a CPU actually work?
How do CPUs work?
What is a Central Processing Unit (CPU)?
---
Music:
Last Summer by Ikson: / ikson
Gary, you do a better job at explaining how a CPU works in 8 minutes than my college professor did in a whole semester back in college.
Wish you had been my science teacher at school!! Looking forward to the next in the series!
Lol for sure
Mr. Gary, Thank for explaining to us mortals such complicated stuff in so coherant way. Thanks, big fan... cant wait for your next video
How does a CPU work on the hardware level? All the transistors etc. I would really appreciate if you could explain it from a technical point of view! :)
Great video though
That is way too complicated for a RUclips video. The best I can do on that level is this video: ruclips.net/video/d05Evxeq_7w/видео.html
Cheers :)
Maybe Gary will build a computer for us in his spare time :) While we wait on that there are videos of folks building computers on bread boards. I think Ben Eater has done a particularly nice job: ruclips.net/video/HyznrdDSSGM/видео.html
You could read this book "Nand to tetris" to get an understanding at the hardware level.
Crash course on CS on youtube covers that. Also there is great nandgame to learn that in a game form
Gary's mention of sepecial-purpose torpedo computers takes me back to 1970 or '71. The start of my day around 6:00 a.m. was four newspapers and a bunch of single-page indexes couriered over to me in the Rayburn Building from some place in the Commerce Department down in Virginia. An oddity one day: a bunch of torpedo warheads for sale.
Everybody in my gang had been wanting a computer for a while, and this looked like one way of getting one. Bingo! The whole bunch, 28 guidance systems I think it was, got bought up by some group of university clubs in the Netherlands. Good for them, thinks I.
(A little bit later a high-school kid in Georgia or some place bought an entire multi-stage rocket for next to othing by shopping for surplus through pretty much the same sort of reading I used to do. The police, and then the press, paid him an enquiring visit before all the parts actually got delivered...)
And around that time there was this Ed Roberts guy working on a thingie called an Altair. And this Bill Gates kid had the funny idea of *selling* software...
I know this is an old video, but I would just like to say, Great Video!! I love the simplicity of your explanations!! Best on RUclips in my opinion👌🏽
This was a fantastic explanation. Thanks so much for making it seem so easy.
that was very clear thank you for your explanations
Most informative CPU explanation I have ever watched
but how do they physically work? I don't understand how information is stored, and somehow exists within bits of metal, and electricity. How does a hunk of metal translate to me playing pubg? Every little blade of grass, every beam of light is being rendered by bits of metal glued imto plastic with a few watts of electricity coursing through it. But the information isn't physically there, so what is it, and how is it done?
This is basically what Assembly is, kids.
It's a description of what software is at the most primitive level, but not how the hardware works.
Live It What "hardware" explanation are you looking for?
Gary Sims Just the physics - transistors, circuits etc. I've read an answer to another comment - that it's very deep and complicated - however, personally, I'd be very interested in that subject.
Great job Gary!!!
Excellent explanation. Love your videos, thanks!
What i understand about the CPU and Memory (Ram) is that the CPU is the brain and the Ram is the workspace where programs are executed.
Thats pretty much what i know about it.
Can't wait for the next video !!
I hope you explain how physically cpu is working ? And how the cpu understands the machine code ?
Gary, please re-organize the order of the videos, the video 11 on the playlist should be the first video on the series... since it's the oldest.. are you following Little Endian on your videos? xD
Great Job Gary cant wait for Assembly Language Video.
Love the channel Gary!
Only suggestion I would make is to get warmer temperature lighting... Or warm it in post. Cheers!
salute to your explanation professor.
Perhaps make a video comparing APPLE A SERIES chips vs QUALCOMM VS EXYNOS VS XIAOMI X series chips?
I have done loads of those over at Android Authority.
Thank you for this simple explanation with the understandable examples
gary you rock....
The best video so far waiting for the next one see you soon!
great video , excited , for the next one , you could add an exemple for a command from a binary point of view ; we're really going in details here .
Nicely done as always.. cheers Gary.. 👍
Thanks Gary I think you just saved my A-Level Computing class
How about a video on difference between a CPU and GPU. One video on their basic difference and one on their advanced difference and how they work!!!????
I think most of that is covered here: ruclips.net/video/0_TN845dxUU/видео.html
Infinitely better explanation than my lecturers, onya Garyyyy
Btu how does it work on a physical level, what is the cpu actually doing physically
SImply Excellent Explanation!!!
Like
Super simple and easy to understand
Thank You:)
Gary, I teach laptop repair to students who have basically never seen the inside of a computer before. Can I have you permission to show this video in my presentation to explain the basics of a CPU? Thank you!
Absolutely.
*GARY!!!*
*Good Morning Professor!!!*
MARK!!!
Fuck u
Lovely video sir and love to see the next video.
You reminded me of the Basic programming language in MSX 170 computer, it had Sprite that you could design your own character.
NIce video, very good explanation
Difference between register, cache memory and ram? Gary please explain
Was the difference between RAM and register clear in the video? For cache memory see here: ruclips.net/video/roeZs-eL-lw/видео.html
thank you im doing this for school work
Mind blown.....!!!
Thank you for your nice teaching.
great one!
Please make a video on
Transistor count and how they put so many on a single chip.
Great video, thx
Hey Gary! Should we close the background apps (which we day to day use) from multitasking window every single time? For example i use Instagram, Facebook, Twitter, RUclips a lot & whenever i open them, i close them instant after reading the notifications...& again reopen them 5-6 minutes later.. Is it fine?
I will be happy if you make a video on this subject..🙂
Great explanation! 👍🏻
Thank you :)
This just left me with so many more questions haha. Like I get what the CPU is doing but how does the GHz come into play?
What's the diff between ram and a harddrive then.
The difference between RAM and Hard drive is like the difference between your short term/working and long term memory.
The basics always helps.
Hello Professor GARY !
Hello! You competing with Mark Keller??? :-)
Kinda 😂😂🔥🔥
very helpful thx
so basically each cpu has the instruction sets already so user input goes to cpu or ram? is a microcontroller basically like a cpu without an instruction set? Just learning on my own, want to grasp this stuff. Thanks
No, a microcontroller is a standard CPU.
Great job!
Thank you.
After a video about Assembly a video about VHDL/Verilog would be the next step? ;)
So when im streaming my cpu is at 1 to 6% is that good or bad?
Thanks for making this video
And the next video you said that is what I need to know in detail
Great to hear. I plan on making it soon. Of course in an 8 to 10 minute video I can't cover it "in detail".
Ok ok....
Where's the next video's link saying in the video end.. about assembly?
Nice video!
Not to sound too extremist, but there is a slight error ar 3:18 when you increment 101 and get 103...#Just saying...
Can you do a future video on BIOS and how the first instruction is given to the CPU when we press the power button, as during that time even the RAM is emtpy. Who loads the first memory instructions on to the RAM?
Darn! You are right, I didn't spot that! :-(
Gary Explains Nevermind, it doesn't really matter. Thanks for looking at every comment!
this is some serious stuff👀
Dude, you reversed the playlist. Instead of going from video 1 through 6, it goes from 6 through 1. :/
More!! Please
I didn't understand this at all. I just want to know how electricty flows into a cpu and does what it does.
Guru gary 🙌🙌🙌🙌
Guys, I understand everything, but where does the instruction come from?
The RAM. There is a special register called the Program Counter which is the address of the next instruction. When it is fetched the address is incremented. For a jump/branch the PC is set to the destination.
There's sth i didnt get. When the CPU creates the register R1 ( in your exapmle) you place it in a new box next to the CPU box. If that isnt RAM, what kind of memory is it?
It is a special type of memory storage inside of the CPU that runs at the speed of the CPU and can be accessed instantly.
Gary's the homeboy huh
6:26 are these spaces in the cpu we call as CPU CACHE?
No, in that segment I was specifically speaking about the registers. Cache is something else. I have a video on cache memory here: ruclips.net/video/roeZs-eL-lw/видео.html
One video on Types of operating system like real time, Time sharing NOS etc 🤔
Interesting idea... I will give that some thought.
👍
why is death stranding helping me understand this? fetch and deliver, on to the next, update for efficiency, avoid water lol
This makes so much more sense if you've written assembly code lol
I really love your videos, it really helps me to understand things better, since I have started using Kali can you make a video on how to use Kali as a beginners.
Thanks for your comment. Lots of people have asked for videos on Kali, so I guess there is demand. But here is my problem, Kali isn't a thing that you "use". It is a distro that includes loads of tools. To use Kali you need to use the tools. I could make 100 videos on that and while it would be interesting, it would be very niche.
Gary Explains I saw those tools, and they just bounced off my head, never seen any tools like those before, but a bit of guidance and practice might help me and most of the viewer to use Kali.
True, I understand what you are saying. But if I cover one tool, then you can guarantee that the comments under the video will be, "I don't need that tool, what about XYZ?"
Gary Explains I agree too on this, so how about the basics that how to install a program, or how to install windows application like office, winrar, chrome, etc on it and other basic introduction to Kali Linux
I think likely cover topics like those, but not on Kali specifically but on Ubuntu or Mint or something. No need to focus on a distro that is designed for penetration testing and ethical hacking, better to stick with the general purpose distros.
Hey Gary, what phone are you currently using?
Note 8.
Thank you
Wow I really feel like I've just watched a compelling ad to go buy more RAM. :-P
I would like you to elaborate on instructions set for me
Maybe this video will help: ruclips.net/video/wjHlvQfo5uI/видео.html
3:15 sorry i dont quite understand why the program counter is 103 after 101 is executed?
is it because of fetching twice which is 101 and 401?
Because each instruction takes up two bytes of memory.
@@GaryExplains i see! Thanks Gary for the explanation, appreciate
Video on Architecture 🔥
You mean buildings, bridges and vaulted ceilings?
Gary Explains 😅... CPU architecture obviously 😎... I never mind attending your 'Architecture' classes too🔥... That would be a new domain♥️
LOL! What would you like to know about CPU architecture, as that is a bit of a big area.
Gary Explains The x64 x86 and ARM and stuff🙄. I don't know anything about them.. I wouldlike to learn from you ♥️
Ah, OK, gotcha.
What would be the future of smartphones????
Quantum Smartphone!!!
Or a smartphone in your own body!!!
Google "Neuralink." You'll find it interesting
i don't want to know how a CPU works i want to know why do people try and sell a CUP that DON"T work, i don
t get that one, what are you suppose to do with it
Return it under guarantee. Next please.
@@GaryExplains no, you don't get it, i want to know why i would buy one in the first place that don't work, there is always a lot on ebay, can i fix it, can't think of how, always some ridiculous price as usual also
Ah, I see. Well in all honestly I didn't read your comment too closely as basically I made a video about how CPUs work and you started your comment with "i don't want to know how a CPU works", at which point my eyes kinda glazed over. Also from your comment you didn't make it clear that the seller of the CPUs stated they didn't work, I assumed you bought one that you thought was good, but in fact wasn't.
@@GaryExplains so what you do with one that don't work, can it be fixed, when i think about it i can't think of a way you could fix one, so what good is it, gold, there can't be that much in one for the price some people want, can't find anything anywhere on how you could possibly fix one,there is nothing, that would be a real good video if somebody would make one, the first of its kind
I just did a quick search on eBay and the situation isn't a binary as you are suggesting. It seems that most people are either selling CPUs that are untested as "faulty" so that they don't get any negative feedback if it turns out that the CPU is broken. Or they are selling CPUs that have some signs of life but are unstable or crash. The former are basically a lottery, you buy it hoping it will work, a gamble to get a CPU for a low price. The latter are CPUs which could work in a different motherboard, at a lower clock speed or with some physical fixes for bent pins or dirty contacts.
Quantum CPU when? I want fast FPS in games 😂
The problem with games on a quantum computer is that the enemy can be both simultaneously in front of you and behind you! 🤣
I agree
With what?
Professor, ML & Deep learning next lect
I got two videos on that over at Android Authority: ruclips.net/video/WXHM_i-fgGo/видео.html and ruclips.net/video/whlODvf-SVk/видео.html
Please make a video on Jio 4G network in India which provide cheapest 4G rates in the world and compare it with it's other counterparts in the world !!!! Please ,Please, Please !!!
Sorry, how can I do that? I don't live in India and I know absolutely nothing about that company, its practices or its infrastructure.
The video's just a bit too long Gary :)
Would love if the videos were shorter, not going way too deep.
You are trolling me right? It is under 8 minutes.
Gary Explains no man, not trolling. 4 - 6 minutes is the sweet spot. Just my opinion tho
I think that the video length is okay. That's my opinion
Lmao subtitles are so inaccurate
night class 😂😂
anyone from computer organization course😂