real time example for deadlock,starvation,livelock
Answer Posted / prateek shrivastava
Dead lock generally occurs when 2 threads try to acquire
same shared resource. In this case each thread end up
waiting for other to release lock and deadlock occurs
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
What is loop in java?
Is there is any difference between a scrollbar and a scrollpane?
Differentiate between run time error and syntax error.
Define immutable object?
how does multithreading take place on a computer with a single cpu? : Java thread
What do you mean by singleton class in java?
What are synchronized blocks in java?
Can you sort a string in java?
What is an empty class? What functionality does it offer in Java?
How do you escape in java?
What is executor memory?
Why are functions called methods in java?
Differences between external iteration and internal iteration?
What is the byte order of byte buffer?
Can a source file contain more than one class declaration?