Concurrency vs. Parallelism

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024

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

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

    Concurrency is having only one hand.
    - Start doing something with your hand, stop, do another thing, stop, go back to the first thing. So, you are sharing one hand among different activities.
    Parallelism is having both of your hands.
    - Start brushing your teeth with the right hand, style your hair with left hand.

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

    Concurrency is multiple things are happening whether simultaneously or not. Parallelism is things are happening at the same time. Concurrency: Drinking coffee while waiting on a line. Parallelism: While you're drinking coffee at the same time texting to your girlfriend with your other hand.

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

      Actually the human brain is just switching from one task to the other very fast. So it feels parallel but really is concurrent. But the principle is right.

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

      @@MaxCBPCenter do you have sources for this? Autonomic processes occur in distinct subsystems that are "always on", afaik.

  • @pk0179417
    @pk0179417 7 лет назад +1

    Oh hell yes I'm going to share the video. I don't have any friends but I'll forcibly share with my little brother to watch the video AND the entire ad.
    And then he'll probably subscribe because the videos are amazing.

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

    Concurrency is a design where you structure your program into different tasks in a way that, if you run them sequentially or in parallel mode, the final result of the program will remain same. It is independent of the threads, you can run it on single core (or) multi-core the result of program will be same. Concurrency is a way to deal the things whereas Parallelism is a way to do the things.

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

    Hey Bro . Thanks for Greaaat explanation . you are just awesome , I like your Video style now this is clear for the differences between Concurrency and Parallelism . good luck buddy .

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

    In computer science, concurrency refers to the ability of different parts or units of a program, algorithm, or problem to be executed out-of-order or in partial order, without affecting the final outcome. This allows for parallel execution of the concurrent units, which can significantly improve overall speed of the execution in multi-processor and multi-core systems. In more technical terms, concurrency refers to the decomposability property of a program, algorithm, or problem into order-independent or partially-ordered components or units. "Lamport, Leslie (July 1978). "Time, Clocks, and the Ordering of Events in a Distributed System""

  • @vyshnavicheedella5140
    @vyshnavicheedella5140 7 лет назад

    Nice video...easy to understand. I would like to know what is the exact difference centralized computing and distributed computing..plz try to answer if possible

  • @Johnny-nv3gr
    @Johnny-nv3gr 2 года назад

    bro this was awesome. Thanks for dumbing it down for us noobs.

  • @jarinusgermeraad6328
    @jarinusgermeraad6328 7 лет назад +2

    About the four arms thing, I think our brain is more of an obstacle than the amount of arms we've got. What do you guys think? Our brain is, as far as I'm aware, unable to focus on two things at once, hence obstructing our ability to perform tasks in parallel.

    • @DaveXiang
      @DaveXiang  7 лет назад +1

      Yea, our minds don't think in parallel. The casual phrase of "multi-tasking" means your brain allows for high concurrency, but not parallelism.

  • @d_vibe-swe
    @d_vibe-swe 8 лет назад

    Thanks for great explanation!
    What is time sharing then? Is it the same as concurrency?

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

    Oh man, your example with extra set of arms is hilarious... thanks!!

  • @paulsidon4590
    @paulsidon4590 9 лет назад +6

    Never stop making these videos Dave. I am in my first year of university and I don't know much about tech. However going switch out of business and try EE. Or CS. Something in the tech area. Your videos are really helping me. I heard about you from engineered truth and sure glad I did. Now I have a question. When I look at some of the EE classes I'll be taking they sound really intimidating. Do you need to be a straight a student to make it through an engineering degree?

    • @DaveXiang
      @DaveXiang  9 лет назад +4

      +Paul Sidon
      No, you definitely don't have to be a straight A student. If you do EE, CE, or CS, you'll just have to be really disciplined and get used to being confused all the time. I just made a video actually about engineering in college, check that out if you haven't. Thanks for the kind words

    • @paulsidon4590
      @paulsidon4590 9 лет назад

      +Dave Xiang your welcome and thank you for the prompt reply. I was going to save that video for tomorrow night. I would def like to see some vlogs too man. Maybe like what a day at work is like or even just what you get up to day to day. Have a great night.

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

    If with one hand I rub my head and with the another I rub my belly, is this parallelism? or concurrency?

  • @jasmeet17mast
    @jasmeet17mast 8 лет назад +23

    I have just one suggestion, the back ground music is Loud. Like if is 7/10 make it 3-4/10.
    Great Video though

    • @DaveXiang
      @DaveXiang  8 лет назад +3

      +Jasmeet Singh Thanks for the feedback. Yea it's definitely too loud, will be making it much quieter. Thanks

    • @jasmeet17mast
      @jasmeet17mast 8 лет назад +1

      (y)

  • @killerpedro100
    @killerpedro100 7 лет назад +1

    well put out in the humblest of ways. Thanks

  • @guilucasds
    @guilucasds 8 лет назад

    Really nice video, really nice channel! Congratulations.

  • @inancgumus4125
    @inancgumus4125 6 лет назад +9

    You literally confuse sequentiality with concurrency.

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

      yep he does. He does display that really well when explaining concurrency with a single core processor as an example.

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

      I thought he explained it really well. You are multi-tasking except you are not running in these tasks in parallel. Basically task switching. Here is an excerpt from stackoverflow:
      Concurrency means multiple tasks which start, run, and complete in overlapping time periods, in no specific order. Parallelism is when multiple tasks OR several part of a unique task literally run at the same time, e.g. on a multi-core processor.
      It doesn't seem like he's making a mistake.

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

      Inanc Gumus he did not confuse the two sequentially is one task after the other start to finish while concurrent in his example is doing homework stopping to text somebody and then going back to homework.

  • @sundeepchowdary5893
    @sundeepchowdary5893 9 лет назад

    Simple and Clear....Very Usefull...!!!!

  • @harshendubhardwaj5283
    @harshendubhardwaj5283 8 лет назад

    Stay hungry, stay humble!!

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

    This music reminds me of music from HBO's Silicon Valley

  • @alexpeguero-cruz2555
    @alexpeguero-cruz2555 8 лет назад

    Great video Brotha!!!

  • @stevo946
    @stevo946 8 лет назад +13

    I put on my clothes before brushing my teeth #anarchist

  • @pieush16
    @pieush16 7 лет назад

    Great man ! So simply explained.

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

    Great!

  • @Igorryy
    @Igorryy 7 лет назад

    This is all just terminology and nothing else. The true meaning of these two notions is in the set of issues that you need to cope with while programming concurrent and/or parallel applications.

  • @Anwaar.m.a
    @Anwaar.m.a 8 лет назад

    Pretty clear lol =))
    Thank you for the great examples!

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

    Well put! Thank you

  • @vlad981
    @vlad981 9 лет назад +1

    Thanks dude, very useful video!

  • @deshoneverett3373
    @deshoneverett3373 7 лет назад

    What are the similarities between parallelism & metaphores??

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

    Good explanation, thanks Dave

  • @PoppyMusica
    @PoppyMusica 7 лет назад +9

    I breathe and put on my clothes at the same time

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

    How these terms relate to multi threading?

  • @senthilkumar-vc7nj
    @senthilkumar-vc7nj 8 лет назад +1

    so concurrency and sequential are same ?

    • @sean123654
      @sean123654 7 лет назад +1

      senthil kumar p no lol but that's what he says

  • @martysidlauskas1492
    @martysidlauskas1492 7 лет назад

    nice vid mate

  • @plusultra6843
    @plusultra6843 7 лет назад

    Thanks Alot DUDE

  • @rohishd
    @rohishd 7 лет назад

    So what is Driving and talking on the phone at the same time?

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

    the music is distracting nice info tho

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

    Thanks for the explanation :)

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

      Glad it was helpful!

  • @buttegowda
    @buttegowda 7 лет назад

    Thank you sir

  • @vishwadeep007
    @vishwadeep007 7 лет назад

    Thanks ...it is useful

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

    The background music ruins it.

  • @jakubsprega6935
    @jakubsprega6935 8 лет назад

    Great explanation

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

    CITATION NEEDED, also apply @5:08 to yourself.

  • @VeganCheeseburger
    @VeganCheeseburger 7 лет назад

    Brilliant

  • @week-endclassbfbm9600
    @week-endclassbfbm9600 4 года назад

    I definitely know how to crash any computer

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

    the analogies werent good but i like the intention

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

    You can take a shi... and watch your mobile. phone that is parallelism!😂

  • @rolandbrake
    @rolandbrake 7 лет назад

    you can brush your teeth and make a call phone at the same time!

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

    but I think you need one more brain to be parallel