!7 sclass TestQ2 > DynSingleFunctionWithPrintLog { transient new L queues; int n = 10; void start { for i to n: queues.add(new Q2); } void doIt() { for (final Q2 q : queues) q.add(r { sleep(random(4000)); print("I am " + hashCode(q)); sleepSeconds(4); }); } }