Operating systems TRUE / FALSE questions for competitive exams with answers justified, OS true/false interview questions
Operating Systems TRUE/FALSE questions with Answers – 10
1. An advantage of implementing threads in user space is that
they don't incur the overhead of having the OS schedule their execution.
(a) TRUE (b)
FALSE
Answer: TRUE.
--
The biggest advantage is that context switching between threads is faster
because it does not require a trap into the kernel.
-- User level threads don't require support from kernel.
--
Switching between threads and synchronization between threads can all be done
without intervention of the kernel
|
2. Deadlock can never occur if no process is allowed to hold a resource while requesting another resource.
(a) TRUE (b)
FALSE
Answer: TRUE.
A
deadlock occurs when a process or thread enters a waiting state because a
requested system resource is held by another waiting process, which in turn
is waiting for another resource held by another waiting process. [Wikipedia]
|
3. Two processes reading from the same virtual address will
access the same contents.
(a)
TRUE (b) FALSE
Answer: FALSE.
-- Processes have different address spaces, so different contents.
--
Different processes will have different mappings from virtual to physical
addresses. So, two programs can freely use the same virtual address. By
allocating distinct regions of physical memory to two processes, they are prevented
from reading/writing each others data.
|
4. With dynamic relocation, hardware dynamically translates an
address on every memory access.
(a) TRUE (b)
FALSE
Answer: TRUE.
Define dynamic relocation in OS-- Relocation adjusts a program to run in a different area of memory. Dynamic relocation refers to address transformations being done during execution of a program.
--
In dynamic relocation, mapping from the virtual address space to the physical
address space is performed at run-time. This runtime mapping from virtual
address to physical address is performed by a hardware device known as memory
management unit.
|
5. A system that provides segmentation without paging can
fragment the physical address space, forcing the operating system to waste
physical memory.
(a) TRUE (b)
FALSE
Answer: TRUE.
The
physical chunks of memory are the same size as the virtual chunks of memory.
Consequently, the physical address space can become fragmented as the OS
attempts to fit segments into the physical address space.
|
**********************
No comments:
Post a Comment