3

使用Rust为RISC-V OS 实现自旋锁

 2 years ago
source link: https://www.jdon.com/58308
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

使用Rust为RISC-V OS 实现自旋锁

自旋锁是最基本的同步实现之一,也是实现操作系统时首先要考虑的组件之一。

本文将简要回顾自旋锁的基础知识,如何在 Rust 中为自制操作系统实现它,以及它相对于 C 语言的优势。

除非另有说明,所有代码示例都是用 Rust 编写的。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK