Quiz1

Quiz1

University

5 Qs

quiz-placeholder

Similar activities

Unguided transmission media

Unguided transmission media

University

10 Qs

Dr. S. Uma's Object Oriented Programming Quiz Event 1

Dr. S. Uma's Object Oriented Programming Quiz Event 1

University

10 Qs

CodeMonkey for B.Ed IT

CodeMonkey for B.Ed IT

University

10 Qs

Quiz 1

Quiz 1

University

10 Qs

CA Quiz 1

CA Quiz 1

University

10 Qs

JRB2 Quiz 4

JRB2 Quiz 4

University

10 Qs

MCQ 1

MCQ 1

University

10 Qs

Teste 1 - Inteligência Artificial

Teste 1 - Inteligência Artificial

University

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?