C ++ Sync Recommendations

Does anyone know of a decent link for C ++ sync issues? I think of something that resembles the C ++ FAQ lite (and FQA lite), but with regard to concurrency, blocking, streaming, performance issues, recommendations when locks are needed, and when not, for working with a multi-threaded library code that you cannot control, etc. I don’t care about the internal problems of how different types of locks can be implemented, etc., I just use boost to do this.

I am sure that there are many good books, I would prefer something (preferably online) that I can use as goto when a question or problem arises. I am not really new to this, so I would like to get a short link to all the types of situations that may appear when writing multithreaded libraries that other multithreaded libraries use.

how

  • When is it best to have one large padlock protecting a bunch of data and a bunch of small padlocks protecting every piece of data? (what are the costs associated with having a large number of locks? Costs for acquiring resources? Costs for blocking time?)

  • What is the performance when clicking on something in the queue, and another thread enters the queue and processes this data in the original thread?

  • Are there any simple idioms to make sure everything works when you're not so worried about performance?

Anyway, I just want to know if there are decent links that people use.

+4
source share
1 answer

I would recommend two resources:

+10
source

All Articles