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

Комментарии • 151

  • @di380
    @di380 5 лет назад +9

    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.

  • @Jimthetyreman
    @Jimthetyreman 6 лет назад +40

    Wish you had been my science teacher at school!! Looking forward to the next in the series!

  • @nimrodlevy
    @nimrodlevy 6 лет назад +13

    Mr. Gary, Thank for explaining to us mortals such complicated stuff in so coherant way. Thanks, big fan... cant wait for your next video

  • @rost1190
    @rost1190 6 лет назад +46

    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

    • @GaryExplains
      @GaryExplains  6 лет назад +14

      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

    • @rost1190
      @rost1190 6 лет назад +2

      Cheers :)

    • @tsmwebb
      @tsmwebb 6 лет назад

      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

    • @berinlarson9548
      @berinlarson9548 5 лет назад +3

      You could read this book "Nand to tetris" to get an understanding at the hardware level.

    • @MurtagBY
      @MurtagBY 2 года назад +1

      Crash course on CS on youtube covers that. Also there is great nandgame to learn that in a game form

  • @TheDavidlloydjones
    @TheDavidlloydjones 5 лет назад +1

    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...

  • @jakejacobs5488
    @jakejacobs5488 5 лет назад +2

    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👌🏽

  • @someguy007
    @someguy007 6 лет назад +5

    This was a fantastic explanation. Thanks so much for making it seem so easy.

  • @theoyv2329
    @theoyv2329 4 года назад +2

    that was very clear thank you for your explanations

  • @adamkaesberg9394
    @adamkaesberg9394 6 лет назад +1

    Most informative CPU explanation I have ever watched

  • @dankhill7917
    @dankhill7917 4 года назад +3

    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?

  • @user-yh5wo7mr3y
    @user-yh5wo7mr3y 6 лет назад +5

    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.

    • @GarySims
      @GarySims 6 лет назад +1

      Live It What "hardware" explanation are you looking for?

    • @user-yh5wo7mr3y
      @user-yh5wo7mr3y 6 лет назад +1

      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.

  • @adaroidzoid
    @adaroidzoid 6 лет назад +2

    Great job Gary!!!

  • @epukiro15
    @epukiro15 6 лет назад +1

    Excellent explanation. Love your videos, thanks!

  • @lazarusblackwell6988
    @lazarusblackwell6988 3 года назад +1

    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.

  • @a2m0r10
    @a2m0r10 6 лет назад

    Can't wait for the next video !!
    I hope you explain how physically cpu is working ? And how the cpu understands the machine code ?

  • @YA-yr8tq
    @YA-yr8tq Год назад

    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

  • @AbdulRehman-ok6ls
    @AbdulRehman-ok6ls 6 лет назад

    Great Job Gary cant wait for Assembly Language Video.

  • @dongemus
    @dongemus 6 лет назад

    Love the channel Gary!
    Only suggestion I would make is to get warmer temperature lighting... Or warm it in post. Cheers!

  • @jakirbasha69
    @jakirbasha69 6 лет назад +1

    salute to your explanation professor.

  • @felipe367
    @felipe367 6 лет назад +2

    Perhaps make a video comparing APPLE A SERIES chips vs QUALCOMM VS EXYNOS VS XIAOMI X series chips?

    • @GaryExplains
      @GaryExplains  6 лет назад

      I have done loads of those over at Android Authority.

  • @mehmetemingungor973
    @mehmetemingungor973 5 лет назад

    Thank you for this simple explanation with the understandable examples

  • @soumendas4533
    @soumendas4533 6 лет назад +1

    gary you rock....

  • @rami3sam
    @rami3sam 6 лет назад

    The best video so far waiting for the next one see you soon!

  • @user-ye4ox7hz5r
    @user-ye4ox7hz5r 6 лет назад

    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 .

  • @arjunthomas
    @arjunthomas 6 лет назад

    Nicely done as always.. cheers Gary.. 👍

  • @Bensmithcycling
    @Bensmithcycling 3 года назад

    Thanks Gary I think you just saved my A-Level Computing class

  • @harshdeepbhatia8644
    @harshdeepbhatia8644 6 лет назад +1

    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!!!????

    • @GaryExplains
      @GaryExplains  6 лет назад +4

      I think most of that is covered here: ruclips.net/video/0_TN845dxUU/видео.html

  • @josuemunro
    @josuemunro 5 лет назад

    Infinitely better explanation than my lecturers, onya Garyyyy

  • @megacosmic6507
    @megacosmic6507 6 лет назад

    Btu how does it work on a physical level, what is the cpu actually doing physically

  • @hamzawaheed47
    @hamzawaheed47 5 лет назад

    SImply Excellent Explanation!!!

  • @limitless1692
    @limitless1692 2 года назад

    Like
    Super simple and easy to understand
    Thank You:)

  • @chrissizemore8705
    @chrissizemore8705 3 года назад

    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!

  • @1MarkKeller
    @1MarkKeller 6 лет назад +11

    *GARY!!!*
    *Good Morning Professor!!!*

  • @harshdeepbhatia8644
    @harshdeepbhatia8644 6 лет назад

    Lovely video sir and love to see the next video.

  • @oguzaranay
    @oguzaranay 6 лет назад

    You reminded me of the Basic programming language in MSX 170 computer, it had Sprite that you could design your own character.

  • @jonathangerard745
    @jonathangerard745 3 года назад

    NIce video, very good explanation

  • @soomjeetsahoo8710
    @soomjeetsahoo8710 6 лет назад

    Difference between register, cache memory and ram? Gary please explain

    • @GaryExplains
      @GaryExplains  6 лет назад

      Was the difference between RAM and register clear in the video? For cache memory see here: ruclips.net/video/roeZs-eL-lw/видео.html

  • @tahq9211
    @tahq9211 3 года назад +1

    thank you im doing this for school work

  • @viranijoush
    @viranijoush 6 лет назад +2

    Mind blown.....!!!

  • @kawataakira8945
    @kawataakira8945 5 лет назад

    Thank you for your nice teaching.

  • @hupa1a
    @hupa1a 3 года назад

    great one!

  • @adamnawaz
    @adamnawaz 6 лет назад

    Please make a video on
    Transistor count and how they put so many on a single chip.

  • @itaco8066
    @itaco8066 6 лет назад +1

    Great video, thx

  • @emmett04
    @emmett04 6 лет назад

    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..🙂

  • @elviraeloramilosic9813
    @elviraeloramilosic9813 6 лет назад

    Great explanation! 👍🏻

  • @AjayKumar-ds7zb
    @AjayKumar-ds7zb 3 года назад

    Thank you :)

  • @brentmakey9376
    @brentmakey9376 4 года назад

    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.

    • @null5573
      @null5573 3 года назад

      The difference between RAM and Hard drive is like the difference between your short term/working and long term memory.

  • @Ryuseigan
    @Ryuseigan 6 лет назад

    The basics always helps.

  • @supersu6138
    @supersu6138 6 лет назад +2

    Hello Professor GARY !

    • @GaryExplains
      @GaryExplains  6 лет назад +2

      Hello! You competing with Mark Keller??? :-)

    • @supersu6138
      @supersu6138 6 лет назад +2

      Kinda 😂😂🔥🔥

  • @kidskids9208
    @kidskids9208 4 года назад

    very helpful thx

  • @jakep8484
    @jakep8484 2 года назад

    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

    • @GaryExplains
      @GaryExplains  2 года назад

      No, a microcontroller is a standard CPU.

  • @druzzyaka
    @druzzyaka 5 лет назад

    Great job!

  • @blackneck77
    @blackneck77 3 года назад

    Thank you.

  • @1Schueni
    @1Schueni 6 лет назад

    After a video about Assembly a video about VHDL/Verilog would be the next step? ;)

  • @cupcakegaming797
    @cupcakegaming797 3 года назад

    So when im streaming my cpu is at 1 to 6% is that good or bad?

  • @darginmathi7542
    @darginmathi7542 6 лет назад +1

    Thanks for making this video

    • @darginmathi7542
      @darginmathi7542 6 лет назад

      And the next video you said that is what I need to know in detail

    • @GaryExplains
      @GaryExplains  6 лет назад

      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".

    • @darginmathi7542
      @darginmathi7542 6 лет назад

      Ok ok....

  • @retardedead5124
    @retardedead5124 6 лет назад

    Where's the next video's link saying in the video end.. about assembly?

  • @RahulAgarwal97
    @RahulAgarwal97 6 лет назад

    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?

    • @GaryExplains
      @GaryExplains  6 лет назад +1

      Darn! You are right, I didn't spot that! :-(

    • @RahulAgarwal97
      @RahulAgarwal97 6 лет назад +1

      Gary Explains Nevermind, it doesn't really matter. Thanks for looking at every comment!

  • @jeeturajpoot9034
    @jeeturajpoot9034 6 лет назад

    this is some serious stuff👀

  • @mathiasfantoni2458
    @mathiasfantoni2458 4 года назад

    Dude, you reversed the playlist. Instead of going from video 1 through 6, it goes from 6 through 1. :/

  • @Jupiter2ignite
    @Jupiter2ignite 6 лет назад

    More!! Please

  • @aibel99
    @aibel99 3 года назад

    I didn't understand this at all. I just want to know how electricty flows into a cpu and does what it does.

  • @avaneeshtiwari7624
    @avaneeshtiwari7624 6 лет назад

    Guru gary 🙌🙌🙌🙌

  • @user-zc5lg8rn5m
    @user-zc5lg8rn5m 2 года назад

    Guys, I understand everything, but where does the instruction come from?

    • @GaryExplains
      @GaryExplains  2 года назад +1

      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.

  • @justmike6298
    @justmike6298 5 лет назад

    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?

    • @GaryExplains
      @GaryExplains  5 лет назад

      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.

  • @akjohnny5997
    @akjohnny5997 3 года назад

    Gary's the homeboy huh

  • @sidharthgkumar4029
    @sidharthgkumar4029 3 года назад

    6:26 are these spaces in the cpu we call as CPU CACHE?

    • @GaryExplains
      @GaryExplains  3 года назад

      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

  • @rishabkumar24
    @rishabkumar24 6 лет назад

    One video on Types of operating system like real time, Time sharing NOS etc 🤔

    • @GaryExplains
      @GaryExplains  6 лет назад +1

      Interesting idea... I will give that some thought.

  • @adarshsunil2351
    @adarshsunil2351 6 лет назад +1

    👍

  • @enishi4ty5
    @enishi4ty5 4 года назад

    why is death stranding helping me understand this? fetch and deliver, on to the next, update for efficiency, avoid water lol

  • @TheAbsoluteSir
    @TheAbsoluteSir 3 года назад

    This makes so much more sense if you've written assembly code lol

  • @kunal31011995
    @kunal31011995 6 лет назад

    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.

    • @GaryExplains
      @GaryExplains  6 лет назад +1

      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.

    • @kunal31011995
      @kunal31011995 6 лет назад

      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.

    • @GaryExplains
      @GaryExplains  6 лет назад +1

      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?"

    • @kunal31011995
      @kunal31011995 6 лет назад

      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

    • @GaryExplains
      @GaryExplains  6 лет назад +1

      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.

  • @BlueGearReviews
    @BlueGearReviews 6 лет назад

    Hey Gary, what phone are you currently using?

  • @hassananon5438
    @hassananon5438 6 лет назад

    Thank you

  • @BullwinkleFFMn
    @BullwinkleFFMn 3 года назад

    Wow I really feel like I've just watched a compelling ad to go buy more RAM. :-P

  • @frimpongrijkaard5403
    @frimpongrijkaard5403 4 года назад

    I would like you to elaborate on instructions set for me

    • @GaryExplains
      @GaryExplains  4 года назад +1

      Maybe this video will help: ruclips.net/video/wjHlvQfo5uI/видео.html

  • @tongrandy828
    @tongrandy828 5 лет назад

    3:15 sorry i dont quite understand why the program counter is 103 after 101 is executed?

    • @tongrandy828
      @tongrandy828 5 лет назад

      is it because of fetching twice which is 101 and 401?

    • @GaryExplains
      @GaryExplains  5 лет назад

      Because each instruction takes up two bytes of memory.

    • @tongrandy828
      @tongrandy828 5 лет назад

      @@GaryExplains i see! Thanks Gary for the explanation, appreciate

  • @alenkruth
    @alenkruth 6 лет назад

    Video on Architecture 🔥

    • @GaryExplains
      @GaryExplains  6 лет назад +1

      You mean buildings, bridges and vaulted ceilings?

    • @alenkruth
      @alenkruth 6 лет назад

      Gary Explains 😅... CPU architecture obviously 😎... I never mind attending your 'Architecture' classes too🔥... That would be a new domain♥️

    • @GaryExplains
      @GaryExplains  6 лет назад

      LOL! What would you like to know about CPU architecture, as that is a bit of a big area.

    • @alenkruth
      @alenkruth 6 лет назад

      Gary Explains The x64 x86 and ARM and stuff🙄. I don't know anything about them.. I wouldlike to learn from you ♥️

    • @GaryExplains
      @GaryExplains  6 лет назад

      Ah, OK, gotcha.

  • @deviyoganadbalaji7449
    @deviyoganadbalaji7449 6 лет назад +4

    What would be the future of smartphones????
    Quantum Smartphone!!!
    Or a smartphone in your own body!!!

    • @drew1360
      @drew1360 5 лет назад +1

      Google "Neuralink." You'll find it interesting

  • @TonyD-dz8pt
    @TonyD-dz8pt 5 лет назад

    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

    • @GaryExplains
      @GaryExplains  5 лет назад

      Return it under guarantee. Next please.

    • @TonyD-dz8pt
      @TonyD-dz8pt 5 лет назад

      @@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

    • @GaryExplains
      @GaryExplains  5 лет назад

      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.

    • @TonyD-dz8pt
      @TonyD-dz8pt 5 лет назад

      @@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

    • @GaryExplains
      @GaryExplains  5 лет назад

      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.

  • @skysoftware4581
    @skysoftware4581 3 года назад

    Quantum CPU when? I want fast FPS in games 😂

    • @GaryExplains
      @GaryExplains  3 года назад

      The problem with games on a quantum computer is that the enemy can be both simultaneously in front of you and behind you! 🤣

  • @xanzoh
    @xanzoh 3 года назад

    I agree

  • @AungBaw
    @AungBaw 6 лет назад

    Professor, ML & Deep learning next lect

    • @GaryExplains
      @GaryExplains  6 лет назад +2

      I got two videos on that over at Android Authority: ruclips.net/video/WXHM_i-fgGo/видео.html and ruclips.net/video/whlODvf-SVk/видео.html

  • @chandrakantlekurwale
    @chandrakantlekurwale 6 лет назад

    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 !!!

    • @GaryExplains
      @GaryExplains  6 лет назад

      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.

  • @ludan1498
    @ludan1498 6 лет назад

    The video's just a bit too long Gary :)
    Would love if the videos were shorter, not going way too deep.

    • @GaryExplains
      @GaryExplains  6 лет назад +3

      You are trolling me right? It is under 8 minutes.

    • @ludan1498
      @ludan1498 6 лет назад

      Gary Explains no man, not trolling. 4 - 6 minutes is the sweet spot. Just my opinion tho

    • @harshdeepbhatia8644
      @harshdeepbhatia8644 6 лет назад +1

      I think that the video length is okay. That's my opinion

  • @Fucue
    @Fucue 2 года назад

    Lmao subtitles are so inaccurate

  • @wdora930
    @wdora930 6 лет назад

    night class 😂😂

  • @unknownwalker1459
    @unknownwalker1459 5 лет назад

    anyone from computer organization course😂