Group: comp.lang.c++
From: "Chris Thomasson"
Date: Sunday, April 13, 2008 1:09 PM
Subject: Re: Do you use a garbage collector (java vs c++ difference in "new")

"Chris Thomasson" wrote in message
news:UPqdndrv99cKpp_VnZ2dnUVZ_sWdnZ2d@comcast.com...
[...]

> I know some things about distributed programming... Why would you want
> anything that calls new to atomically increment a global singular pointer?
> What if then threads
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

'then' == 'ten'


ARGH. I am late for an very informal ad-hoc meeting. Need to get my a$s out
of the door if I want to make it to the restaurant on time!

:^o



> which are running on ten separate CPUS to all contend for a single
> location in memory?


> That is not good at all. I have designed distributed locking schemes, and
> can tell you that contention on a per-thread/cpu mutex is MUCH better than
> contention on a single mutex. This is directly analogous to multiple CPUS
> firing atomic updates at a SINGLE location. Again, post over on c.p.t so
> we can give you much more detailed information.
[...]

Safety Articles | Usenet Groups | Usenet News | Bluegrass