InterviewStack.io LogoInterviewStack.io

Language-Level Concurrency and Multithreading Questions

Per-language and per-runtime concurrency: the threading and async APIs each language provides (goroutines and channels in Go, threads and executors in Java, async/await runtimes, C++ std::thread and atomics), each language's memory model, and the idioms for coordinating shared state safely in that language. Covers choosing and using a language's concurrency primitives correctly; OS-level scheduling, synchronization theory, and deadlock internals live in Operating Systems & Systems Programming.

HardTechnical
21 practiced

Implement in Python a thread-safe per-user LRU cache class to store up to N recent feature vectors per user with O(1) get/put. Discuss concurrency strategies (locks vs lock-free), memory limits, eviction behavior, and how you'd unit-test and load-test this component in production.

That is every published Language-Level Concurrency and Multithreading question for Machine Learning Engineer so far. Browse the other topics in this category, or practice this one interactively.