Concurrency_Quiz1
Quiz
•
Professional Development
•
•
Practice Problem
•
Easy
Polina M
Used 5+ times
FREE Resource
Enhance your content in a minute
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
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
14 questions
Electrical Hazard
Quiz
•
10th Grade
15 questions
Customer Service
Quiz
•
Professional Development
10 questions
Christmas Movie Trivia
Quiz
•
Professional Development
15 questions
Phlebotomy Ch. 1
Quiz
•
Professional Development
15 questions
CHAPTER 8: PERFORMANCE MANAGEMENT AND APPRAISAL
Quiz
•
University
10 questions
TKP TIK
Quiz
•
University
10 questions
Bibliography
Quiz
•
7th - 12th Grade
15 questions
Effective Communication
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
