Q1: Which of the following is true about threads?

Quiz on Multi Threading

Quiz
•
Computers
•
University
•
Hard
Aazim khursheed
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Threads share the same memory space within a process
Threads have their own memory space.
Threads cannot run concurrently.
Threads are not lightweight compared to processes
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is thread synchronization?
Allowing multiple threads to access a resource simultaneously
Blocking all threads to avoid concurrency
Allowing only one thread to access a resource at a time
Creating multiple threads to perform tasks
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct order of the thread lifecycle in C++?
New -> Runnable -> Waiting -> Terminated
Created -> Running -> Waiting -> Terminated
New -> Ready -> Running -> Terminated
Initialized -> Ready -> Running -> Complete
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Q4: Which method is used to wait for a thread to complete execution in C++?
stop()
terminate()
join()
wait()
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Q5: Which of the following methods cannot be called on a detached thread?
join()
sleep()
terminate()
exit()
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Q6: What is the purpose of thread communication in multithreading?
To increase CPU usage.
To allow threads to share resources and coordinate tasks.
To execute multiple threads simultaneously.
To terminate unnecessary threads.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Q7: Which keyword is used in C++ to prevent data corruption in a multithreaded environment?
protect
mutex
synchronize
volatile
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Java

Quiz
•
University
20 questions
Revisão 1ª AV - Sistemas Operacionais

Quiz
•
University
10 questions
SSK20193 KUIZ DUA

Quiz
•
12th Grade - University
15 questions
OS-CH4-Thread and Concurrency

Quiz
•
University
10 questions
K22YG 2

Quiz
•
University
10 questions
Peer-Learning

Quiz
•
University
11 questions
OPESSYS: Module 3 Quiz Game

Quiz
•
University
10 questions
Computer Architecture

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade