develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [PATCH] Adding callbacks to the core

Thread Previous | Thread Next
Robin Houston
August 22, 2001 08:29
Re: [PATCH] Adding callbacks to the core
Message ID:
David M Lloyd wrote:
> for instance no matter how the CPU threads, it wouldn't make logical
> sense to do a comparison with a variable before or during an
> assignment that precedes the comparision.

Presumably it can't _literally_ do that, but are you sure it can
never appear that way to other processors?

I would have thought that, if your processor is caching the
variable, it might well *appear* that the comparison has been
done before the assignment.

Multi-processor Alpha systems apparently exhibit some particularly
counter-intuitive behaviour wrt apparent ordering of instructions.
There's a nice explanation here:

I'm definitely not an expert on this, but it definitely seems that
if you're _not_ an expert then this stuff is nearly impossible to get
right if you start trying to be clever.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About