If you had a choice debugging deadlock problem or a livelock
Problem, which would you choose? Why ? How would you proceed?



If you had a choice debugging deadlock problem or a livelock Problem, which would you choose? Why ?..

Answer / Tulika Srivastava

Both deadlock and livelock are serious problems in concurrent systems, but I would choose to debug a deadlock problem first. Deadlocks can be easier to identify and solve than livelocks because they are more predictable.nTo proceed with debugging a deadlock:
1. Identify the suspects: Look for suspicious code that may be causing synchronization issues, such as incorrect use of locks or wait/notify operations.
2. Recreate the problem: Create a test case that reproduces the deadlock to isolate the issue and gain insight into its cause.
3. Analyze the stack traces: Examine the stack traces of the stuck threads to identify which resources they are holding and waiting for.
4. Remove the deadlock: Modify the code or system configuration to break the deadlock, such as by releasing a held resource or altering the order of synchronization operations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Client Server General Interview Questions

What are Super servers?

4 Answers  


What advantages can one obtain by combining the technique with a concurrent, single process server?

1 Answers  


Explain the Tunneling, Encapsulation, and Dialup Phone Line.

1 Answers  


A patient in the emergency room required 20 grams of a clotbusting drug based on his body weight of 150 pounds. The weight per volume (w/v) of the drug solution is 10%. How many milliliters of the drug solution should be administered?

1 Answers  


How does XDR'S use of the buffer paradigm make programming easier.

1 Answers  


What are the most typical functional units of the Client or Server applications?

1 Answers   Cognizant, Data Com,


What are the five major technologies that can be used to create Client Server applications?

1 Answers   CarrizalSoft Technologies, CSC,


What are the advantages of infrared technology?

1 Answers  


What is a File server?

1 Answers   CarrizalSoft Technologies, HCL,


What is a web server in client server environment?

1 Answers  


what is an isomer?

1 Answers  


What is a triglyceride?

1 Answers  


Categories
  • Client Server Architecture Interview Questions Client Server Architecture (26)
  • Client Server General Interview Questions Client Server General (262)
  • Client Server AllOther Interview Questions Client Server AllOther (45)