
Multithreading

Quiz
•
Computers
•
Professional Development
•
Medium
Ms STAFF
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to start a thread in Java?
run()
begin()
start()
execute()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is called when a thread is started?
start()
run()
execute()
init()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to pause the execution of a thread for a specified time?
sleep()
wait()
yield()
join()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will cause a thread to release the lock it holds?
sleep()
yield()
wait()
run()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you call start() on a thread object that has already been started?
It runs normally
It does nothing
It throws IllegalThreadStateException
It calls run() again
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which state is a thread in when it is waiting to acquire a lock held by another thread?
RUNNABLE
WAITING
BLOCKED
NEW
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a valid thread state?
NEW
RUNNABLE
DEAD
EXECUTING
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java main() and Scanner

Quiz
•
Professional Development
11 questions
Revisão rápida de Sistemas Operacionais

Quiz
•
Professional Development
20 questions
C CODE MASTER A

Quiz
•
Professional Development
10 questions
GSI DP-100 Day 1

Quiz
•
University - Professi...
20 questions
119.ArrayList

Quiz
•
Professional Development
10 questions
Mitigation Techniques and Controls

Quiz
•
Professional Development
14 questions
Junit Quiz

Quiz
•
Professional Development
10 questions
DP-100 Day 5_6

Quiz
•
University - Professi...
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