Threading, thread safety, locking. atomics etc


#1

Looks like i need to learn a bunch of this stuff, especially in relation to audio DSP. Can anyone recommend resources? I don’t mind paying for a book or 2 even.


#2

http://preshing.com/archives/
http://www.rossbencina.com/code/real-time-audio-programming-101-time-waits-for-nothing



#3

thank you very much!!  that'll keep me busy for a bit :D


#4

Timur's talk at cppcon introduced some of the problems involved pretty well...

https://youtu.be/boPEO2auJj4


#5

yeah, that's why i asked the question :)

Thanks Timur!  


#6

There's the 'atomic weapons' talk by Herb Sutter as well, if you've not seen that.  


#7

ah cheers, yeah will def check it!


#8

You should check out the book C++ Concurrency in Action by Anthony Williams. I just started reading it and it seems to be a very good book with clear explanations. I'm really enjoying it. It covers all of this stuff, and uses the C++ 11 standard. It'll probably be the best resource for learning all of this. 


#9

Another great talk by Herb Sutter specifically on writing lock-free structures: "Lock-Free Programming (or, Juggling Razorblades)"

https://www.youtube.com/watch?v=c1gO9aB9nbs