Quiz1

Quiz1

University

5 Qs

quiz-placeholder

Similar activities

Living in the IT Era

Living in the IT Era

University

10 Qs

SDF_B10B12Tutorial_December26

SDF_B10B12Tutorial_December26

University

10 Qs

OCS752_CP_MODEL 1_PART B (16.10.2020)

OCS752_CP_MODEL 1_PART B (16.10.2020)

University

10 Qs

Repaso Estructura de datos U1

Repaso Estructura de datos U1

1st Grade - University

10 Qs

NETIQUETTE AND DIGITAL FOOTPRINT

NETIQUETTE AND DIGITAL FOOTPRINT

University

10 Qs

Roteamento BGP

Roteamento BGP

University

10 Qs

ReflectiveQuizDDT1A_07102020

ReflectiveQuizDDT1A_07102020

University

10 Qs

PHP Tours Meetup #22 (Super Apéro)

PHP Tours Meetup #22 (Super Apéro)

University - Professional Development

10 Qs

Quiz1

Quiz1

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Jonathan Perry

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?