摘要: 定义 fork #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <stdlib.h> int main(int argc, char *argv[]) { pid_t fpid; int count = 0 阅读全文
posted @ 2022-05-02 06:07 starc的miao 阅读(29) 评论(0) 推荐(0)
摘要: 定义 PCB task_struct PID #include <stdio.h> #include <unistd.h> // pid_t getpid(void) #include <pthread.h> // pid_t int main(int argc, char *argv[]) { p 阅读全文
posted @ 2022-05-02 04:56 starc的miao 阅读(41) 评论(0) 推荐(0)