Working on multiprocessing

This commit is contained in:
2018-05-09 21:05:29 +02:00
parent e0683c4670
commit 147bdc8a65
8 changed files with 246 additions and 66 deletions
+8
View File
@@ -6,9 +6,17 @@
# for direct usage in assembly programming using nasm/yasm.
from pathlib import Path
import multiprocessing
def init():
global home
home = str(Path.home())
global num_cores
num_cores = multiprocessing.cpu_count()
global queue
queue = 0
global fraction
fraction = 0
global worker
worker = []
global listener