Re: Multithreaded GC!
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Tue, 12 Feb 2008 23:17:29 +0100
"Ben Voigt [C++ MVP]" <rbv@xxxxxxxxxxxxx> wrote in message news:%23O9fDGZbIHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
True, if you have more threads running than actual processors, you
will share a heap across multiple threads, not sure what you mean
with "synchronize their allocations" though.
If multiple user threads can share a single heap then they cannot
allocate from it independently: their allocations must be
synchronized using a lock.
But Ben Voigt said that no locks were used during allocation.
"object allocation" is nothing more than bumping a pointer in an
atomic operation.
Right. Because the Gen0/Gen1/Gen2 heaps... aren't. They are really stacks.
Yep the back-end is, but with a complex front-end.
Willy.
.
- References:
- Re: Multithreaded GC!
- From: Willy Denoyette [MVP]
- Re: Multithreaded GC!
- From: Jon Harrop
- Re: Multithreaded GC!
- From: Willy Denoyette [MVP]
- Re: Multithreaded GC!
- From: Jon Harrop
- Re: Multithreaded GC!
- From: Willy Denoyette [MVP]
- Re: Multithreaded GC!
- From: Jon Harrop
- Re: Multithreaded GC!
- From: Willy Denoyette [MVP]
- Re: Multithreaded GC!
- From: Ben Voigt [C++ MVP]
- Re: Multithreaded GC!
- Prev by Date: Re: Multithreaded GC!
- Next by Date: Re: Set first row as default in Gridview
- Previous by thread: Re: Multithreaded GC!
- Next by thread: Re: Multithreaded GC!
- Index(es):
Relevant Pages
|