creta classic club Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in



Is Lock-Free worth it?

 
Reply to topic    creta classic club Forum Index » 1. Αμερικάνικα View previous topic
View next topic
Is Lock-Free worth it?
Author Message
emma



Joined: 12 Dec 2013
Posts: 78

Post Is Lock-Free worth it? Reply with quote
I've spent a bunch of time the past few weeks learning about lock-free and wait-free algorithms for super fast multi-threaded data structure access.

I've had two motivations for this. First, I wanted to vet the new SDL atomic API, and second I wanted to potentially increase the performance of the SDL event system.

In the course of learning about lockless programming, I've gained a healthy respect for people who are doing it correctly. It's incredibly tricky to get right, and even reviewed and published papers can have subtle bugs in them. There are a lot of subtle issues and ways multi-threaded lockless code can fail, especially on the XBox 360 where data ordering between CPUs is not guaranteed at all without expensive sync instructions.

All of this has made me wonder if it's a good idea to make a cross-platform atomic API available in the first place.
Sun Dec 14, 2014 4:44 pm View user's profile Send private message
emma



Joined: 12 Dec 2013
Posts: 78

Post Reply with quote
As you stated in your post "Is Lock-Free worth it?" I think that there are many ways for this.It is a good idea to make a cross-platform atomic API available in the first place.This lock is very easy to do once you know the proper method you are right that It is very tricky to get right, and even reviewed. So I liked the way you wrote this.
eSignature
Sun Dec 14, 2014 4:44 pm View user's profile Send private message
Free Forum






Post ForumsLand.com

 
Display posts from previous:    
Reply to topic    creta classic club Forum Index » 1. Αμερικάνικα All times are GMT
Page 1 of 1

 
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