Concurrency vs. Parallelism

  Рет қаралды 36,278

Dave Xiang

Dave Xiang

Күн бұрын

Пікірлер: 67
@fragrance7768
@fragrance7768 6 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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.
@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.
@pk0179417
@pk0179417 8 жыл бұрын
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.
@jarinusgermeraad6328
@jarinusgermeraad6328 7 жыл бұрын
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 жыл бұрын
Yea, our minds don't think in parallel. The casual phrase of "multi-tasking" means your brain allows for high concurrency, but not parallelism.
@mahdizarepoor8964
@mahdizarepoor8964 3 жыл бұрын
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 жыл бұрын
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""
@Johnny-nv3gr
@Johnny-nv3gr 2 жыл бұрын
bro this was awesome. Thanks for dumbing it down for us noobs.
@inelpandzic
@inelpandzic 6 жыл бұрын
Oh man, your example with extra set of arms is hilarious... thanks!!
@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
@SoReaICru
@SoReaICru 3 жыл бұрын
This music reminds me of music from HBO's Silicon Valley
@jasmeet17mast
@jasmeet17mast 8 жыл бұрын
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 жыл бұрын
+Jasmeet Singh Thanks for the feedback. Yea it's definitely too loud, will be making it much quieter. Thanks
@jasmeet17mast
@jasmeet17mast 8 жыл бұрын
(y)
@Igorryy
@Igorryy 8 жыл бұрын
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.
@guilucasds
@guilucasds 8 жыл бұрын
Really nice video, really nice channel! Congratulations.
@harshendubhardwaj5283
@harshendubhardwaj5283 8 жыл бұрын
Stay hungry, stay humble!!
@gustavgmcsd
@gustavgmcsd 6 жыл бұрын
If with one hand I rub my head and with the another I rub my belly, is this parallelism? or concurrency?
@killerpedro100
@killerpedro100 7 жыл бұрын
well put out in the humblest of ways. Thanks
@deshoneverett3373
@deshoneverett3373 7 жыл бұрын
What are the similarities between parallelism & metaphores??
@paulsidon4590
@paulsidon4590 9 жыл бұрын
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 жыл бұрын
+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.
@d_vibe-swe
@d_vibe-swe 8 жыл бұрын
Thanks for great explanation! What is time sharing then? Is it the same as concurrency?
@stevo946
@stevo946 8 жыл бұрын
I put on my clothes before brushing my teeth #anarchist
@Anwaar.m.a
@Anwaar.m.a 8 жыл бұрын
Pretty clear lol =)) Thank you for the great examples!
@sundeepchowdary5893
@sundeepchowdary5893 9 жыл бұрын
Simple and Clear....Very Usefull...!!!!
@pieush16
@pieush16 8 жыл бұрын
Great man ! So simply explained.
@dayvie9517
@dayvie9517 6 жыл бұрын
CITATION NEEDED, also apply @5:08 to yourself.
@inancgumus4125
@inancgumus4125 6 жыл бұрын
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.
@ibrahimgudratli6345
@ibrahimgudratli6345 4 жыл бұрын
Great!
@Retgir
@Retgir 5 жыл бұрын
Good explanation, thanks Dave
@flamboyanz
@flamboyanz 6 жыл бұрын
Well put! Thank you
@PoppyMusica
@PoppyMusica 7 жыл бұрын
I breathe and put on my clothes at the same time
@user-uh2cr9so8l
@user-uh2cr9so8l 5 жыл бұрын
Parallel?
@ZAGGNUT1
@ZAGGNUT1 5 жыл бұрын
But you cant sing while brushing your teeth.
@nakibtheexplorer5383
@nakibtheexplorer5383 4 жыл бұрын
@@ZAGGNUT1 thats concurant
@jaypacamarra1027
@jaypacamarra1027 4 жыл бұрын
But can you breathe in and breath out at the same time?
@ronaldabellano5643
@ronaldabellano5643 5 жыл бұрын
the music is distracting nice info tho
@vlad981
@vlad981 9 жыл бұрын
Thanks dude, very useful video!
@ironnerd2511
@ironnerd2511 5 жыл бұрын
How these terms relate to multi threading?
@paterfamiliasgeminusiv4623
@paterfamiliasgeminusiv4623 6 жыл бұрын
The background music ruins it.
@nerodant85
@nerodant85 4 жыл бұрын
Thanks for the explanation :)
@DaveXiang
@DaveXiang 4 жыл бұрын
Glad it was helpful!
@alexpeguero-cruz2555
@alexpeguero-cruz2555 8 жыл бұрын
Great video Brotha!!!
@jakubsprega6935
@jakubsprega6935 8 жыл бұрын
Great explanation
@senthilkumar-vc7nj
@senthilkumar-vc7nj 8 жыл бұрын
so concurrency and sequential are same ?
@sean123654
@sean123654 7 жыл бұрын
senthil kumar p no lol but that's what he says
@plusultra6843
@plusultra6843 7 жыл бұрын
Thanks Alot DUDE
@martysidlauskas1492
@martysidlauskas1492 7 жыл бұрын
nice vid mate
@buttegowda
@buttegowda 7 жыл бұрын
Thank you sir
@vishwadeep007
@vishwadeep007 7 жыл бұрын
Thanks ...it is useful
@_mvr_
@_mvr_ 5 жыл бұрын
the analogies werent good but i like the intention
@rohishd
@rohishd 7 жыл бұрын
So what is Driving and talking on the phone at the same time?
@DaveXiang
@DaveXiang 7 жыл бұрын
parallelism
@DraganAlves
@DraganAlves 7 жыл бұрын
Brilliant
@week-endclassbfbm9600
@week-endclassbfbm9600 4 жыл бұрын
I definitely know how to crash any computer
@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 6 жыл бұрын
but I think you need one more brain to be parallel
Concurrency vs Parallelism
9:29
Jakob Jenkov
Рет қаралды 68 М.
10 Useful Technical Terms
8:51
Dave Xiang
Рет қаралды 69 М.
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 3,9 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 2,3 МЛН
Static vs. Shared Libraries
11:00
Dave Xiang
Рет қаралды 65 М.
Concurrency vs Parallelism
8:23
Defog Tech
Рет қаралды 245 М.
Personal Branding for Software Developers
10:20
Dave Xiang
Рет қаралды 9 М.
Lecture 1, unit 1: Introduction to Concurrency
12:03
Mike Swift
Рет қаралды 73 М.
7 Years of Software Engineering Advice in 18 Minutes
18:32
API vs. SDK: What's the difference?
9:21
IBM Technology
Рет қаралды 1,4 МЛН
Easy Google Coding Interview With Ben Awad
28:00
Clément Mihailescu
Рет қаралды 1 МЛН
What is a GPU?
6:41
Dave Xiang
Рет қаралды 26 М.
Zig for Impatient Devs
9:48
Isaac Harris-Holt
Рет қаралды 102 М.
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН