GitBook: [master] one page modified

This commit is contained in:
CPol 2021-04-05 20:43:56 +00:00 committed by gitbook-bot
parent 18f70c38c5
commit e89de07f4a
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -29,16 +29,14 @@ def loose_comparison(queue, num):
print('plaintext: ' + plaintext + ', md5: ' + hash)
queue.put("done") # triggers program exit
def worker(queue, thread_i, threads):
for num in range(thread_i, 100**50, threads):
loose_comparison(queue, num)
def main():
procs = []
queue = Queue()
threads = cpu_count() // 2
threads = cpu_count() # 2
for thread_i in range(threads):
proc = Process(target=worker, args=(queue, thread_i, threads ))