Top 50+ Solved Parallel Program Challenges MCQ Questions Answer

From 1 to 15 of 25

Q. Producer consumer problem can be solved using _____________

a. semaphores

b. event counters

c. monitors

d. All of the above

  • c. monitors

Q. The segment of code in which the process may change common variables, update tables, write into files is known as :

a. program

b. critical section

c. non – critical section

d. synchronizing

  • b. critical section

Q. All deadlocks involve conflicting needs for __________

a. Resources

b. Users

c. Computers

d. Programs

  • a. Resources

Q. To avoid deadlock ____________

a. there must be a fixed number of resources to allocate

b. resource allocation must be done only once

c. all deadlocked processes must be aborted

d. inversion technique can be used

  • a. there must be a fixed number of resources to allocate

Q. Spinlocks are intended to provide __________ only.

a. Mutual Exclusion

b. Bounded Waiting

c. Aging

d. Progress

  • b. Bounded Waiting

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

  • 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

  • b. that cannot drop below zero

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

  • a. where shared resources are accessed

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

  • b. deadlock can never occur

Q. ____________ is the ability of multiple processes to co-ordinate their activitiesby exchange of information.

a. Deadlock

b. Synchronization

c. Mutual Exclusion

d. Cache

  • b. Synchronization
Subscribe Now

Get All Updates & News