Operating System MCQ - Multithreading
Multithreading MCQs : This section focuses on "MultiThreading" in Operating System. These Multiple Choice Questions (MCQ) should be practiced to improve the Operating System skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. What is true about thread?
A. Thread switching does not need to interact with operating system.
B. All threads can share same set of open files, child processes.
C. Multiple threaded processes use fewer resources.
D. All of the above
View Answer
Ans : D
Explanation: All statement are correct.
2. A thread is also called ?
A. heavyweight process
B. lightweight process
C. data segment process
D. overhead process
View Answer
Ans : B
Explanation: A thread is also called a lightweight process.
3. In how many ways Threads are implemented?
A. Two
B. Three
C. Four
D. Five
View Answer
Ans : A
Explanation: Threads are implemented in following two ways : User Level Threads and Kernel Level Threads.
4. Which of the following is not an advantage about thread?
A. Threads minimize the context switching time.
B. Use of threads provides concurrency within a process.
C. kernel is single threaded
D. All of the above
View Answer
Ans : C
Explanation: The major disadvantage if that if the kernel is single threaded, a system call of one thread will block the whole process and CPU may be idle during the blocking period.
5. Which of the following is true about kernal level thread?
A. Implementation is by a thread library at the user level.
B. Kernel-level threads are slower to create and manage.
C. Multi-threaded applications cannot take advantage of multiprocessing.
D. Both B and C
View Answer
Ans : B
Explanation: Kernel-level threads are slower to create and manage is true about kernal level thread.
6. Which of the following is true about user level thread?
A. User level thread is specific to the operating system.
B. User-level routines themselves can be multithreaded.
C. User-level threads are faster to create and manage.
D. All of the above
View Answer
Ans : C
Explanation: User-level threads are faster to create and manage is true about user level thread.
7. Multithreading models are _________ types?
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : B
Explanation: Multithreading models are three types : Many to many relationship, Many to one relationship, One to one relationship.
8. The kernel is _______ of user threads.
A. a part of
B. the creator of
C. unaware of
D. aware of
View Answer
Ans : C
Explanation: The kernel is unaware of user threads.
9. Multithreading on a multi : CPU machine ___________
A. decreases concurrency
B. increases concurrency
C. doesn't affect the concurrency
D. can increase or decrease the concurrency
View Answer
Ans : B
Explanation: Multithreading on a multi : CPU machine increases concurrency.
10. The jacketing technique is used to ___________
A. convert a blocking system call into non blocking system call
B. create a new thread
C. communicate between threads
D. terminate a thread
View Answer
Ans : A
Explanation: The jacketing technique is used to convert a blocking system call into non blocking system call.
Discussion