Advanced Database Management System - Tutorials and Notes: True or False interview questions in operating systems

Search Engine

Please visit, subscribe and share 10 Minutes Lectures in Computer Science

Thursday, 9 April 2020

True or False interview questions in operating systems

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.




OS Interview questions with answers

solved Interview questions in operating systems

GATE questions in operating systems

TRUE/FALSE Interview questions with answers in Operating Systems

Virtual address space interview questions

interview questions with answers in Memory access in operating sytems

No comments:

Post a comment

Featured Content

Multiple choice questions in Natural Language Processing Home

MCQ in Natural Language Processing, Quiz questions with answers in NLP, Top interview questions in NLP with answers Multiple Choice Que...

All time most popular contents