Search Header Logo

parallel comp (FA3, M4-5)

Authored by primo y

English

University

Used 2+ times

parallel comp (FA3, M4-5)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

37 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Calling the semaphore's release() method blocks and waits until the semaphore is available.

False
True

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

The semaphore's release() method always decrements the counter's value.

False
True

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

The semaphore's release() method always increments the counter's value.

True
False

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

The semaphore's acquire() method decrements its value if the counter is positive.

True
False

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

The binary semaphore can only be acquired and released by the same thread.

False
True

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

The binary semaphore can have a positive or negative value.

False
True

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

The binary semaphore will have a value of 0, 1, 2, 3, etc.

False
True

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?