Working on multiprocessing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user