• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem on dual-processor Macs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem on dual-processor Macs


  • Subject: Re: Problem on dual-processor Macs
  • From: Dan Sugalski <email@hidden>
  • Date: Thu, 25 Sep 2003 10:38:10 -0400 (EDT)

On Thu, 25 Sep 2003, Tim Hewett wrote:

> These indexes are C 'int' data types, so are signed 32-bit
> integers at the CPU instruction level. I would expect that
> incrementing a 32-bit integer to be an atomic operation,
> similarly setting one to 0 being atomic too.

The only thing you can count on is that reading or writing a naturally
aligned integer is atomic. Past that... nope. Just writing a 0 to 32-bit
integer isn't atomic if the integer isn't properly aligned. (That, though,
is really rare given how much modern CPUs hate unaligned stuff)

Dan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Problem on dual-processor Macs (From: Tim Hewett <email@hidden>)

  • Prev by Date: Re: size of the gray bar at the top of an NSWindow
  • Next by Date: Same code, tool and app behave differently.
  • Previous by thread: Re: Problem on dual-processor Macs
  • Next by thread: Re: Problem on dual-processor Macs
  • Index(es):
    • Date
    • Thread