new
, delete
, malloc
, free
, etc.). Context Switch:
Mode Switch:
fork()
, spawn()
).fork()
duplicates the current process in Unix-based systems; spawn()
creates new processes at a higher level of abstraction.Occurs when the exit system call is invoked.
Resources such as memory and I/O devices are deallocated upon termination.
Causes of Termination:
Non-Preemptive Algorithms:
Preemptive Algorithms: