This book by Martin Kleppmann is really good for learning distributed systems foundations [1]. Couple this with any OS textbook, I think you will be loaded for the bear.
[1] Designing Data-Intensive Applications:
https://www.oreilly.com/library/view/designing-data-intensiv...