Memroy related Issue ( Please help)



Hi All,

I have two version of a c program on HPUX-11.2.
First is without threading, and second is with threading in which I
could chose how much thread or no threads to use.

I run first one, and check memory usage thru glance and note the memory
usage in DATA segment for whole run.
Now I run the second one and view the memory usage thru glance then I
foun the memory usage are just double from the start.
I have run with 0 threads option too, yet it's occupying double memory.
while database is same.

I have tried with commenting the initialization part which is used for
threads, still no clue. and results are same.

Now I am trying to compile it using purifier, but still I need your
kind suggestions, that where I am missing , or what approach I should
follow.

Thanks in advace.

Regards
Sunil Somani

.



Relevant Pages

  • Memory related Issue ( on HPUX)
    ... could chose how much thread or no threads to use. ... Now I run the second one and view the memory usage thru glance then I ... Now I am trying to compile it using purifier, ...
    (comp.unix.programmer)
  • Re: Memroy related Issue ( Please help)
    ... Concepts such as TLS will come into play. ... usage in DATA segment for whole run. ... Now I run the second one and view the memory usage thru glance then I ...
    (comp.sys.hp.hpux)