![](https://img-blog.csdnimg.cn/20210730162419425.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
MIT 6.S081 Lab
麻省理工的OS课程,要求编码调试能力强悍,后续我会不上的剩余的lab
lincs_
分布式系统、区块链、机器学习
展开
-
MIT 6.S081 Lab: Xv6 and Unix utilities
sleep.c 1 #include "kernel/types.h" 2 #include "kernel/stat.h" 3 #include "user/user.h" 4 5 int 6 main(int argc, char *argv[]) 7 { 8 9 if (argc <= 1) { 10 fprintf(2, "usage: sleep <ticks> \n"); 11 exit(1);.原创 2020-11-04 22:58:55 · 1166 阅读 · 0 评论 -
MIT 6.S081 Lab: system calls
user.hstruct stat;struct rtcdate;// system callsint fork(void);int exit(int) __attribute__((noreturn));int wait(int*);int pipe(int*);int write(int, const void*, int);int read(int, void*, int);int close(int);int kill(int);int exec(char*, char.原创 2020-11-21 16:01:52 · 914 阅读 · 9 评论