Re: Multi-threaded help
Re: Multi-threaded help
- Subject: Re: Multi-threaded help
- From: Rosyna <email@hidden>
- Date: Fri, 9 Mar 2007 13:26:00 -0700
I highly recommend taking a gander at
http://ridiculousfish.com/blog/archives/2007/02/17/barrier/
Ack, at 3/9/07, Jan Erik Breimo said:
While he probably isn't, he might be alluding to the fact that C (at
least not until the most recent standard) and C++ don't really
support multi-threading. When you control access to some shared
resource by locking a mutex or some equivalent, there's no way to
specify within the standard languages that the lock-function is
special and that an optimizing compiler isn't allowed to reorganize
the code so that instructions originally appearing after the lock
are actually executed before it. gcc probably has some compiler
specific keyword that really makes this a non-issue in Cocoa, but it
might at least be a minor concern for someone writing cross-platform
code.
And multi-threaded code that seems to work fine on a single-core
cpu, but isn't really thread-safe, is virtually bound to fail once
it's moved to a multi-core cpu or multi-cpu system.
--
Sincerely,
Rosyna Keller
Technical Support/Carbon troll/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden