Cisco Systems Interview Question
Developer Program EngineersCountry: United States
Interview Type: Phone Interview
I am not sure of the question. Is the question that many processes have crashed and generated corefile and we need to differentiate between the core files?? If so then there is a Linux kernel option: kernel.core_pattern
If we set it to
echo "/tmp/cores/core.%e" > /proc/sys/kernel/core_pattern
where %e: executable filename
Then we'll have the name of the process which crashed in the core filename.
There will be a process over to all processes, like "init" in Linux. This process will fork all other processes and has the capability to process signals. So, when a process dies then the process will send a signal to the parent process, which will be logged. Thereafter, the parent process may send kill signal to other processes.
just find the output of ps -aef ... the process which is currently in the stop / suspended state is the one not executing currently.
- Anonymous June 07, 2012