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
Array in C

Quiz
•
University
10 questions
C Program Array and strings

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

Quiz
•
University
10 questions
C - Pointers

Quiz
•
University
10 questions
Weekly Contest #3 - TechXNinjas

Quiz
•
University
10 questions
Basics Of C Programming

Quiz
•
University
9 questions
c language quiz

Quiz
•
University
10 questions
Komposter

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade