Top 80+ Solved Multi-core processors MCQ Questions Answer
Q. Spinlocks are intended to provide only.
a. . mutual exclusion
b. . bounded waiting
c. . aging
d. . progress
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. How many times will process P0 print '0'?
a. . at least twice
b. . one
c. . three
d. . none of the above
Q. A system has 3 processes sharing 4 resources. If each process needs a maximum of 2 units, then
a. . better system utilization
b. . deadlock can never occur
c. . responsiveness
d. . faster execution
Q. 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 activities by exchange of information.
a. . deadlock
b. . synchronization
c. . mutual exclusion
d. . cache
Q. Paths that have an unbounded number of allowed nonminimal hops from packet 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 critical section problem?
a. . mutual exclusion
b. . progress
c. . bounded waiting
d. . all of the mentioned
Q. 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 Spinlocks?
a. cpu cycles wasting locks over critical sections of programs
b. locks that avoid time wastage in context switches
c. locks that work better on multiprocessor systems
d. all of the mentioned