Search Header Logo

SO Lab 07 Recap

Authored by Anonymous Anonymous

Computers

University

Used 1+ times

SO Lab 07 Recap
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who said the following words: "Totul in viata se plateste"

Nicolae Tapus

Florin Salam

Razvan Rughinis

Donald Trump

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is better? To be born good, or to ...

overcome your evil nature through great effort?

be born bad?

not be born at all?

become good as you live?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A piece of code that must be executed only by one thread at a time, to ensure correctness, is called

a critical section

a serial code

a critical code

a serial section

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following are synchronisation methods?

mutexes

semaphores

timers

barriers

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

When does copy-on-write happen?

On context switch

When a child process performs a write

On fork()

On exec()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ten threads perform "a++", with a=0, without synchronization. What is the value of a after the operations?

10

3

7

hard to say

7.

OPEN ENDED QUESTION

3 mins • 5 pts

How can we ensure that, for the last question's situation, the result is correct? (describe what and how you use, not just "by synchronising the threads")

Evaluate responses using AI:

OFF

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?