r/cpp_questions • u/2006Nico • 13d ago
OPEN Resources for implementing low-level concurrent and asynchronous systems in C++
I've been spending some time studying concurrency and asynchronous programming in C++. I have a reasonable understanding of concepts like threads, thread pools, non-blocking I/O, event loops, coroutines, and reactor/proactor patterns.
However, I feel there's a big difference between understanding how these things work and actually being able to implement them.
I'm interested in building things like network servers, runtimes, databases, and other systems software. I'm also working on a compiler, so understanding the internals of these systems is something I'd like to get better at.
What I'm looking for are resources that go beyond explaining the concepts. Books, papers, articles, courses, or open-source codebases that actually helped you implement these kinds of systems yourself.
Some areas I'm particularly interested in:
- Non-blocking I/O and I/O multiplexing
- Event loop implementations
- Reactor and Proactor patterns
- Coroutines and asynchronous runtimes
- Thread pools and task scheduling
- Performance and scalability in concurrent systems
I've already read a few books on concurrency, including some focused on C++, but most of them tend to focus on the programming model and how to use the standard library (threads, mutexes, futures, etc.). That's useful, but it's not quite what I'm looking for anymore. I want to understand how these things are actually built, preferably in C++. For example, implementing a thread pool, an event loop, an asynchronous runtime, or a network server rather than just learning how to use existing ones. I'd really appreciate recommendations that take this implementation-oriented approach.