This command will create a coroutine based upon the function pointer specified. The function should accept no arguments, and return no value.
The first form of this command will allocate a stack of 1 MB.
The second form of this command will allocate a stack of the size specified in kilobytes, i.e. If you specify 1024, you will get 1 megabyte of stack. In addition, the stack size actually allocated will be rounded up to the next 64 KB boundary.
The Coroutine ID should be a number 1 to 1024 inclusive.
0 is reserved to identify the main process.
Take care when creating coroutines - remember that each coroutine will use up the amount of memory equivalent to the stacksize you specify when you create it. Try to keep the number of coroutines to the smallest number you can. |