Concurrency continued

2 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
This is a free item
$0.00
د.إ0.00
Kz0.00
ARS$0.00
A$0.00
৳0.00
Лв0.00
Bs0.00
B$0.00
P0.00
CA$0.00
CHF 0.00
CLP$0.00
CN¥0.00
COP$0.00
₡0.00
Kč0.00
DKK kr0.00
RD$0.00
DA0.00
E£0.00
ብር0.00
€0.00
FJ$0.00
£0.00
Q0.00
GY$0.00
HK$0.00
L0.00
Ft0.00
₪0.00
₹0.00
ISK kr0.00
¥0.00
KSh0.00
₩0.00
DH0.00
L0.00
ден0.00
MOP$0.00
MX$0.00
RM0.00
N$0.00
₦0.00
C$0.00
NOK kr0.00
रु0.00
NZ$0.00
S/0.00
K0.00
₱0.00
₨0.00
zł0.00
₲0.00
L0.00
QR0.00
SAR0.00
SEK kr0.00
S$0.00
฿0.00
₺0.00
$U0.00
R0.00
ZK0.00
Already have an account? Log In

Transcript

Hi, everyone. In the last video, we talked about concurrency. We talked about how we can utilize the CPU wait time, and in order to give the full CPU utilization of any of the tasks that we are running. So now we're going to be talking about concurrency and parallelism. So why is this conversation even there was a lot of people confuse between concurrency and parallelism, parallelism, they like that, okay, if multiple tasks are being multiplexed on the CPU, then isn't that parallel computing, or isn't that a parallel task? So if this is a serious task, isn't this a pilot task?

And in short, no, because if you look at concurrency, gopher comes waits for two minutes while he's waiting, another gopher comes. So this in this preemption is happening, right. So this is a pre emptive process. But in parallel in parallelism, what we do is we take one method method, and then we replicate across all of our CPU cores. So if you look at the other diagram over here, So this is our concurrent paradigm that we had the same concurrent paradigm can be stretched across multiple CPU cores. So this now has become parallel.

So we have an array of processes, which want to take the CPU time. But now we can divide those into two CPUs. And then both the set of tasks and the set of tasks can execute parallely. Note that if you're if you're looking at one CPU, and if you're looking at one thread, it might still be cereal. But stretching that paradigm across multiple cores into a multi threaded multiple core architecture is what is known as vandalism. So there is a really great talk by Rob pike.

I'm going to share the link in the resource section. I want you all to take a look at that talk. And it's going to clear a lot of concepts or a lot of doubts that you have around concurrency parallelism. So I hope you're also cleared. See you guys in the next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.