programm write current process id in file with function getpid() exemple 1100, but wenn command top run, i becomme process id 1101!!!!! why
+1
A:
There are other, similar IDs that top
can display, e.g., the thread ID or the process group ID.
Philipp
2010-07-05 13:25:35
top display always old id von getpid()+1, why!!!
farka
2010-07-05 13:31:49
A:
It is not at all possible. Both the getpid function output and the id displayed by top will be same. I hope you are confusing something.
Can you please briefly expain, how you are doing all these ?
thegeek
2010-07-05 15:43:18