Please enable JavaScript.
Coggle requires JavaScript to display documents.
Process Vs Thread (Multi-everything (Contain Multiple thread :check:,…
Process Vs Thread
-
Multiple Thread, Single Process, Single Machine
-
-
:warning: May have multiple threads in a process but we may not have events truly occuring in parallel.
:check: If the machine has multiple processors, then true parallelism can occur. Otherwise parallelism is simulated.
-
Application
Application = multiple thread, multiple process and multiple machine works together in a single problem
Application is now called as mutli-thread client, multi-thread server that relies on cluster of machine to request a service
-
Single Thread, Single Process, Single Machine
-
-
-
Definition
Process
:star: can be OS- dependent, context switch is heavy
-
:star: interacts with OS calls and shared state with other processes in the same host or via network interfaces to processes in potentially different hosts
-
-
Thread
-
-
:star:interacts with other threads of the program using primitives of threading library and a possible programming language
-
-
-
-
Multi Thread, Multiple Process, Single Machine
-
-
-
Single Thread, Multiple Process, Single Machine
-
-
-