Cosa c'è di così diverso in RTOS rispetto alla normale programmazione?

4

I programmi classici eseguono un ciclo con ISR prioritari. In che modo RTOS lo fa diversamente?

    
posta michael mathiasmeier 12.09.2017 - 01:26
fonte

1 risposta

6

Non trattando tutte le routine di servizio di interruzione ( ISR ) come massima priorità.

The kernel of an RTOS is preemptible where as a GPOS kernel is not preemptible. This is a major issue when it comes to serving high priority process/threads first. If kernel is not preemptible, then a request/call from kernel will override all other process and threads. For example:- a request from a driver or some other system service comes in, it is treated as a kernel call which will be served immediately overriding all other process and threads. In an RTOS the kernel is kept very simple and only very important service requests are kept within the kernel call. All other service requests are treated as external processes and threads. All such service requests from kernel are associated with a bounded latency in an RTOS. This ensures highly predictable and quick response from an RTOS.

circuitstoday.com : GPOS versus RTOS for an Embedded System

Le persone faranno un sacco di problemi perché le cose sono "time critical" ma non c'è davvero niente che non sia di importanza temporale. Quello che fa realmente un sistema operativo in tempo reale (RTOS) è eliminare parte della natura casuale della programmazione in un sistema operativo generico (GPOS).

    
risposta data 12.09.2017 - 08:20
fonte