ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

C++11 atomic locks
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  

Which is better for chess programs?
C++11 atomic locks
60%
 60%  [ 3 ]
PThreads mutex locks
40%
 40%  [ 2 ]
Voted : 5
Total Votes : 5
This poll does not expire

Author Message
Daniel Shawul



Joined: 14 Mar 2006
Posts: 2187
Location: Ethiopia

PostPost subject: Re: C++11 atomic locks    Posted: Tue Apr 10, 2012 1:47 pm Reply to topic Reply with quote

OpenMP locks have an interesting property. They act as spinlocks for a certain time and then as a mutex in which the thread is put to sleep. They will probably act fully as spin locks when it is our turn so no loss there. http://www.thinkingparallel.com/2006/09/09/mutual-exclusion-with-locks-an-introduction/
_________________
https://sites.google.com/site/dshawul/
https://github.com/dshawul
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Subject Author Date/Time
C++11 atomic locks Matthew R. Brades Mon Apr 09, 2012 11:56 am
      Re: C++11 atomic locks Marco Costalba Mon Apr 09, 2012 3:40 pm
      Re: C++11 atomic locks Robert Hyatt Mon Apr 09, 2012 5:09 pm
      Re: C++11 atomic locks Daniel Shawul Tue Apr 10, 2012 1:47 pm
      Camel is a horse designed by a committee Daniel Shawul Wed Apr 11, 2012 1:10 am
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads