real time example for deadlock,starvation,livelock
Answer Posted / keerthi
deadlock:let two members are going to draw some picture.they are combinedly having pencil &ruler.one uses pencil,another is having ruler.unless u r with these two the drawing will not be completed.this is dealock.
livelock:two members are walking towards each other through a narrow corridor .Both of them are going tocross the corridor,this is known as livelock.
| Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
What all access modifiers are allowed for top class ?
What are the different ways of creating thread?
What is the difference between assignment and initialization?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What are inner classes or non static nested classes in java?
how to deploy apache tomcat server to weblogic server in java
Is it possible to override the main method?
How many arguments can be passed to main ()?
When do we use synchronized methods in java?
Explain the polymorphism principle?
what is the difference between preemptive scheduling and time slicing? : Java thread
What is procedure writing?
What is nullpointerexception in java?
can rmi and corba based applications interact ?
Explain a situation where finally block will not be executed?