摘要:
一、开启进程的两种方式 方式一: # 方式一:使用函数开启进程 from multiprocessing import Process import time def task(x): print('%s is running' % x) time.sleep(1) print('%s is don 阅读全文
摘要:
1. 操作系统的历史 第一代计算机: 特点: a. 在一定的时间内,程序员独享整个计算机的资源 b. 没有操作系统的概念, 直接操作的是硬件设备 缺点: a. 浪费计算机资源,一个时间段内只有一个人用。 b. 同一时刻只有一个程序在内存中,被cpu调用执行,比方说10个程序的执行,是串行的 第二代计 阅读全文