System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 128
Q2741:
A fiber is a unit of execution scheduled by the ________.
A. operating system
B. application
C. hardware
D. processor
Correct Answer:
B
Chapter: 128
Q2742:
Fibers have independent ________, but run in the context of the thread on which they are scheduled.
A. stacks
B. mutexes
C. locks
D. processes
Correct Answer:
A
Chapter: 128
Q2743:
Fiber management occurs entirely in ________.
A. kernel
B. user space
C. hardware
D. BIOS
Correct Answer:
B
Chapter: 128
Q2744:
Fibers can be thought of as ________ threads.
A. heavy
B. lightweight
C. preemptive
D. non-concurrent
Correct Answer:
B
Chapter: 128
Q2745:
A fiber can execute on ________ thread(s) at a time.
A. multiple
B. any
C. only one
D. no
Correct Answer:
C
Chapter: 128
Q2746:
Fibers that run on different threads should avoid accessing thread-specific data from ________.
A. TLS
B. CPU registers
C. stack
D. cache
Correct Answer:
A
Chapter: 128
Q2747:
Fibers make ________ easy.
A. scheduling
B. portability
C. synchronization
D. debugging
Correct Answer:
B
Chapter: 128
Q2748:
Fibers need not wait or block on ________, unlike threads.
A. CPU time
B. file locks, mutexes, and pipes
C. memory allocation
D. I/O operations
Correct Answer:
B
Chapter: 128
Q2749:
Fibers can switch to another fiber when ________ are not available.
A. resources
B. CPU cycles
C. memory
D. threads
Correct Answer:
A
Chapter: 128
Q2750:
Fibers run as part of threads but are not ________ to any specific thread.
A. related
B. bound
C. dependent
D. linked
Correct Answer:
B
Chapter: 128
Q2751:
Fibers are ________ scheduled, unlike threads.
A. preemptively
B. cooperatively
C. randomly
D. simultaneously
Correct Answer:
B
Chapter: 128
Q2752:
Windows OS is ________ of fibers.
A. fully aware
B. partially aware
C. unaware
D. responsible for
Correct Answer:
C
Chapter: 128
Q2753:
Fibers are controlled and managed by ________.
A. the kernel
B. the OS scheduler
C. fiber DLL
D. hardware
Correct Answer:
C
Chapter: 128
Q2754:
Fibers can be used as ________ to switch between related tasks.
A. co-routines
B. processes
C. threads
D. interrupts
Correct Answer:
A
Chapter: 128
Q2755:
In threading, applications have ________ control over which thread executes next.
A. full
B. no
C. partial
D. exclusive
Correct Answer:
B
Chapter: 128
Q2756:
Major software platforms claim that fibers offer performance ________.
A. disadvantages
B. penalties
C. advantages
D. complexities
Correct Answer:
C
Chapter: 129
Q2757:
Which API function must a thread call to enable fiber operation?
A. ConvertThreadToFiber()
B. CreateFiber()
C. SwitchToFiber()
D. DeleteFiber()
Correct Answer:
A
Chapter: 129
Q2758:
ConvertThreadToFiberEx() is an alternative to ________.
A. ConvertThreadToFiber()
B. GetCurrentFiber()
C. GetFiberData()
D. SwitchToFiber()
Correct Answer:
A
Chapter: 129
Q2759:
After calling ConvertThreadToFiber(), the thread contains a ________.
A. fiber
B. process
C. handle
D. thread data
Correct Answer:
A
Chapter: 129
Q2760:
The pointer returned by ConvertThreadToFiber() can be used like ________.
A. thread data
B. hardware register
C. file handle
D. process ID
Correct Answer:
A