Quiz1

Quiz1

University

5 Qs

quiz-placeholder

Similar activities

C - Pointers

C - Pointers

University

10 Qs

Weekly Contest #3 - TechXNinjas

Weekly Contest #3 - TechXNinjas

University

10 Qs

Java Arrays

Java Arrays

University

10 Qs

C++ Array

C++ Array

University

10 Qs

Physical Security

Physical Security

1st Grade - University

10 Qs

OOPS MOCK QUIZ

OOPS MOCK QUIZ

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

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

Discover more resources for Computers