1

programm write current process id in file with function getpid() exemple 1100, but wenn command top run, i becomme process id 1101!!!!! why

animuson
  • 53,861
  • 28
  • 137
  • 147
farka
  • 189
  • 2
  • 5
  • 12

2 Answers2

1

There are other, similar IDs that top can display, e.g., the thread ID or the process group ID.

Philipp
  • 48,066
  • 12
  • 84
  • 109
0

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
  • 2,388
  • 2
  • 13
  • 10