Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Concurrent-computing/Forth/concurrent-computing.fth
Normal file
17
Task/Concurrent-computing/Forth/concurrent-computing.fth
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
require tasker.fs
|
||||
require random.fs
|
||||
|
||||
: task ( str len -- )
|
||||
64 NewTask 2 swap pass
|
||||
( str len -- )
|
||||
10 0 do
|
||||
100 random ms
|
||||
pause 2dup cr type
|
||||
loop 2drop ;
|
||||
|
||||
: main
|
||||
s" Enjoy" task
|
||||
s" Rosetta" task
|
||||
s" Code" task
|
||||
begin pause single-tasking? until ;
|
||||
main
|
||||
Loading…
Add table
Add a link
Reference in a new issue