NetApp Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

Its not a simple thing to do but if you like to do that, you need to break the deadlock in such a way that there is least number of threads are effected or killed. you need to find all the resource taken by each thread and which thread is waiting on which resource and which thread has locked which resource. Once this cycle of dependency is identified, then you can break the chain by forcing one of the thread to release its resource and allocating that resource to a thread which can start working on it and then releases it later.
in the worse case, you need to kill all the threads.

- Anonymous December 12, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

If we can build a resource allocation graph, then we can figure out the root cause of the deadlock. If there is a lower priority thread, then we can kill that first. But, I am not sure how this graph can be constructed - maybe the answer lies in the implementation of race detection tools.

I am not sure in how much detail RAGs should be explained.

- Anonymous March 29, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Use priority inheritance.

- Anonymous October 16, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

eetimes.com/design/embedded/4024970/How-to-use-priority-inheritance

- shiva cherukuri November 17, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

We can basically use top -H -p <pid> command to list all the threads for a particular process and then identify the thread with maximum cpu utilization and terminate the same

- Raghuram September 13, 2014 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More