No, It is not possible with microcontrollers
Try using a RTOS
Is that possible for a PIC microcontroller work in multitasking?
Which mean that do 2 job in the same time?
I think u can use timer interrupts for dividing total time for the 2 jobs ie u can give one job in interrupt routine ....
Any way, u can't do same job at the same time...
Is that possible for a PIC microcontroller work in multitasking?
Which mean that do 2 job in the same time?
No, It is not possible with microcontrollers
Try using a RTOS
Normal Micro-controllers does not support this. Go for controllers that support RTOs
Hello!
There were already a few threads saying it's not possible, but in fact it _IS_ possible
to do multitasking with any CPU.
If it were not possible with a microcontroller, then it would not be possible
either with an RTOS. There is no magic in an RTOS beside the fact that it
does a lot of work for you.
RTOS are capable of many things that even controllers cannot do. Its only assumption that controllers can do multitasking based on our knowledge. but in reality we need to see practical constraint that controller cannot handle.
My simple question is can you run two threads simultaneously on a controller and measure the execution of each of them.
RTOS are capable of many things that even controllers cannot do.
Then why are RTOs in market. can you tell me how to run 2 parallel threads in 8051 simulataneously. with the least context switch or setting stack size or priority other than manufacturer defined for controller, or inheritance property or real multitasking are difficult in 8051. And whatever pumpkin software you are referring are not easily available all over the world. You cannot rule out the truth so easily just because you are not using/ or not used RTOS anytime or at least in your project. RTOS are capable of many things that even controllers cannot do. Its only assumption that controllers can do multitasking based on our knowledge. but in reality we need to see practical constraint that controller cannot handle.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?