rust-based-os-comp2022 icon indicating copy to clipboard operation
rust-based-os-comp2022 copied to clipboard

[2022开源操作系统训练营](https://learningos.github.io/rust-based-os-comp2022/)

Results 102 rust-based-os-comp2022 issues
Sort by recently updated
recently updated
newest added

https://github.com/YapingLius/RustText.git

note

https://github.com/zackhsw/rust-os-diary.git

note

Hi! 简单整理了一个在 macOS 用 Vagrant 搭建实验环境的文档, 感觉挺方便的, 用 mac 做实验的小伙伴可以参考~ https://github.com/eastfisher/rcore-assignment/blob/main/notes/setup_env_in_vagrant.md

note

第九节课视频中,再讲POS的原理和实现的时候,PID是进程标志符,一个TCB就代表一个应用,当我们在fork()时候会生成一个pid,一个进程对应一个pid,但一个应用可以对应有多进程吧,所以一个应用可以有多个pid么?所以这里讲的程序或者app,是否可以理解为对应的应该是OS中执行程序一次过程。

note

https://github.com/Guucat/rust-os

note

lab0 在 sbi.rs 中实现了 shutdown 方法来停机,该方法的代码如下: ```rust pub fn shutdown() -> ! { sbi_call(SBI_SHUTDOWN, 0, 0, 0); panic!("It should shutdown!"); } ``` 我理解正常情况下在执行完 sbi_call 后,程序已经停机,所以 panic! 是用于处理停机失败的情况的。但根据 lang_items.rs 中实现的 panic...

question

#[test] fn test_empty() { let res = "".parse::(); assert_eq!(res, Err(ParseClimateError::Empty)); assert_eq!(res.unwrap_err().to_string(), "empty input"); } #[test] fn test_short() { let res = "Boston,1991".parse::(); assert_eq!(res, Err(ParseClimateError::BadLen)); assert_eq!(res.unwrap_err().to_string(), "incorrect number of fields"); }...

question

全都记录在自己博客上,希望大家可以提点建议https://cherryyang05.github.io/categories/%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80/Rust/

note

https://github.com/LearningOS/rust-based-os-comp2022/issues/1

note