Re: Coding Problem (arbitrary thread sych)

2006-02-26 Thread peleme
Hi Kent, that's exactly the solution for my problem. Thanks a lot! Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Coding Problem (arbitrary thread sych)

2006-02-26 Thread Kent Johnson
peleme wrote: > The threads which arrives to the s function should wait for each other > until the last one. So A, B, and C executes the last function > 'together', while D executes it seperate. > I only know that three threads have to be in synch. Take a look at the Barrier patter in The Little B

Coding Problem (arbitrary thread sych)

2006-02-26 Thread peleme
Hi, Here is a code example to visualize my problem. -- import thread import threading from time import sleep def a(): print "exec a" sleep(1) def b(): print "exec b" sleep(4) def c()