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
    is that not just the workloop?


    No, its not just an executive loop. Its an OS that provides functions for relinquishing control back to a task management subsystem, where each "thread"s complete context is saved upon doing so. The functions are effectively $REGUSE fn () ... thus allowing the compiler full optimization across the call.

    Its cooperative in that there is no background preemtion mechanism that switches threads, rather each thread must relinquish control back to the OS on its own accord.

    It avoids all the resource consumption involved with true preemption, but still allows you to write linear threads.

Reply
  • cooperative multi-threading
    is that not just the workloop?


    No, its not just an executive loop. Its an OS that provides functions for relinquishing control back to a task management subsystem, where each "thread"s complete context is saved upon doing so. The functions are effectively $REGUSE fn () ... thus allowing the compiler full optimization across the call.

    Its cooperative in that there is no background preemtion mechanism that switches threads, rather each thread must relinquish control back to the OS on its own accord.

    It avoids all the resource consumption involved with true preemption, but still allows you to write linear threads.

Children
No data