System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2771: A thread after converting to fiber will get a pointer similar to ________.
- A: thread data
- B: process handle
- C: memory address
- D: file descriptor
View Answer
A
Q2772: To use fibers, a thread is first converted into a ________.
- A: fiber
- B: process
- C: handle
- D: thread
View Answer
A
Q2773: Which function converts a thread to a fiber?
- A: ConvertThreadToFiber()
- B: CreateFiber()
- C: SwitchToFiber()
- D: DeleteFiber()
View Answer
A
Q2774: In fiber usage, switching execution from one fiber to another is done by ________.
- A: SwitchToFiber()
- B: CreateFiber()
- C: ConvertThreadToFiber()
- D: DeleteFiber()
View Answer
A
Q2775: In the described scheme, the primary fiber creates ________.
- A: other fibers
- B: threads
- C: processes
- D: handles
View Answer
A
Q2776: The primary fiber starts execution from the point where it was ________ before.
- A: switched
- B: created
- C: deleted
- D: paused
View Answer
A
Q2777: Fiber 0 and Fiber 2 switch execution between each other, demonstrating ________ scheduling.
- A: Peer to Peer
- B: Master-Slave
- C: Round Robin
- D: Priority
View Answer
A
Q2778: In Master-Slave scheduling, which fiber decides which fiber to run?
- A: One fiber (slave)
- B: The primary fiber (master)
- C: The OS scheduler
- D: The CPU scheduler
View Answer
B
Q2779: Peer to Peer scheduling allows fibers to decide which fiber runs ________.
- A: next
- B: last
- C: never
- D: first
View Answer
A
Q2780: Each fiber transfers execution back to the ________ fiber in Master-Slave scheduling.
- A: primary
- B: secondary
- C: tertiary
- D: fourth
View Answer
A