This commit is contained in:
martin 2024-02-28 16:11:54 +01:00
parent 0d173b8b03
commit aa8130ee78

View File

@ -356,13 +356,14 @@ def simulate_craw_and_calendar(thread, nSimulations):
n = sys.maxsize
n = 2500
# n = 2500
pool = Pool()
result = {}
answer = {}
threads = cpu_count()
threads = 2
threads -= 2
# threads = 2
for cpu in range(threads):
result[cpu] = pool.apply_async(simulate_craw_and_calendar, args=(f'thread_{cpu}', n,))