Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Maybe it's not real memory, but shared memory? Create N / 10 threads, where N is the number of megabytes of memory installed in the computer.
This is shared. It's hard to keep track of...
Experiment for - fill some global array with a lot of data and see if the memory grows under the thread.
Just in case, look at the stack size through pthread_attr_getstacksize , it may cost a minimum stack of 10 meters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question