What Are Batch Processing System and Real Time Processing System and The Difference Between Them
What Are Batch Processing System and Real Time Processing System and The Difference Between Them
Unix fork() creates a process
o Creates a new address space
o Copies text, data, & stack into new address space
o Provides child with access to open files
Unix exec() allows a child to run a new program
Unix wait() allows a parent to wait for a child to terminate
5 List all the ways a process can be terminated
Normal exit: in normal exit, process terminates because they have done their work successfully
Error exit : In error exit, the termination of a process is done because of an error caused by the process,
sometime due to the program bug
Fatal exit: In fatal exit, process terminates because it discovers a fatal error
Killed by other process: In this reason or condition, a process might also terminate due to that it
executes a system call that tells the operating system (OS) just to kill some other process
Example of Deadlock
Example of deadlock