Midterm - Quiz 2

12 Questions | Attempts: 52
Share
Please wait...
Question 1 / 12
0 %
0/100
Score 0/100
1. 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.
Submit
Please wait...
About This Quiz
Midterm - Quiz 2 - Quiz

Tell us your name to personalize your report, certificate & get on the leaderboard!
2. A spinlock is a type of mutex lock because the process loops while waiting for the lock to become available.
Submit
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? _____
Submit
4. How many writers may concurrently open the database with the readers-writers problem? _____ (answer in numeric form)
Submit
5. There are no guarantees Peterson's solution works correctly on modern computer architectures.
Submit
6. A counting semaphore is functionally equivalent to a mutex lock because it provides a 0 or a 1 value to indicate mutual exclusion.
Submit
7. A nonpreemptive kernel is essentially free from race conditions.
Submit
8. What is the term used to describe the segment of code where shared data is accessed and possibly manipulated? _____
Submit
9. Linux uses spinlocks for both single and multiple processor systems.
Submit
10. The only operations that can be invoked on a condition variable are _____ and _____. (answer in correct order of operation)
Submit
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.
Submit
12. What are the two functions used when mutex locks? _____  and _____  (answer in according to the order of execution.)
Submit
View My Results

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.
Cancel
  • All
    All (12)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
For thread scynchronization outside the kernel, Windows...
A spinlock is a type of mutex lock because the process loops while...
What is the term for describing the situation where shared data may be...
How many writers may concurrently open the database with the...
There are no guarantees Peterson's solution works correctly on...
A counting semaphore is functionally equivalent to a mutex lock...
A nonpreemptive kernel is essentially free from race conditions.
What is the term used to describe the segment of code where shared...
Linux uses spinlocks for both single and multiple processor systems.
The only operations that can be invoked on a condition variable are...
Many modern computer systems therefore provide special hardware...
What are the two functions used when mutex...
Alert!

Advertisement