Task scheduling

From: Mark Sokos (engineer_comp_geek_at_yahoo.com)
Date: 08/26/03

  • Next message: Bernhard Roessmann: "Re: Task scheduling"
    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?


  • Next message: Bernhard Roessmann: "Re: Task scheduling"

    Relevant Pages

    • Re: text file saved in COM format..
      ... But Windoze ... A more sophisticated operating system won't bother doing file ... Linux is ready for the desktop! ... Maybe a bit of a hassle for the newbie, but that's what keeps the user space ...
      (microsoft.public.windowsxp.general)
    • Re: Getting people into Linux
      ... it also seems to me that no other operating system has put ... If Linux wants to take a real run at other OS es, ... I have had the opportunity to teach 3 or 4 people how to use computers ... primarily marketing companies that spend a great deal of money making ...
      (Fedora)
    • Re: lost install CD while playing freesbee
      ... > love my computer and its operating system". ... > to communicate in any way. ... worshipped in its prehistorical form by every Linux fanatic. ... > use a PERL script than start VI. ...
      (alt.linux)
    • Muckrosoft in Shambles, AVOID Vista and 7, CHOOSE - Macintosh or LInux - the time is NOW.
      ... Microsoft's internal disorganziation, shoddy operating system software ... Macintosh and Linux are. ... A NOTE on the "Bill and Melinda Gates Foundation and their ... the "City of Lights" in the third world, where oil fires are burning ...
      (alt.politics)
    • Re: Is there a messenger service out there?
      ... >>Of course they can call it an operating system. ... >>support for every digital camera out there, ... but Linux is free. ... And for any company selling opperating systems, ...
      (alt.linux)