#Fichier thread_1.py
import _thread
import time

print("Début du programme")

def processus_1():
    i=0
    while i <3:
        print("11111111")
        time.sleep(0.5)
        i += 1

def processus_2():
    i=0
    while i <3:
        print("22222222")
        time.sleep(0.5)
        i += 1

#Création de deux instances thread
_thread.start_new_thread(processus_1, ())
_thread.start_new_thread(processus_2, ())

print("Fin du programme")

while True:
    pass



