Quiz 2 Flashcards
Operating systems support multi-programming by keeping track of processes and their relevant information using _______
Process Control Block
What is saved on a context switch between processes
- program counter
- general purpose registers
- process state
In Unix, which system call creates the new process
fork
____ is dynamically allocated memory to a process during its run time.
heap section
T/F: two processes can be executing the same program
true
T/F: The transition of a process P from running to terminated can be caused by P itself
True
Indicate which PCB fields may change during a process’s lifetime.
- children
- parent
- process_state
- cpu_state
Indicate which PCB fields may change while a process is in the running state
- children
- open_files
a process at level in i in the process creation hierarchy can have ___ link(s) to processes at the next higher level i-1
1
T/F: When a new process P is created, the scheduler could select P to run next
True
T/F: When a child exits, a SIGCHILD signal is sent to the child process.
False
T/F: A child process may call waitpid() on its siblings without error
False
When an interrupt is received while CPU is executing a program, the CPU
breaks the normal sequence of execution of instruction
An interrupt transfers the control to an ___ to handle the interrupt before the control is transferred back again to the main program.
interrupt service routine
the __ system call blocks the parent process till the child process is terminated/completed
wait()