1

In top command, i couldn't find any option. Can somebody help me out?

abcd
  • 75
  • 1
  • 8

1 Answers1

4

You can't do this meaningfully, because all threads in a process share the same memory space.

Any memory allocated by one thread is also available to all the others, and you can (for example) malloc some memory in thread A then pass a pointer to that memory to thread B. The memory does not "belong" to A or B, but to the process as a whole.

David Gelhar
  • 27,873
  • 3
  • 67
  • 84
  • Yeah..u r right..it belongs to the process..but event that memory allocated from heap will be created by some thread..I think it's possible – abcd Nov 23 '10 at 07:32