WEBVTT

00:00.340 --> 00:04.690
So, guys, now let us try to understand what exactly parallelism is.

00:04.960 --> 00:09.710
So continuing with the same example, the parallelism is very easy to understand.

00:09.730 --> 00:16.360
Parallelism simply means that doing two or more different tasks in parallel that is at the same time.

00:16.360 --> 00:17.110
Right?

00:19.370 --> 00:22.230
So let us extend the same example.

00:22.250 --> 00:28.850
So consider this time you have three well-diggers assigned a task to dig the respective 100ft deep.

00:28.850 --> 00:29.330
Well.

00:29.360 --> 00:30.050
Right.

00:30.050 --> 00:36.890
But the only difference is that that each one of them now have their own personal well drilling tool

00:37.040 --> 00:43.190
right now, that every person has its own personal well drilling tool.

00:43.190 --> 00:46.520
It means that all the three can take the well in parallel.

00:46.520 --> 00:47.150
Right.

00:47.150 --> 00:52.640
And there is no need for anybody to take rest until he completes the work.

00:52.850 --> 00:57.230
So it simply means that all of the three are doing the work in parallel.

00:57.230 --> 01:02.450
So the work of all the three well diggers is in progression as well as they are doing the work very

01:02.450 --> 01:03.320
fast.

01:03.320 --> 01:04.100
Right.

01:04.550 --> 01:10.970
So in parallelism, all the three well diggers will be able to complete the work in approximately three

01:10.970 --> 01:18.080
by three times where t is the total time taken by all the three well diggers when they were digging

01:18.080 --> 01:20.130
the well in a concurrent fashion.

01:22.090 --> 01:28.360
So here because we have allocated more resources to the Well-digger here, resources means the well-drilling

01:28.390 --> 01:29.560
tool, right?

01:29.560 --> 01:31.300
And therefore they are.

01:31.300 --> 01:36.880
And because they have more hardware resources, therefore they are able to work independently, they

01:36.880 --> 01:39.340
are able to work without blocking each other.

01:39.340 --> 01:40.060
Right.

01:40.540 --> 01:47.440
Because of more hardware resources, no well-digger is ever dependent on other well-digger and they

01:47.440 --> 01:50.290
can do their respective work in parallel.

01:50.830 --> 01:57.520
So it simply means that the total effective time taken to complete the work in parallelism is a way

01:57.520 --> 02:02.020
less than the time taken to complete the same amount of work in a concurrent manner.

02:02.020 --> 02:02.740
Right.

02:04.010 --> 02:09.230
So the point to be noted here is that that the three well-diggers are able to do their work in parallel

02:09.260 --> 02:12.720
because they were provided with more hardware resources.

02:12.740 --> 02:13.460
Right?

02:13.880 --> 02:19.790
We were going to map these examples of doing work in a concurrent manner or doing work in a parallel

02:19.790 --> 02:27.290
manner to the world of multithreading and see how this impact the the speed and throughput of the multithreaded

02:27.290 --> 02:28.190
process.
