python-多线程

123 阅读1分钟

1.任务数>cpu数 是并发 任务数 <= 是并行 多任务可以通过延迟来控制那个先执行

image.png

image.png 多个线程之前是共享全局变量的

image.png