On Sat, 21 Jun 2008, Namita Iyer wrote: > Date: Sat, 21 Jun 2008 17:12:23 +0530 > From: Namita Iyer <[EMAIL PROTECTED]> > Reply-To: [email protected] > To: [email protected] > Subject: [twincling] memory barriers and locking primitives > > Has anyone used memory barriers with multicore processors ? > (embedded systems programmers?) > > In what scenarios do they work better than locking primitives ? > > Namita >
Hi Namita: i did read couple of papers of Herb Sutter and off course programming in Erlang :-) One of the approach that seemed to have worked very well for accomplishing concurrency is a 'shared nothing' model instead of 'shared memory' model esp. in distributed computing. Erlang follows this model, also known as 'Actor' model. http://en.wikipedia.org/wiki/Actor_model Can you share your thoughts about the concept of Memory barriers and how a C/C++ code might be structured in absence of Critical sections and mutexes ? thanks Saifi.

