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


Please Help Members By Posting Answers For Below Questions

What checkbox method allows you to tell if a checkbox is checked?

538


Explain OOPs concept.

653


Is it necessary for the port addresses to be unique? Explain with reason.

575


what is function overloading in java?

697


Difference between static binding and dynamic binding?

567






What is the difference between path and classpath variables?

527


What is method overloading and method overriding?

538


How to set the permissions to a file in java?

541


Which access specifier can be used with class ?

532


What is stack class in java?

543


How can u increase the heap size in the memory?

553


Is string an object?

655


Which class is used by server applications to obtain a port and listen for client requests?

491


What is the exact difference in between unicast and multicast object? Where we will use?

558


Give me an example of array and linked list? Where they can be used?

557