Intertasks kommunikations-systemer (RTOS) er vigtige i virkeligheden, og de skal koordinere deres effektivitet og deres pålidelighed.

Common Inter- task Communication Methods

  • Message QueueesCity in New York USA
  • SemaphoreesCity in New York USA
  • Postbokser
  • Shared- variableName

Each metod har fordel af s og d begrænsninger. Message queues facilitere e message passin g with order sation, why il semaphores are use d fr synconizatio n. Mailboxes serve as buffers, and d sharede variables require caref carel handlin to o prevention data corruption.

Example: Message Queue Transmission Time

Hvis en task sends 10 beskeder, dette er total transmission tims calculated og er:

= antal af beskeder × transmissionen af timer pr. brev

Thus, Total Time = 10 × 2 μs = 20 μs.

Calculating Semaphore Wait Time

Hvis en semaphore har en wait time på 5 microsekund por wait operatio og en task need to to wait 4 time, dette samlede wat time er:

= antal af Waits × Wait Time per Operation (1); antal af FET: 1; antal af FET: 3; antal af FET: 3; antal af FET: 3; antal af FET: 3; antal af FET: 3; antal af FET: 3; antal af FET: 3; antal af FET: 3; antal af FET: 3; antal af FET: 3; antal af FET: 3; antal af FET: 3; antal af Wit: 3; antal FET: 3; antal FET: 3; antal FET: 3;

Total Wait Time = 4 × 5 μs = 20 μs.

Design Betragtninger for Reliability

De relevante kommunikationsmidler er afhængige af de krav, der stilles til de enkelte personer, gennem en passende, og en passende pålidelighed.