Examveda
Examveda

What is a deadlock in multithreading?

A. A situation where a thread runs indefinitely without blocking

B. A situation where all threads complete successfully

C. A situation where a thread is terminated forcibly

D. A situation where two or more threads are unable to proceed because they are each waiting for the other to release a resource

Answer: Option D


This Question Belongs to Java Program >> Threads

Join The Discussion

Related Questions on Threads

What is a thread in Java?

A. A lightweight process that runs independently within a program

B. A data structure to store variables

C. A type of loop

D. A synchronization mechanism