MCQ Bank
In the form of failure, TlsAlloc function returns__________
- A) DWORD
- B) -1
- C) BOOL
- D) 0
In a multi-threaded system, multiple threads may exist within a ________.
- A) Process
- B) Code
- C) Thread
- D) Program
The volatile qualifier does not guarantee that the modifications will be visible to ___________in a desired order.
- A) Hard disk
- B) Processors
- C) User
- D) RAM
Mutexes, Semaphores, Events, and Critical Section are the four synchronization objects provided by _____________.
- A) Windows
- B) Software
- C) Processor
- D) RAM
The result of concurrent processing and normal processing_______.
- A) Is always same
- B) Yield same output
- C) May differ in some cases
- D) Is always different
What function is used to set control limits on the processes in a job object?
- A) AssignProcessToJobObject()
- B) CreateProcess()
- C) CloseHandle()
- D) SetInformationJobObject()
Interlocked functions are _____________to use.
- A) simpler, faster, but hard
- B) not simpler, but faster and easy
- C) simpler, easy, but slow
- D) simpler, faster, and easy
Fiber management occurs at ________ level.
- A) User space Level
- B) Kernel level
- C) Hardware Level
- D) BIOS Level
A ______ value will cause a thread to move from the running state to the ready state.
- A) 1
- B) INFINITE
- C) 0
- D) Negative
A critical section problem is one in which _________is used by_________ processes or threads.
- A) Many resources, Many
- B) Resource, 1
- C) Resource, Many
- D) Many resources, 1
LIBCMT is a ______________
- A) Windows Library for threads
- B) Java Library for threads
- C) BIOS Library for thread
- D) C Library for Threads
Windows treats threads as
- A) Objects
- B) Processes
- C) Classes
- D) Threads
How can you handle waiting for more than 64 objects when using WaitForMultipleObjects()?
- A) Create multiple arrays of 64 objects and make multiple calls to WaitForMultipleObjects().
- B) Use a different waiting function.
- C) You cannot wait for more than 64 objects.
- D) Increase the limit to 128 objects.
The process Execution times uses the API GetCommandLine() to get the command line as a single _______________.
- A) String
- B) Variable
- C) Float
- D) Bool
Make a variable _________ if you know it includes thread-specific information.
- A) global
- B) static
- C) local
- D) random
Once all the threads are created, they can be run using________.
- A) ResumeThread
- B) RunThread
- C) StartThread
- D) ReadyThread
In the work crew model, how do the workers handle tasks?
- A) Workers report results to the boss.
- B) They perform individual tasks sequentially.
- C) The boss assigns work to each worker.
- D) They divide the work themselves without boss direction.
In job management, the shell uses _______ specific file keeping track of process ID and other related information.
- A) Process
- B) Shell
- C) System
- D) User
CRITICAL_SECTION Objects do not have_______________.
- A) handles
- B) process
- C) loops
- D) variables
A thread can be enabled fiber operation by ________.
- A) GetCurrentFiber()
- B) CreateFiber()
- C) ConvertThreadToFiberEx()
- D) SwitchToFiber()