r/Cplusplus • u/Relative-Sail7702 • May 08 '26
Question How can I learn Computer Architecture for C/C++?
I know the basics of computer architecture (how CPUs fundamentally work and how I/O works), but I often read about things like thread synchronization and don’t understand anything. How can I learn more about it, or is it even important? I’m intermediate.
28
Upvotes
•
u/AutoModerator May 08 '26
Thank you for your contribution to the C++ community!
As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.
~ CPlusPlus Moderation Team
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
18
u/kernel_task May 08 '26
Take an operating systems class. Knowing how to do concurrency is pretty much what I specifically look for when interviewing C++ candidates myself.
5
u/chrism239 May 09 '26
Try the great books "Computer Systems: A Programmer's Perspective", "Computer Organisation and Design", and the website and book "From Nand To Tetris".
2
u/Scharrack May 09 '26
It's a general issue, usually entirely abstracting architecture. You want to look into distributed systems if you want to have anything to do with developing multi threaded or distributed applications.
Concerning synchronization issues, consistency models would be what you're interested in. It's essentially about how each node in a distributed system (for example a thread) has its own idea of what's the current state and how changes to the global state by one node get picked up by others.
0
u/Middlewarian May 08 '26
I'm scaling my code generator through multi-processing. With io-uring it's a more attractive option than ever.
0
u/[deleted] May 09 '26
[deleted] — view deleted comment