caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Brown <caml-list@davidb.org>
To: skaller <skaller@users.sourceforge.net>
Cc: David Brown <caml-list@davidb.org>,
	Ker Lutyn <ker527mail@yahoo.com>, caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] atomicity guarantees for threaded code
Date: Fri, 29 Oct 2004 19:07:23 -0700	[thread overview]
Message-ID: <20041030020723.GA12611@old.davidb.org> (raw)
In-Reply-To: <1099098448.11063.284.camel@pelican.wigram>

On Sat, Oct 30, 2004 at 11:07:28AM +1000, skaller wrote:

> > But, a reference in ocaml will always be in a block, which will always be
> > aligned. 
> 
> On what boundary?

> >  Even x86 will be atomic with a 32-bit transfer that is aligned.
> 
> But perhaps not a 64 bit one.

I would argue that on a machine with 64-bit addresses, you can assume that
64-bit, aligned loads and stores will be atomic.  There is just too much
code that wouldn't work.  Other assumptions are hard to make, though.

Dave


  reply	other threads:[~2004-10-30  2:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29 16:39 Ker Lutyn
2004-10-29 21:50 ` [Caml-list] " David Brown
2004-10-29 23:54   ` skaller
2004-10-30  0:32     ` David Brown
2004-10-30  1:07       ` skaller
2004-10-30  2:07         ` David Brown [this message]
2004-10-30  2:36           ` skaller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041030020723.GA12611@old.davidb.org \
    --to=caml-list@davidb.org \
    --cc=caml-list@inria.fr \
    --cc=ker527mail@yahoo.com \
    --cc=skaller@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).