<HTML><BODY>for example, I want to run two tasks ( using thread ), waiting while this tasks is end and after run  next several tasks<br>
How to do this using twisted ? Any example ?<br>
<br>
def task(n):<br>
&nbsp;&nbsp;&nbsp;&nbsp;sleep n<br>
<br>
1) 1,2 tasks begin  ( thread )<br>
2) waiting while all tasks is ends<br>
3) ...<br>
4) run 3,4,5,6,7 tasks ( thread )<br>
5) waiting while all tasks is ends<span id="_plain_text_marker"></span><br></BODY></HTML>