Operating systems TRUE / FALSE questions for competitive exams
Operating Systems Quiz with Answers - 6
1. Two processes reading from the same virtual address will access the same contents.
(a)
TRUE (b) FALSE
Answer: FALSE.
Each process has its own address space. [source:
Wisconsin]
2. When designing a multithreaded application, you must use synchronization
primitives to make sure that the threads do not overwrite each other’s
registers.
(a)
TRUE (b) FALSE
Answer:
FALSE. The thread scheduler is responsible for making sure that each thread
has its own set of register values (stored in the TLB). A TLB is never shared
between threads. [source: UCB]
3. It is necessary for threads in a process to have separate
stacks.
(a) TRUE (b)
FALSE
Answer: TRUE.
Yes, so that they can have separate execution state, and run independently CPU abstraction is a process. [source:
IITB]
4. A process is identical to a thread.
(a)
TRUE (b) FALSE
Answer: FALSE.
We can have multiple threads in a single
process. [source: Wisconsin]
5. One can have concurrent execution of threads/processes
without having parallelism.
(a) TRUE (b)
FALSE
Answer: TRUE. One can have concurrent execution
of threads/processes by time-sharing the CPU between threads on a single core. [source: IITB]
***********
No comments:
Post a Comment