Concurrency_Quiz1

Concurrency_Quiz1

12 Qs

quiz-placeholder

Similar activities

RLA Training

RLA Training

12th Grade - University

10 Qs

Major Hazards on site

Major Hazards on site

Professional Development

10 Qs

8D=PACE-Induction-Session-2

8D=PACE-Induction-Session-2

Professional Development

12 Qs

Inovasi Part 2

Inovasi Part 2

Professional Development

10 Qs

Review of Related Literature

Review of Related Literature

11th Grade - Professional Development

10 Qs

Pedagogi Keterampilan Berpikir Tingkat Tinggi NY

Pedagogi Keterampilan Berpikir Tingkat Tinggi NY

Professional Development

10 Qs

SALES G's & S's

SALES G's & S's

University

9 Qs

BIR RDO 27 Caloocan Transfer Tax on Estate and Donation

BIR RDO 27 Caloocan Transfer Tax on Estate and Donation

University - Professional Development

15 Qs

Concurrency_Quiz1

Concurrency_Quiz1

Assessment

Quiz

Professional Development

Practice Problem

Easy

Created by

Polina M

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a thread?

A set of instructions loaded into memory.

A security mechanism used to control access to shared resources.

A unit of execution within a process.

A running program.

2.

MATCH QUESTION

1 min • 1 pt

Match the following

Amit Chopra

Hardware component that executes instructions.

Program

The smallest unit of execution within a process.

Thread

A set of instructions to be executed.

Processor

Instance of a running program.

Process

Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the methods a lock should have?

wait(), signal()

acquire(), release()

start(), exit()

lock(), unlock()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Semaphore's count represent?

Total number of threads that can be created.

Number of locks a thread can have.

Number of permits to enter a critical section available.

Number of total critical section accesses allowed.

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which are TRUE about Spinlocks?

Resource intensive.

Effective for small critical sections.

Allow multiple threads to access a critical section.

Do not require a context switch as the thread never sleeps (just like us).

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What causes a Race Condition?

Two or more threads accessing a shared resource at the same time.

Mismatched data types in a program.

Creating multiple threads at the same time within a process.

Operating System scheduler.

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Consider the following psuedocode:

lock.acquire()

Critical section (some piece of code)

lock.release()

Which of the following statements are true?

The critical section cannot be executed by any thread.

Whenever a thread acquires the lock, the number of permits available is decremented.

The critical section is atomic.

Mutual exclusion of threads is guaranteed in the critical section.

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?

Discover more resources for Professional Development