September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,27 +1,32 @@
|
|||
import extensions.
|
||||
import system'routines.
|
||||
import extensions'threading.
|
||||
import extensions;
|
||||
import system'routines;
|
||||
import extensions'threading;
|
||||
import system'threading;
|
||||
|
||||
extension $op
|
||||
static sync = new object();
|
||||
|
||||
extension op
|
||||
{
|
||||
sleepSort
|
||||
[
|
||||
self forEach(:n)
|
||||
[
|
||||
threadControl start:
|
||||
[
|
||||
var a := 1000 * n.
|
||||
sleepSort()
|
||||
{
|
||||
self.forEach:(n)
|
||||
{
|
||||
threadControl.start(()
|
||||
{
|
||||
threadControl.sleep(1000 * n);
|
||||
|
||||
threadControl sleep(1000 * n).
|
||||
console printLine(n).
|
||||
].
|
||||
]
|
||||
]
|
||||
lock(sync)
|
||||
{
|
||||
console.printLine(n)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
program =
|
||||
[
|
||||
'program'arguments skipping:1; selectBy(%"convertorOp.toInt"); toArray; sleepSort.
|
||||
public program()
|
||||
{
|
||||
program_arguments.skipping:1.selectBy(mssgconst toInt<convertorOp>[0]).toArray().sleepSort();
|
||||
|
||||
console readChar.
|
||||
].
|
||||
console.readChar()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue