Where can I find content to practice Multithreading and concurrency system design questions, I've one coming up and need some examples or sites to practice. Something for confluent kind of company.
What type of concurrency model you wanna learn?
Could you elaborate on resources for this?
There r 7 concurrency models, check here https://en.m.wikipedia.org/wiki/Concurrency_(computer_science)#Models
I haven’t been asked questions like that since my phone interview with Spotify in 2013.
Both Netflix and Pure Storage asked this type of question last month when I interviewed with them.
That’s good news for you I guess... Concurrency is easy and fun. Was your Netflix interview with a java team?
There are four models of concurrency that I know of but apparently there are at least 7: - **shared state concurrency model** (locks, semaphores, condition variables, monitors, barriers, other synchronization primitives, atomic variables, concurrent data structures) - **message passing concurrency model** (actor model) - **dataflow concurrency model** (futures, promises, completable futures etc.) - **software transactional memory model** (atomic scopes, synchronized scopes... ACID stuff, transactional refs, persistent data structures)
I have found this tutorial very useful for multithreading in cpp: https://thispointer.com/c-11-multithreading-part-1-three-different-ways-to-create-threads/
Leetcode added concurrency related problems couple of weeks ago.
Only 4 easy ones