Midterm - Quiz 2

12 Questions | Attempts: 52
Share
SettingsSettings
Please wait...
  • 1/12 Questions

    For thread scynchronization outside the kernel, Windows provides ________ . Using it, threads synchronize according to several different mechanisms, including mutex locks, semaphores, events, and timers. The system protects shared data by requiring a thread to gain ownership of a mutex to access the data and to release ownership when it is finished.

Please wait...
About This Quiz

Midterm - Quiz 2 - Quiz

Quiz Preview

  • 2. 

    A spinlock is a type of mutex lock because the process loops while waiting for the lock to become available.

    • True

    • False

    Correct Answer
    A. True
  • 3. 

    What is the term for describing the situation where shared data may be manipulated concurrently and the outcome of the execution depends upon the order of access? ________

    Correct Answer
    RACE CONDITION
  • 4. 

    How many writers may concurrently open the database with the readers-writers problem? ________ (answer in numeric form)

    Correct Answer
    1
  • 5. 

    There are no guarantees Peterson's solution works correctly on modern computer architectures.

    • True

    • False

    Correct Answer
    A. True
  • 6. 

    A counting semaphore is functionally equivalent to a mutex lock because it provides a 0 or a 1 value to indicate mutual exclusion.

    • True

    • False

    Correct Answer
    A. False
  • 7. 

    A nonpreemptive kernel is essentially free from race conditions.

    • True

    • False

    Correct Answer
    A. True
  • 8. 

    What is the term used to describe the segment of code where shared data is accessed and possibly manipulated? ________

    Correct Answer
    CRITICAL SECTION
  • 9. 

    Linux uses spinlocks for both single and multiple processor systems.

    • True

    • False

    Correct Answer
    A. False
  • 10. 

    The only operations that can be invoked on a condition variable are ________ and ________. (answer in correct order of operation)

    Correct Answer
    WAIT()
    SIGNAL()
  • 11. 

    Many modern computer systems therefore provide special hardware instructions that provides the solution to synchronization problem. The ________ operates on a single variable while the ________ on three variables.

    Correct Answer
    TEST AND SET()
    COMPARE AND SWAP()
  • 12. 

    What are the two functions used when mutex locks? ________  and ________  (answer in according to the order of execution.)

    Correct Answer
    ACQUIRE
    RELEASE

Quiz Review Timeline (Updated): Mar 14, 2022 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 14, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Aug 21, 2019
    Quiz Created by
    Carlo B.
Back to Top Back to top
Advertisement