Fork vs Thread
Before we understand the difference between a fork and thread we need to understand what is a process and elements of process.
A process is a program in execution. When a operating system executes a program it is called a process. So we may have a…