Question: Does anyone know where the questions below from? I dont need answers, just finding more resources to practice, thanks. (These questions are about operating system

Does anyone know where the questions below from? I dont need answers, just finding more resources to practice, thanks.

(These questions are about operating system )

/////

Which of the following is a software-based solution to the critical-section problem?

  1. Petersons solution
  2. test_and_set
  3. compare_and_swap
  4. all of the above

Which of the following regarding mutex lock is NOT true?

  1. mutex lock is a hardware solution to critical-section problem
  2. mutex lock is a higher-level software solution to critical-section problem
  3. mutex lock suffers from busy waiting
  4. the general rule of thumb is to use a mutex lock if the lock will be held for a duration less than two context switches

Which of the following critical-section problems requirements ensures programs will cooperatively determine what process will next enter its critical section?

  1. mutual exclusion
  2. progress
  3. bounded waiting
  4. none of the above

Which of the following is true for the solutions to critical-section problems?

  1. No deadlock implies progress, and progress implies bounded waiting
  2. Bounded waiting implies progress, and progress implies no deadlock
  3. Progress implies no deadlock, and no deadlock implies bounded waiting
  4. Bounded waiting implies no deadlock, and no deadlock implies progress

Which of the following actions should be performed among cooperating processes?

  1. process synchronization
  2. coordination
  3. both of the above
  4. none of the above

Assume count is a variable name, which of the following operations is atomic?

  1. count++
  2. count
  3. both of the above
  4. none of the above

Which of the following is the definition of processor?

  1. the hardware that executes instructions
  2. a physical chip that contains one or more CPUs
  3. the basic computation unit of the CPU
  4. including multiple computing cores on the same CPU

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!