Commit f72f2144 authored by liguangyu06's avatar liguangyu06
Browse files

增加多线程

parent a9c9f8ce
...@@ -115,7 +115,7 @@ def c_pur(): ...@@ -115,7 +115,7 @@ def c_pur():
# 创建多线程 # 创建多线程
threads = [] threads = []
for _ in range(20): for _ in range(10):
t = threading.Thread(target=c_pur) t = threading.Thread(target=c_pur)
threads.append(t) threads.append(t)
t.start() t.start()
......
...@@ -115,7 +115,7 @@ def c_pur(): ...@@ -115,7 +115,7 @@ def c_pur():
# 创建多线程 # 创建多线程
threads = [] threads = []
for _ in range(10): for _ in range(5):
t = threading.Thread(target=c_pur) t = threading.Thread(target=c_pur)
threads.append(t) threads.append(t)
t.start() t.start()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment