www.digitalmars.com         C & C++   DMDScript  

c++.announce - Preemptive multitasker MTask version 2.01

reply Hugo Etchegoyen <hee fibertel.com.ar> writes:
I have just finished version 2.01. I think timer interrupts are handled 
properly now, including the possibility to have a timer callback (just 
one callback, I preferred to keep it simple). Changes from 2.00 are:

* InitMTask() defines the timer interrupt period, from 1 to 55 msecs.
* SetHandler() panics if you try to trap IRQ0. You were not supposed to 
do it anyway, but it is enforced now.
* There is a new function, GetTime(), that returns the number of 
milliseconds elapsed since InitMTask().
* There is a new function DelayUntil(), intended for periodic tasks, 
that puts a task to sleep until some deadline time in the future.
* There is a new function SetTimerCallback() for installing a callback 
that will be called from the timer interrupt.

I also added a new test program (ptime.exe) for exercising the new 
features. Internally little has changed in the kernel, except 
programming the timer frequency and the fact that times are now measured 
in millisecs instead of ticks.
Sep 26 2003
parent reply jnewberry oceaneering.com writes:
So where can I download MTask 2.01?


In article <3F74BEBF.9070704 fibertel.com.ar>, Hugo Etchegoyen says...
I have just finished version 2.01. I think timer interrupts are handled 
properly now, including the possibility to have a timer callback (just 
one callback, I preferred to keep it simple). Changes from 2.00 are:

* InitMTask() defines the timer interrupt period, from 1 to 55 msecs.
* SetHandler() panics if you try to trap IRQ0. You were not supposed to 
do it anyway, but it is enforced now.
* There is a new function, GetTime(), that returns the number of 
milliseconds elapsed since InitMTask().
* There is a new function DelayUntil(), intended for periodic tasks, 
that puts a task to sleep until some deadline time in the future.
* There is a new function SetTimerCallback() for installing a callback 
that will be called from the timer interrupt.

I also added a new test program (ptime.exe) for exercising the new 
features. Internally little has changed in the kernel, except 
programming the timer frequency and the fact that times are now measured 
in millisecs instead of ticks.

Jeff Newberry
Oct 22 2004
parent reply "Walter" <newshound digitalmars.com> writes:
<jnewberry oceaneering.com> wrote in message
news:clbcu1$dtc$1 digitaldaemon.com...
 So where can I download MTask 2.01?

www.digitalmars.com/user/mtask.html
Oct 22 2004
parent reply jnewberry oceaneering.com writes:
I don't see any download links on this html page.

In article <clbl2p$nbi$1 digitaldaemon.com>, Walter says...
<jnewberry oceaneering.com> wrote in message
news:clbcu1$dtc$1 digitaldaemon.com...
 So where can I download MTask 2.01?

www.digitalmars.com/user/mtask.html

Oct 25 2004
parent "Walter" <newshound digitalmars.com> writes:
Sorry about that. There's one now.

<jnewberry oceaneering.com> wrote in message
news:clj27k$2bbg$1 digitaldaemon.com...
 I don't see any download links on this html page.

 In article <clbl2p$nbi$1 digitaldaemon.com>, Walter says...
<jnewberry oceaneering.com> wrote in message
news:clbcu1$dtc$1 digitaldaemon.com...
 So where can I download MTask 2.01?

www.digitalmars.com/user/mtask.html


Oct 25 2004