Concurrency_Quiz1

Quiz
•
Professional Development
•
•
Easy
Polina M
Used 5+ times
FREE Resource
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
Processor
Instance of a running program.
Amit Chopra
Thread
A set of instructions to be executed.
Program
Hardware component that executes instructions.
Process
The smallest unit of execution within a process.
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.
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
QUALITY WEEK 2022 -ONLINE QUIZ COMPITITION

Quiz
•
1st - 3rd Grade
10 questions
AB Recruitment Review

Quiz
•
Professional Development
10 questions
All-New Civic Exam

Quiz
•
Professional Development
10 questions
เครื่องมือวัดค่าคงที่

Quiz
•
University
10 questions
STEM Education

Quiz
•
Professional Development
10 questions
How to Sew a Button on with a Shank with Fiona

Quiz
•
10th Grade
12 questions
Characteristics of Money

Quiz
•
Professional Development
15 questions
Social Etiquette quiz

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade