Quiz1

Quiz1

University

5 Qs

quiz-placeholder

Similar activities

Ch06-Synchronization Tools_part2

Ch06-Synchronization Tools_part2

University

9 Qs

Java Control Flow statements

Java Control Flow statements

University

10 Qs

DBMS - Deadlocks

DBMS - Deadlocks

University

10 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

UAS BDT

UAS BDT

University

10 Qs

Lesson 3: Boolean Logic and Logic Gates

Lesson 3: Boolean Logic and Logic Gates

University

10 Qs

C - Pointers

C - Pointers

University

10 Qs

Weekly Contest #3 - TechXNinjas

Weekly Contest #3 - TechXNinjas

University

10 Qs

Quiz1

Quiz1

Assessment

Quiz

Computers

University

Medium

Created by

Jonathan Perry

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

20 sec • 2 pts

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

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