πŸ“Š Multi-core Processors
Q. Producer consumer problem can be solved using
  • (A) . semaphores
  • (B) . event counters
  • (C) . monitors
  • (D) . all of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) . monitors
πŸ“Š Multi-core Processors
Q. A situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which access takes place is called:
  • (A) . data consistency
  • (B) . race condition
  • (C) . aging
  • (D) . starvation
πŸ’¬ Discuss
βœ… Correct Answer: (B) . race condition
πŸ“Š Multi-core Processors
Q. Which one of the following statements describes the properties achieved?
  • (A) . mutual exclusion but not progress
  • (B) . progress but not mutual exclusion
  • (C) . neither mutual exclusion nor progress
  • (D) . both mutual exclusion and progress
πŸ’¬ Discuss
βœ… Correct Answer: (A) . mutual exclusion but not progress
πŸ“Š Multi-core Processors
Q. All deadlocks involve conflicting needs for
  • (A) . resources
  • (B) . users
  • (C) . computers
  • (D) . programs
πŸ’¬ Discuss
βœ… Correct Answer: (A) . resources
πŸ“Š Multi-core Processors
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) . there must be a fixed number of resources to allocate
πŸ“Š Multi-core Processors
Q. Spinlocks are intended to provide only.
  • (A) . mutual exclusion
  • (B) . bounded waiting
  • (C) . aging
  • (D) . progress
πŸ’¬ Discuss
βœ… Correct Answer: (B) . bounded waiting
πŸ“Š Multi-core Processors
Q. A semaphore is a shared integer variable .
  • (A) . lightweight process
  • (B) . that cannot drop below zero
  • (C) . program counter
  • (D) . stack space
πŸ’¬ Discuss
βœ… Correct Answer: (B) . that cannot drop below zero
πŸ“Š Multi-core Processors
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) . lower resource consumption
πŸ“Š Multi-core Processors
Q. A counting semaphore was initialized to 10. Then 6 P (wait) operations and 4V (signal) operations were completed on this semaphore. The resulting value of the semaphore is
  • (A) . 4
  • (B) . 6
  • (C) . 9
  • (D) . 8
πŸ’¬ Discuss
βœ… Correct Answer: (D) . 8

Jump to