This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Multithread with 8051

Hi there,

Does anyone know if it's possible to rum multiple threads on 8051 mocrocontroller?

Thank you.

Parents
  • cooperative multi-threading

    Yes, it's the preemption that's the problem, and that largely because of the secondary effects of the way the stack is (and should be) handled for efficiency's sake.

    See, for example, the Salvo RTOS from Pumpkin.

    http://www.pumpkininc.com/

    Take a close look at the restrictions those OS-looking macros, and you'll see that they're really just calling void (void) functions from the top level -- the workloop, as Erik puts it, but without having to hand-code it all. This allows the compiler to build a call tree and overlay memory usage as usual.

    If you want something preemptive, there's CMX RTX, Keil's RTX, uCOS-II, and others.

Reply
  • cooperative multi-threading

    Yes, it's the preemption that's the problem, and that largely because of the secondary effects of the way the stack is (and should be) handled for efficiency's sake.

    See, for example, the Salvo RTOS from Pumpkin.

    http://www.pumpkininc.com/

    Take a close look at the restrictions those OS-looking macros, and you'll see that they're really just calling void (void) functions from the top level -- the workloop, as Erik puts it, but without having to hand-code it all. This allows the compiler to build a call tree and overlay memory usage as usual.

    If you want something preemptive, there's CMX RTX, Keil's RTX, uCOS-II, and others.

Children