
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
20 questions
APP Unit3

Quiz
•
Professional Development
10 questions
Exercise No 1-Intro to Java

Quiz
•
Professional Development
20 questions
Linux Managing Systems

Quiz
•
Professional Development
20 questions
Cloud services

Quiz
•
Professional Development
10 questions
HTTP responses & request methods

Quiz
•
Professional Development
17 questions
Quiz 13

Quiz
•
Professional Development
15 questions
JDBC_Objective_Exam_2

Quiz
•
Professional Development
15 questions
Python to Access Data Quiz

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
8 questions
Understanding Government: Limited and Unlimited

Quiz
•
Professional Development
20 questions
tape measure

Quiz
•
Professional Development
24 questions
Street Signs

Quiz
•
9th Grade - Professio...