[cpp-threads] pthreads (was: RE: C++ Connections proposal)
Alexander Terekhov
alexander.terekhov at gmail.com
Fri Apr 29 11:55:10 BST 2005
On 4/29/05, Boehm, Hans <hans.boehm at hp.com> wrote:
> > -----Original Message-----
> > From: Alexander Terekhov
> >
> > Are you absolutely positively sure that all hardware on which
> > threaded C++ is supposed to run can provide required isolation for
> >
> > char[2] a;
> >
> > thread 1: a[0] = 1;
> >
> > thread 2: a[1] = 2;
> >
> > without CAS/LL(LR)-SC (that would considerably slow things
> > down)?
> >
> No. Which is why we need feedback. But I know of none that can't.
>
> I am positive that all hardware that can run Java 1.5/5 efficiently
> can do this. I think the same holds for .NET.
Both can use isolated<char> instead of char everywhere (with
sizeof(isolated<char>) >= sizeof(char), see also RTJ's stuff
for driver programming). That's not the case of C++ "native"
(POSIX with its restriction on char size aside for a moment)
because it is supposed to be "closer" to hardware, I believe.
regards,
alexander.
More information about the cpp-threads
mailing list