Unit-III-Java - Deadlock

Unit-III-Java - Deadlock

University

10 Qs

quiz-placeholder

Similar activities

DDT1B_Pre-test_080322

DDT1B_Pre-test_080322

University

10 Qs

Remidi SO

Remidi SO

University

15 Qs

PROSES DAN SINKRONISASI

PROSES DAN SINKRONISASI

University

10 Qs

Tutorium1

Tutorium1

University

10 Qs

Android Fundamentals - Day 1: Java

Android Fundamentals - Day 1: Java

University - Professional Development

10 Qs

C-21 IV Sem OS Quiz-1 Jan2024

C-21 IV Sem OS Quiz-1 Jan2024

University

10 Qs

Quiz on Multi Threading

Quiz on Multi Threading

University

15 Qs

Deadlock

Deadlock

University

15 Qs

Unit-III-Java - Deadlock

Unit-III-Java - Deadlock

Assessment

Quiz

Computers

University

Hard

Created by

Ajitha Padmanabhan

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?