Warning: Undefined array key "DOKU_PREFS" in /home/clients/a4e6fc1ce1761b72982b805de0f418c4/web/python/mesrecettespython/inc/common.php on line 2082
thread_lock [Les recettes Python de Tyrtamos]

Outils pour utilisateurs

Outils du site


thread_lock

Warning: Undefined array key -1 in /home/clients/a4e6fc1ce1761b72982b805de0f418c4/web/python/mesrecettespython/inc/html.php on line 1458

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
thread_lock [2008/04/16 09:00]
tyrtamos
thread_lock [2008/04/27 07:32]
tyrtamos
Ligne 46: Ligne 46:
 x = 0 x = 0
 n = 1000 n = 1000
-verrou = threading.Lock() 
  
 def fnadd() : def fnadd() :
Ligne 62: Ligne 61:
         verrou.release()         verrou.release()
  
 +verrou = threading.Lock()
 t1=threading.Thread(target=fnadd) t1=threading.Thread(target=fnadd)
 t2=threading.Thread(target=fnsub) t2=threading.Thread(target=fnsub)
Ligne 80: Ligne 80:
  
  
 +<html>
 +<head>
 +<style type="text/css">
 +<!--
 +body {background-image:url(fondcorps.jpg);}
 +-->
 +</style>
 +</head>
 +<body>
 +</body>
 +</html>
  
thread_lock.txt · Dernière modification: 2008/04/27 07:32 de tyrtamos