Unit-III-Java - Deadlock

Unit-III-Java - Deadlock

University

10 Qs

quiz-placeholder

Similar activities

Python with DataScience

Python with DataScience

7th Grade - University

10 Qs

SO. Concurrencia y exclusión mutua

SO. Concurrencia y exclusión mutua

University

10 Qs

OS(UNIT-I) QUIZ

OS(UNIT-I) QUIZ

University

10 Qs

DISTRIBUTED OS UNIT 1 QUIZ

DISTRIBUTED OS UNIT 1 QUIZ

University

10 Qs

SRM COA

SRM COA

University

10 Qs

Problem Solving Phase

Problem Solving Phase

University

11 Qs

Flowol

Flowol

KG - University

10 Qs

DoS Attack Quiz

DoS Attack Quiz

University

10 Qs

Unit-III-Java - Deadlock

Unit-III-Java - Deadlock

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Ajitha Padmanabhan

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers