GIOS P2L4 - Part 2

GIOS P2L4 - Part 2

University

15 Qs

quiz-placeholder

Similar activities

OS-CH4-Thread and Concurrency

OS-CH4-Thread and Concurrency

University

15 Qs

Thread - SISTEM OPERASI

Thread - SISTEM OPERASI

University

10 Qs

operating systems

operating systems

University

15 Qs

DOS5311 - Chapter 2

DOS5311 - Chapter 2

University

10 Qs

WLUG Linux CS quiz

WLUG Linux CS quiz

University

16 Qs

OS Introduction

OS Introduction

University

12 Qs

exersare examen SO (Suntem Oripilați)

exersare examen SO (Suntem Oripilați)

University

20 Qs

Revisão 1ª AV - Sistemas Operacionais

Revisão 1ª AV - Sistemas Operacionais

University

20 Qs

GIOS P2L4 - Part 2

GIOS P2L4 - Part 2

Assessment

Quiz

Computers

University

Hard

Created by

Blair Bass

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the set_concurrency system call?

To allocate kernel level threads to a process

To request more user level threads

To signal the kernel before blocking

To interact and coordinate between the kernel and the user level library

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Why is it helpful for the kernel to signal to the user level library before blocking?

To allocate another thread to the process temporarily

To deallocate a thread when it becomes idle

To allow the user level library to request more kernel level threads

To coordinate and make progress even when some threads are blocking

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the user level library see?

Kernel level threads

CPUs

Kernel level scheduler

User level threads

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can the user level library do to ensure a user level thread always executes on a specific kernel level thread?

Request binding of the user level thread to a specific kernel level thread

Pin the kernel level thread to a particular CPU

Specify the mapping between ULT and KLT in the many to many case

Use mutexes and wait queues for synchronization

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

When does the process jump to the user level library scheduler?

When ULTs explicitly yield

When a timer set by the UL library expires

When ULTs call library functions like lock/unlock

When blocked threads become runnable

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the issue when a user level thread acquires a lock and the kernel level thread gets preempted?

The user level library scheduler cycles through remaining user level threads

The user level threads waste time until the thread holding the lock is scheduled again

The ULT/KLT mapping in the many to many case changes

The kernel is unaware of the data structures used by the user level

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a multi CPU system, how can a user level library impact what is running on another CPU?

By directly modifying the registers of the other CPU

By sending a signal from one CPU to the other

By requesting the kernel to preempt a thread on the other CPU

By blocking the thread on one CPU and scheduling another thread on the other CPU

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?