随笔分类 - 多进程
摘要:进程概念 存在磁盘的叫可执行程序,活动在内存空间的才叫进程。 进程状态 进程控制块PCB Linux的进程表示 进程调度 调度队列 调度程序 上下文切换 进程创建 进程间通信
阅读全文
摘要:进程调度 定义 调度过程 调度问题和指标 常用调度算法 抢占优先级概念 优先级 调度策略 进程分类 前台进程 shell运行的程序 后台进程 shell运行带 & 的程序 查看后台程序,jobs killall exe 守护进程
阅读全文
摘要:定义 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
阅读全文
摘要:定义 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
阅读全文