LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How to print wait reason in linux (https://www.linuxquestions.org/questions/linux-kernel-70/how-to-print-wait-reason-in-linux-701807/)

senrooy 02-02-2009 11:30 PM

How to print wait reason in linux
 
How to print the wait reasons of the processes which are sleeping for different reasons in kernel without using device driver module? The programming language should be C.

sundialsvcs 02-03-2009 09:17 AM

Ask your teacher.

The answer to this question is so transparently obvious, and the tag "the programming language should be 'C'" is such a homework phrase, that I know you're not learning a tinker's-dam thing in your class. :mad: And just wasting our collective time here.

senrooy 02-03-2009 10:15 PM

I am not able to understand your point. If you know how to get the waitreasons for the sleeping processes then tell me. From which kernel structure I can get this info?

gilead 02-03-2009 10:26 PM

Then please re-read sundialsvcs' post in the context of this part of the LQ Rules:
Code:

Do not expect LQ members to do your homework - you will learn much more by doing it yourself
In other words, it you want help with your homework, tell us what you've done and what you're stuck on. Please don't expect someone here to do the work for you.

senrooy 02-03-2009 11:21 PM

I donnot expect anyone to do the entire prograaming for me.I only want someone to tell me from where I can get the required info.I have specified the programming language just to be specific about the query. I have tried with wait queue concept. But it is not working according to the requirement.


All times are GMT -5. The time now is 05:39 AM.