So let's talk about PowerShell
Multitasking and Multithreading. Firstly,
if we talk about multitasking, this is
something where the CPU of the computer or
the server can execute multiple tasks at
the same time. The CPU itself switches
between the tasks to allow collaboration
between an application and a task. So, for
example, you can see this when you're
utilizing an application like Word,
something like Office or email, where
there's a local task and a server task or
a cloud task that's going on. The most
important thing is each process uses
separate memory, which is why it's classed
as multitasking. Multithreading, however,
uses multiple threads within the same CPU
for a task. The CPU can execute multiple
threads for a process at a single point in
time. Each process uses shared memory, and it's definitely faster than multitasking.