1
00:00:00,310 --> 00:00:01,680
So let's talk about PowerShell

2
00:00:01,680 --> 00:00:07,860
Multitasking and Multithreading. Firstly,

3
00:00:07,860 --> 00:00:11,120
if we talk about multitasking, this is

4
00:00:11,120 --> 00:00:14,170
something where the CPU of the computer or

5
00:00:14,170 --> 00:00:17,080
the server can execute multiple tasks at

6
00:00:17,080 --> 00:00:20,710
the same time. The CPU itself switches

7
00:00:20,710 --> 00:00:23,290
between the tasks to allow collaboration

8
00:00:23,290 --> 00:00:26,300
between an application and a task. So, for

9
00:00:26,300 --> 00:00:27,650
example, you can see this when you're

10
00:00:27,650 --> 00:00:29,710
utilizing an application like Word,

11
00:00:29,710 --> 00:00:32,260
something like Office or email, where

12
00:00:32,260 --> 00:00:35,370
there's a local task and a server task or

13
00:00:35,370 --> 00:00:37,920
a cloud task that's going on. The most

14
00:00:37,920 --> 00:00:40,280
important thing is each process uses

15
00:00:40,280 --> 00:00:42,840
separate memory, which is why it's classed

16
00:00:42,840 --> 00:00:46,940
as multitasking. Multithreading, however,

17
00:00:46,940 --> 00:00:50,570
uses multiple threads within the same CPU

18
00:00:50,570 --> 00:00:54,050
for a task. The CPU can execute multiple

19
00:00:54,050 --> 00:00:57,640
threads for a process at a single point in

20
00:00:57,640 --> 00:01:05,000
time. Each process uses shared memory, and it's definitely faster than multitasking.

