Quiz1

Quiz1

University

5 Qs

quiz-placeholder

Similar activities

Java Static

Java Static

University

10 Qs

Expression in C Programming

Expression in C Programming

University

10 Qs

rehu

rehu

University

6 Qs

OS Day 4

OS Day 4

University

10 Qs

Parallel programming approach

Parallel programming approach

University

8 Qs

Parallel and Distributed Computing

Parallel and Distributed Computing

University

10 Qs

IT Quiz Round 3

IT Quiz Round 3

University

10 Qs

UAS BDT

UAS BDT

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