
Unit-III-Java - Deadlock
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Ajitha Padmanabhan
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A ________ in Java occurs when two or more threads are blocked forever, each waiting for the other to release a resource.
tasking
threading
resource
deadlock
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Both threads are now waiting for each other to release their locks, and neither can proceed, which is not resulting in a deadlock.
true
false
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A special type of error that to avoid that relates specifically to multitasking is _________which occurs when two threads have a circular dependency on a pair of synchronized objects.
synchronised
deadlock
threading
all of the mentioned
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Thread class also defines a method called ______ that stops a thread,
stop( )
run()
wait()
notify()
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Choose : signature of stop
final void ( )
final stop( )
final void stop
final void stop( )
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Once a thread has been stopped, it cannot be restarted using _________.
restart().
join().
resume( ).
start().
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
suspend( ) method of the Thread class was deprecated by Java 2 several years ago. was done because suspend( ) can sometimes cause serious system failures.
true
false
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
10 questions
OPERATING SYSTEM
Quiz
•
University
10 questions
AI and Critical Thinking 11-16
Quiz
•
8th Grade - University
15 questions
Analytical IS-Sesi 1 sd 4
Quiz
•
University
10 questions
Communication Skills Quiz
Quiz
•
6th Grade - University
10 questions
SA Ch2-3 & SDLC
Quiz
•
University
12 questions
Threads in C# Quiz
Quiz
•
University
10 questions
05.03.2023 | Warm Up | 2.1
Quiz
•
University
15 questions
ERP 1
Quiz
•
University - Professi...
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
