I already read this topic, but when I try to run this code, I will a little delta
import threading
from threading import Thread
from cryptography.fernet import Fernet
import time
from multiprocessing import Process
def create_key1():
print(time.time())
def create_key2():
print(time.time())
if __name__ == '__main__':
Process(target = create_key1()).start()
Process(target = create_key2()).start()
Thread(target = create_key1()).start()
Thread(target = create_key2()).start()
if we comment Process and run the code, we will see the result :
1501843580.508508
1501843580.5089302
if we comment Thread and run the code, we will see the result :
1501843680.4178944
1501843680.420028
we got delta at the same situation, my question is how to run threads at the same time, be cause I want check generation of the key in cryptography python library. I want to check what will if I try to generate two keys at same time, will they same or not.