|
|
|
Thread instructionlist
command. It creates a new Thread, which is a unit of parallel execution of Logo code.
Example:
repeat 5 [ Thread (Sentence [local "i i=] 1000*repcount [ repeat 10 [print repcount+i waitms random 100] ]) ] |
5001 4001 3001 2001 1001 3002 1002 3003 2002 5002 4002 3004 1003 5003 1004 1005 2003 2004 4003 3005 5004 5005 1006 2005 5006 3006 4004 5007 1007 1008 3007 2006 5008 4005 1009 5009 2007 3008 3009 1010 2008 5010 4006 3010 4007 2009 4008 2010 4009 4010 |
|
|
|