This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: basic_string::release and thread safety: what about
- To: dvv at dvv dot org (Dima Volodin)
- Subject: Re: basic_string::release and thread safety: what about
- From: Joe Buck <jbuck at Synopsys dot COM>
- Date: Tue, 6 Jul 99 16:51:52 PDT
- Cc: jbuck at Synopsys dot COM, mark at codesourcery dot com, drepper at cygnus dot com, egcs at egcs dot cygnus dot com
> This "atomic" operations should also guarantee cache consistency between all
> the CPUs in the system, so if you ask me (am I humble or what? :-) I'd rather
> go with the approach taken by the SGI folks - have things shared as little as
> possible.
The atomic operations in question (hardware test-and-set instructions and
the like) have that property (cache consistency). People need such
primitives to build locks and critical regions.
I'm not willing to pay 10x or more speed penalties on uniprocessor,
non-threaded code myself.