Task scheduling
From: Mark Sokos (engineer_comp_geek_at_yahoo.com)
Date: 08/26/03
- Previous message: Jürgen Querengässer: "storing some bytes in CMOS-RAM"
- Next in thread: Bernhard Roessmann: "Re: Task scheduling"
- Reply: Bernhard Roessmann: "Re: Task scheduling"
- Reply: Michael Schnell: "Re: Task scheduling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Aug 2003 10:49:28 -0700
I am attempting to take a project using an embedded controller and its
own proprietary operating system and port it to linux. One of the
features of this operating system is that every task gets a set
reschedule interval, and the operating system automatically schedules
the task to run every time this interval expires. Here's an example:
main () {
rsi(25); /* set reschedule interval to 25 time ticks (1/4 second)
*/
while(1) { /* forever loop */
/* ... do task stuff here ... */
pause(); /* put task to sleep until the next reschedule interval
*/
}
}
What this will do is run everything inside the forever loop every 250
milliseconds.
What's the best way to do this under linux?
- Previous message: Jürgen Querengässer: "storing some bytes in CMOS-RAM"
- Next in thread: Bernhard Roessmann: "Re: Task scheduling"
- Reply: Bernhard Roessmann: "Re: Task scheduling"
- Reply: Michael Schnell: "Re: Task scheduling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|