摘要:
Lab: Multithreading Uthread: switching between threads 实现一个用户级线程,跟内核线程的切换没什么区别。只要上课听懂了,复制内核代码就行了 只贴关键代码 线程上下文 struct context { uint64 ra; uint64 sp; / 阅读全文
摘要:
Lab: Copy-on-Write Fork for xv6 实现xv6中的写时复制 Virtual memory provides a level of indirection: the kernel can intercept memory references by marking PTEs 阅读全文