Author Topic: Webbotlib Scheduler: need more detail  (Read 2018 times)

0 Members and 1 Guest are viewing this topic.

Offline klimsTopic starter

  • Robot Overlord
  • ****
  • Posts: 190
  • Helpful? 2
Webbotlib Scheduler: need more detail
« on: November 21, 2010, 04:46:36 PM »
I'm in need of some more detail about how the webbotlib scheduler works.

What I would like to know is whether the scheduler is somehow interrupt driven and runs in the background to the appControl loop, or if it actually takes control of the program and just run line for line till it is done then gives back control.

I have been using the schedulers as a type of multi-threading, using it to run and kill threads as they are needed. I would like to be able to give critical threads higher priority and other threads lower priority. Is this at all possible?



Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: Webbotlib Scheduler: need more detail
« Reply #1 on: November 21, 2010, 06:30:26 PM »
The scheduler allows you to run a piece of code after a given time has elapsed. The task is queued so that your foreground app carries on running and is then interrupted to run the scheduled task.

Is it a pre-emptive multi-tasking kernel? No.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

 


Get Your Ad Here

data_list