Update BBP multithreading.py

This commit is contained in:
Mateusz779 2021-08-25 16:50:24 +02:00 committed by GitHub
parent db15ff11ac
commit 3f8d74068a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@
from decimal import Decimal from decimal import Decimal
from decimal import getcontext from decimal import getcontext
import time import time
from multiprocessing.dummy import Pool as Pool #pip3 install multiproces from multiprocessing.dummy import Pool as Pool #pip3 install multiprocess
from tqdm import tqdm #pip3 install tqdm from tqdm import tqdm #pip3 install tqdm
threads=4 #threads number threads=4 #threads number
@ -53,4 +53,4 @@ for i in sort:
print(Decimal(result)) print(Decimal(result))
print("\n\n") print("\n\n")
print("Elapsed time: ",end - start,"s\n") print("Elapsed time: ",end - start,"s\n")