How can the kernel notify which is the current running application ?
Hi,
i need to develop a daemon (user space) which needs to know which is current running application. How can i get notifications from the kernel? Someone told me there are a thousand ways. Who can suggest me a bunch of possibly solutions? Thanks |
This stuff is available in /proc/<PID>/stat
You can also see what is in the running state using ps (ps aux for example). |
Quote:
|
Quote:
I want the kernel notify me everytime the current running one changes. Is it possible? |
Realistically, no. The computer would simply be spending all of its time sendng you notifications. (An you'd spend all of the computer's time processing them.) :)
|
All times are GMT -5. The time now is 04:34 AM. |