Top 150+ Solved Muli-core Architectures and Programming MCQ Questions Answer
Q. Spinlocks are intended to provide __________ only.
a. Mutual Exclusion
b. Bounded Waiting
c. Aging
d. Progress
Q. To ensure difficulties do not arise in the readers – writer’s problem, _______are given exclusive access to the shared object.
a. readers
b. writers
c. readers and writers
d. none of the above
Q. If a process is executing in its critical section, then no other processes canbe executing in their critical section. This condition is called ___________.
a. Out-of-order execution
b. Hardware prefetching
c. Software prefetching
d. mutual exclusion
Q. A semaphore is a shared integer variable ____________.
a. lightweight process
b. that cannot drop below zero
c. program counter
d. stack space
Q. A critical section is a program segment ______________.
a. where shared resources are accessed
b. single thread of execution
c. improves concurrency in multi-core system
d. Lower resource consumption
Q. A system has 3 processes sharing 4 resources. If each process needs amaximum of 2 units, then _____________
a. Better system utilization
b. deadlock can never occur
c. Responsiveness
d. Faster execution
Q. _____________ refers to the ability of multiple process (or threads) to share code, resources or data in such a way that only one process has access to shared object at a time.
a. Readers_writer locks
b. Barriers
c. Semaphores
d. Mutual Exclusion
Q. ____________ is the ability of multiple processes to co-ordinate their activitiesby exchange of information.
a. Deadlock
b. Synchronization
c. Mutual Exclusion
d. Cache
Q. Paths that have an unbounded number of allowed nonminimal hops frompacket sources, this situation is referred to as __________.
a. Livelock
b. Deadlock
c. Synchronization
d. Mutual Exclusion
Q. Let S and Q be two semaphores initialized to 1, where P0 and P1 processes the following statements wait(S);wait(Q); ---; signal(S);signal(Q) and wait(Q); wait(S);---;signal(Q);signal(S); respectively. The above situation depicts a _________.
a. Livelock
b. Critical Section
c. Deadlock
d. Mutual Exclusion
Q. Which of the following conditions must be satisfied to solve the criticalsection problem?
a. Mutual Exclusion
b. Progress
c. Bounded Waiting
d. All of the mentioned
Q. Mutual exclusion implies that ____________.
a. if a process is executing in its critical section, then no other process must be executing in their critical sections
b. if a process is executing in its critical section, then other processes must be executing in their critical sections
c. if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes execution
d. none of the mentioned
Q. Bounded waiting implies that there exists a bound on the number of times a process is allowed to enter its critical section ____________.
a. after a process has made a request to enter its critical section and before the request is granted
b. when another process is in its critical section
c. before a process has made a request to enter its critical section
d. none of the mentioned
Q. What are the two atomic operations permissible on semaphores?
a. Wait
b. Stop
c. Hold
d. none of the mentioned