hi...
anyone know how to implement a threading system into real-time software for embedded device?
is there any portable real-time thread API that I can use?
Thanks
hi...
anyone know how to implement a threading system into real-time software for embedded device?
is there any portable real-time thread API that I can use?
Thanks
Mostly I just use an embedded operating system for the processor of choice.
Tasks on an embedded OS have most of the same properties (eg access to shared memory) that threads do on standard desktop operating systems.
Explain more of what you want.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
well eventually I wanted to implement the thread "user thread" not real-time operating sytem thread API....
and I'm facing difficulty because most thread API allow them to save their satate or context..... however the embedded PIC microcontroller have very limited amount of memory and stack ability........
therefore I'm finding alternative if there any thread API that I can port to this particular device.....
Well if you're that short of memory, then why on earth do you need threads?
Threads imply an operating system and a thread API, both of which take up a fair amount of memory.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
In a setup like this, you would be better off with an executive loop/state machine design.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.