Arena and threads

Matthew Dillon dillon at backplane.com
Wed Oct 30 12:26:01 PDT 2019


Generally speaking the allocation algorithm depends on the language, the OS
doesn't have a lot to do with it.  Anything linked against libc (that is,
any C program), however, will use the allocator in libc which we do
control.  That allocator allocates per-thread zones.

That said, the memory allocator itself, no matter what the language, is
still just allocating memory that is shared across all the threads.  No
copying is involved.  All the threads share the same address space.  Any
locking is up to the program (or the language) itself.

-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20191030/c65e2ec0/attachment-0001.htm>


More information about the Users mailing list