Re: pthreads and memory allocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2004-08-27 at 17:10, anton wilson wrote:
> in OUTPUT1. When pthread_create is used, several unexplained memory 
[..]
> one is 4k (non-writable) and the other is 2044K (both mapped to the zero 

I don't recall what all of the allocations are for, but the 2MB is the
stack for your new thread. See pthread_attr_setstackaddr() and
pthread_attr_setstacksize() for controlling it a bit.

-Pat



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux