A ________ in Java occurs when two or more threads are blocked forever, each waiting for the other to release a resource.

Unit-III-Java - Deadlock

Quiz
•
Computers
•
University
•
Hard
Ajitha Padmanabhan
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
8 questions
OS-Multithreading

Quiz
•
University
10 questions
Peer-Learning

Quiz
•
University
10 questions
SSK20193 KUIZ DUA

Quiz
•
12th Grade - University
15 questions
Unit-III-Java -Thread 2

Quiz
•
University
15 questions
MultiThreading Quiz

Quiz
•
University
11 questions
OPESSYS: Module 3 Quiz Game

Quiz
•
University
10 questions
Computer Architecture

Quiz
•
University
10 questions
K22YG 2

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