9. The Process Control Block (PCB) of a process is stored in: a) The process\'s
ID: 3745292 • Letter: 9
Question
9. The Process Control Block (PCB) of a process is stored in: a) The process's code segment b) The process's data segment c) The interrupt vector d) The kernel's space 10. Consider the following statements about signals i) A signal handler can be used to indicate the actions that will be taken when a specific signal is received. ii) A process can block all signals, if it wants to. ili) The default action for each received signal is to ignore the signal a) Only i. is true; ii. and iii. are false b) Only ii. and iii. are true; i. is false c) Only i. and iii. are true; ii. is false d) i., ii., and iii. are all true also saved." TRUE or FALSE? 12. "In symmetrical multiprocessing, all the CPUs will be executing the same code at all times. " TRUE or FALSE? 13. "In Unix, the command-line interpreter (shell) is part of the operating system (kernel)." TRUE or FALSE? 14. "Typically, interrupt service routines set the dual mode bit to one before returning." TRUE or FALSE? 15. "In Unix, when a process creates a child process through the forkO system call, the parent and the child will be able to update the same address space". TRUE or FALSE?Explanation / Answer
9. Each and every process in OS is stored in Process Control Block. Process Control Block is saved as per-process kernel stack. The kernel stack is stored in Kernel Space. Therefore, PCB is stored in Kernel Space. Option D is correct.
10. A signal handler would indicate the action will be taken when a specific signal is received is TRUE. For instance, consider a SIGTRAP signal which informs the component that there are bad instructions is being executed.
A process cannot block all the signals for an indefinite period of time, it can ignore them.
The default action for each received signal is to ignore the signal is false. There is a parameter Ign which would ignore the signal, but, we cannot change this for all the Signals. For instance, SIGKILL you cannot change it's default actions.
So, option A is correct.
11. Yes, it is TRUE, During Context Switch, when switching from one running process (p1) to another process (p2), the PSW of p1 is saved so that after completion of p2 it resumes back where p1 was stopped.
12. It is False. In Symmetric Multiprocessing, multiple parts of the programs are being executed by multiple processors which share a common OS and a memory. There are multiple processors and each working on different data and programs.
13. In Unix Architecture, a shell is there in the second outermost layer. It acts as an interface between Kernel and Application programs. It is not a part of Kernel but uses System calls to communicate with it. So, it is false.
14. Interrupt service routines set the dual mode bit to one before returning is True. For example, while booting which is in kernel mode and after finishing booting control transfer to user mode and a bit is changed. It is done to avoid I/O issues and other external issues.
15. Both child and parent processes will share the same address space.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.