GeekInterview.com
Series: Subject: Topic:
Question: 32 of 90

Describe four general strategies for dealing with deadlocks.

Asked by: Interview Candidate | Asked on: Oct 23rd, 2007
Showing Answers 1 - 2 of 2 Answers
visitnitya

Answered On : Jan 14th, 2008

View all answers by visitnitya

the four techniques are-
1)mutual exclusion
2)circular wait
3)hold & wait
4)no premption

  
Login to rate this answer.
nilupul21

Answered On : Aug 23rd, 2009

View all answers by nilupul21

Strategies to dealt with deadlocks are:


  • Ignore deadlock (This is done in systems which are infrequently meeting with deadlocks)

  • Detection and recovering

  • Avoiding deadlocks by careful resource allocation

  • Preventing deadlock operating conditions. These conditions are


    1. Mutual exclusiveness (two processes cant use same resource at same time)

    2. Hold and wait

    3. No preemtion (after allocating resource, it cant be taken back until it is released by process)

    4. Cycles in resource allocation diagrams


  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

Shell Scripting Interview Questions

Solaris Admin Interview Questions

UNIX Interview Questions

Unix Programming Interview Questions

Windows Interview Questions

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.