UNIT 8 Processes and the Scheduler 进程与调度 学习目标 A. CPU cache 与Service time之间的关系 B. 分析应用程序使用CPU cache时的情况(CPU使用率与CPU cache命中率) C. 抢占 (根据优先级抢占) D 根据进程优先级顺序进行调度与排序 E. 监控内核和进程的性能 8.1 Characterizing prosess states 进程状态 查看进程状态: ps axo pid,comm,stat…
一.进程 process: executing program code(text section) data section containing global variables open files pending signals internal kernel data address space one or more threads of execution Processes, in effect, are the living result of running progra…
import time from multiprocessing import Process def run1(): for i in range(5): print("sunck is a good man") time.sleep(1) def run2(name, word): for i in range(8): print("%s is a %s man"%(name, word)) time.sleep(1) if __name__ == "…