Chapter 6 Flashcards
Which scheduler invoke processes faster. Short-term scheduler Or long-term scheduler
Short-term scheduler
The task of medium scheduler called what
Swap out
What is context switch
CPU switch to another process, the system must save the state of the current process and load the saved state of new process
What is PC
Program counter
In the execution of parent child processes, who terminates first
Child process
Does parent child processes share resources
There can be 3 cases:
- Parent child share all resources
- Child share a subset of parent resources
- Parent and child share no resources
Does unix clone a parent process to make its child
Yes
What are 4 system calls in unix
- Fork (for process creation, which consists of a copy of the address space of parent)
- Exit (for process termination)
- Wait
- Exec (process overwrite itself with another executable)
What is daemon in unix
All system processes run in background to provide services to users called daemon.
What are the differences between child and parent processes
- Parent ID different
- Child ID different
- Child has its own copy of parent’s file descriptor