List process by port number netstat -ano | findstr 8080 Proto Local Address Foreign Address State PID TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 29848 -a – Displays all connections and listening ports. -o – Displays the owning process ID associated with ea…
1.fork进程:(1)在windows系统中不可以用fork来创建进程,linux可以,但是创建大量进程使用很不方便. 2.Process进程: import multiprocessing as ms import time import os class MyProcess(ms.Process): def run(self): print("这是进程!", os.getpid()) def __del__(self): print("删除成功!") def…