Quiz1

Quiz1

University

5 Qs

quiz-placeholder

Similar activities

PSeInt y Lógica Algorítmica

PSeInt y Lógica Algorítmica

University

10 Qs

Topic 4 Array

Topic 4 Array

University

10 Qs

Temel Java Bilgisi Ölçme Testi

Temel Java Bilgisi Ölçme Testi

University

10 Qs

C++ vs Python: A Quiz Introduction

C++ vs Python: A Quiz Introduction

11th Grade - University

10 Qs

Динамические библиотеки

Динамические библиотеки

University

10 Qs

java quiz on Encapsulation and Abstraction

java quiz on Encapsulation and Abstraction

University

10 Qs

C++ Chapter 6

C++ Chapter 6

University

10 Qs

T_4.2 Identifier, Data Types, Operators & Expressions

T_4.2 Identifier, Data Types, Operators & Expressions

12th Grade - 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