I use malloc_stats () to print statistics related to malloc, in which I find "Arena 0" for some programs and "Arena 0 and Arena 1" for some other programs.
What are these arenas?
See link text . It looks like a heap is a collection of arenas ("basements") for handling memory allocation between multiple threads, which reduces the number of conflicts.
glibc libc.so.x. , arenas. concurrency. , "" , , . , . malloc() , , (trylock). , . , , . , , . , . , , , , , , malloc() . malloc() .
malloc "" , . , , , , . .
: http://www.gnu.org/software/libc/manual/html_node/Statistics-of-Malloc.html
int arena, sbrk malloc, .
int arena