If a lock uses a boolean for implementation, what does a semaphore use?
Quiz1

Quiz
•
Computers
•
University
•
Medium
Jonathan Perry
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
20 sec • 2 pts
2.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Multiple threads could return from a sem_wait() without having had any sem_post() called
True
False
3.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
When referring to semaphores, V() is equivalent to sem_wait()
True
False
4.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What should the initial value of a semaphore be to implement waiting on a thread (i.e. join)?
-1
0
1
2
5.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Any semaphore initialized to 1 could be directly replaced by a lock
True
False
Similar Resources on Quizizz
10 questions
Expression in C Programming

Quiz
•
University
10 questions
Weekly Contest #3 - TechXNinjas

Quiz
•
University
10 questions
Basics Of C Programming

Quiz
•
University
10 questions
C Programming Quiz-1

Quiz
•
University
10 questions
C-21 CS-405 OS Quiz-2

Quiz
•
University
10 questions
Java Static

Quiz
•
University
10 questions
Lesson 3: Boolean Logic and Logic Gates

Quiz
•
University
10 questions
C - Pointers

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade