Re: Multitasking 2 Problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

don cole wrote:
> 
> When running langwars in  Cooperative Multitasking Preview Release #2   .
> 
> 
> I get task_schedule() has not been declared.
> 
> I can't find it in any of the included files.
> 
> Don Cole
> SF
> 

Hi Don,

You have to use the batch file: lw.bat. Just clicking on the lw.ex isnt going to
work because the file type is associated with ex.exe, which does not have the
multitasking API.

In execute.e, you might want to change the constant TASK_ID_MAX from 1e14 to
9e15 for 90x more IDs to use before recycling occurs and routines start back to
1. You would think it would be ok to use the maximum atom value: 1e300, but
number accuracy in Euphoria is only good to about 15 digits, accuracy. Obviously
accuracy is important for keeping track of ID numbers.


Regards,
Vincent

----------------------------------------------
     ___	      __________      ___
    /__/\            /__________\    |\ _\
    \::\'\          //::::::::::\\   |'|::|
     \::\'\        //:::_::::_:::\\  |'|::|
      \::\'\      //::/  |::|  \::\\ |'|::|
       \::\'\    //::/   |::|   \::\\|'|::|
        \::\'\__//::/    |::|    \::\|'|::|
         \::\','/::/     |::|     \::\\|::|
          \::\_/::/      |::|      \::\|::|
           \::,::/       |::|       \:::::|
            \___/        |__|        \____|

 	                 .``.
		         ',,'

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu