If you had a choice debugging deadlock problem or a livelock
Problem, which would you choose? Why ? How would you proceed?
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 |
What are Super servers?
What advantages can one obtain by combining the technique with a concurrent, single process server?
Explain the Tunneling, Encapsulation, and Dialup Phone Line.
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?
How does XDR'S use of the buffer paradigm make programming easier.
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?
What is a File server?
1 Answers CarrizalSoft Technologies, HCL,
What is a web server in client server environment?
what is an isomer?
What is a triglyceride?