Paralell execution in threads from gant (with calling ant targets)By admin, written on June 2, 2010 |
gant snippet |
- admin
- Email: uwarov@gmx.de
- Join date: 07-21-07
- Posts: 1
Rate it
Ad
Poll
Loading ...
Most popular search terms:
Stats
-
Since publication, this page was visited 144 time(s).
final randomWait = { id, time -> ant.echo (message : "Thread $id is sleeping for $time") for (int i in 0..5) { sleep time ant.echo (message : "Thread $id woke up" ) } ant.echo (message : "Thread $id is done") } target ( default: '' ) { for (int i in 10..1) { Thread.start { randomWait(i, i*20) } sleep 20 } sleep 2000 }
|
TAGS
|
|
RELATED
|
Pages
Posts
|
|
SOCIAL
|


















