All you need to know about processes and threads
When sharing memory and cpu time a lot of problems may arise when accessing the same resource. We would need to find an efficient way to manage resources. The solution to managing those resources is where threads and processes come in.
What is a process ?
A Process is simply a logical container that holds all the information about each of the applications running on a system including its lifecycle. A process can hold the name of application, process id (pid), priority, vm address, state, program counter and more.