Re: [GD-General] cross platform 64bit lock free FIFO?
Brought to you by:
vexxed72
From: Daniel V. <Dan...@ep...> - 2006-08-07 18:35:21
|
> see (or vice versa), but on Intel, that can never happen. FWIW, it can on next gen consoles though at least there are intrinsics for inserting light weight memory barriers. -- Daniel, Epic Games Inc. =20 > -----Original Message----- > From: gam...@li...=20 > [mailto:gam...@li...]=20 > On Behalf Of Jon Watte > Sent: Monday, August 07, 2006 2:29 PM > To: gam...@li... > Subject: Re: [GD-General] cross platform 64bit lock free FIFO? >=20 > More than one question in the same message. >=20 > Typically, a lock-free FIFO supports only a single writer and=20 > a single=20 > reader. If that's all you need, then you don't even need the special=20 > instructions, because the writer will always write the same variable,=20 > and the reader will always read the other same variable. If=20 > your cache=20 > is not 100% read-after-write coherent, then you may have a temporary=20 > situation where there's something written that the reader doesn't yet=20 > see (or vice versa), but on Intel, that can never happen. >=20 > If you need multiple readers, or multiple writers, then correct=20 > lock-free implementation suddenly becomes a *lot* harder. >=20 > Cheers, >=20 > / h+ >=20 >=20 > Andras Balogh wrote: > > I've found info on know how to implement a lock free FIFO on 32bit =20 > > systems, but I've also read that making it work for 64bit=20 > systems with the =20 > > current instruction sets is very difficult and extremely=20 > error prone. So I =20 > > would prefer to use a proven solution, instead of trying to=20 > roll my own. =20 > > On Windows, it's easy, because the Win32 API provides an=20 > interlocked =20 > > SList, that is supposed to work on 64 bit platforms too.=20 > But what about =20 > > other operating systems? Also, AFAIK these new 64bit=20 > systems don't really =20 > > have a 64bit address space, but 40-44? Does this mean, that=20 > all these =20 > > 64bit implementations are doing is only using the top 20=20 > bits for ABA =20 > > resolution?? I'm confused :) > > =20 >=20 >=20 > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web=20 > services, security? > Get stuff done quickly with pre-integrated technology to make=20 > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on=20 > Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& dat=3D121642 > _______________________________________________ > Gamedevlists-general mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D557 >=20 |