Update BBP multithreading.py
This commit is contained in:
parent
db15ff11ac
commit
3f8d74068a
@ -4,7 +4,7 @@
|
||||
from decimal import Decimal
|
||||
from decimal import getcontext
|
||||
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
|
||||
|
||||
threads=4 #threads number
|
||||
@ -53,4 +53,4 @@ for i in sort:
|
||||
|
||||
print(Decimal(result))
|
||||
print("\n\n")
|
||||
print("Elapsed time: ",end - start,"s\n")
|
||||
print("Elapsed time: ",end - start,"s\n")
|
||||
|
Loading…
Reference in New Issue
Block a user