Shop OBEX P1 Docs P2 Docs Learn Events
Does the Propeller require a RTOS — Parallax Forums

Does the Propeller require a RTOS

LoopyBytelooseLoopyByteloose Posts: 12,537
edited 2009-10-21 11:32 in Propeller 1
It seems that the Propeller in hardware and firmware provides the equivalent of a Real Time OS with 8 slots (the cogs of course). Would you all agree with that or does the Propeller need one?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ain't gadetry a wonderful thing?

aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan

Comments

  • StefanL38StefanL38 Posts: 2,292
    edited 2009-10-20 10:36
    no - a operating systems provides functions like load and save files, start and stop tasks etc.

    you can do this with the prop but you need more than just the cogs and the spin-compiler ITSELF for that
    best regards

    Stefan
  • mctriviamctrivia Posts: 3,772
    edited 2009-10-20 14:20
    i disagree. an RTOS is not needed. the cogs give you start, and stop tasks. which is the bigest help that an rtos gives you with single core micros. load and save files really is not necessary and can be very easily done with the addition of fsrw object.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-10-20 15:54
    No, an RTOS is not needed. Without interrupts, preemptive task-switching would be nearly impossible to implement anyway. OTOH, within individual cogs, cooperative multitasking (i.e. coroutines) is a cinch to implement using the JMPRET instruction.

    -Phil
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2009-10-21 11:32
    RTOS don't really need files. In fact, controlling electro-mechanical devices may really get bogged down by having such a large, high overhead system.

    RTOS manage timing in a deterministic fashion (at least 'hard' RTOS do).· The primary feature is that multiple tasks are done.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ain't gadetry a wonderful thing?

    aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan

    Post Edited (Loopy Byteloose) : 10/24/2009 6:00:38 AM GMT
Sign In or Register to comment.