When do we use polling method and when do we use interrupts based method in RTOS?
Hey guys so when it comes to managing tasks in real-time operating systems (RTOS), I studied from an article that
polling
is like constantly asking, 'Are we there yet?' and Interrupts
, however, are like someone tapping you on the shoulder to say, 'We've arrived!' when driving a car, Lol.
But, when do we use polling method and when do we use interrupts based method. Can you think of times when you might want to do both at once? @Middleware & OS
@Priyanka Singh @Rémi @Navadeep @Umesh Lokhande @Computing Lead @FW Lead3 Replies
Polling is good for predictable tasks, while interrupts are ideal for urgent events. Combining both methods can balance the efficiency in your real-time system. But it's best to know how to prioritize one over another.
Hmm, thanks @Joseph Ogbonna , my prioritization would be based on my tasks i think
based on the application you are working on and the task at hand