What is s the primary difference between process and thread?
A process is a program under execution i.e an active program.A thread is a lightweight process that can be managed independently by a scheduler.
Process is basically the running program which are going to ready to scheduled state and it will not share data between other process and also difficult to kill.
Thread is basically the small independent light weight program which is running inside the process.
Process is an instance of program which is being executed and thread is segment of process which is managed by the scheduler independently