Real-Time Scheduling

Introduction (เคชเคฐเคฟเคšเคฏ)

เค…เคฌ เคคเค• เคนเคฎเคจเฅ‡ เคœเฅ‹ scheduling เคชเคขเคผเฅ€ (FCFS, SJF, Round Robin), เค‰เคจเคฎเฅ‡เค‚ focus efficiency เคชเคฐ เคฅเคพเฅค

เคฒเฅ‡เค•เคฟเคจ เค•เฅเค› systems เคเคธเฅ‡ เคนเฅ‹เคคเฅ‡ เคนเฅˆเค‚ เคœเคนเคพเค time เคธเคฌเคธเฅ‡ important factor เคนเฅ‹เคคเคพ เคนเฅˆเฅค

เคเคธเฅ‡ systems เคฎเฅ‡เค‚ task เค•เฅ‹ deadline เค•เฅ‡ เค…เค‚เคฆเคฐ complete เค•เคฐเคจเคพ เคœเคฐเฅ‚เคฐเฅ€ เคนเฅ‹เคคเคพ เคนเฅˆ โ€”
เค‡เคจเฅเคนเฅ‡เค‚ Real-Time Systems เค•เคนเคพ เคœเคพเคคเคพ เคนเฅˆเฅค

Real-Time Scheduling เค•เฅเคฏเคพ เคนเฅ‹เคคเคพ เคนเฅˆ

Real-Time Scheduling เคตเคน technique เคนเฅˆ เคœเคฟเคธเคฎเฅ‡เค‚ processes (tasks) เค•เฅ‹ เค‡เคธ เคคเคฐเคน schedule เค•เคฟเคฏเคพ เคœเคพเคคเคพ เคนเฅˆ เค•เคฟ เคตเฅ‡ เค…เคชเคจเฅ‡ เคจเคฟเคฐเฅเคงเคพเคฐเคฟเคค เคธเคฎเคฏ (deadline) เค•เฅ‡ เค…เค‚เคฆเคฐ complete เคนเฅ‹ เคœเคพเคเคเฅค

Simple Definition

Real-Time Scheduling เคเค• scheduling method เคนเฅˆ เคœเคฟเคธเคฎเฅ‡เค‚ tasks เค•เฅ‹ time constraints (deadline) เค•เฅ‡ เค…เคจเฅเคธเคพเคฐ execute เค•เคฟเคฏเคพ เคœเคพเคคเคพ เคนเฅˆเฅค

Key Concept (เคธเคฌเคธเฅ‡ เคœเคฐเฅ‚เคฐเฅ€)

deadline miss = system failure

เคฏเคพเคจเฅ€ เค…เค—เคฐ task เคธเคฎเคฏ เคชเคฐ complete เคจเคนเฅ€เค‚ เคนเฅเค†, เคคเฅ‹ system fail เคฎเคพเคจเคพ เคœเคพเคเค—เคพ

Types of Real-Time Systems

1. Hard Real-Time System

  • Deadline miss เค•เคฐเคจเคพ allowed เคจเคนเฅ€เค‚ เคนเฅˆ
  • Time strictly follow เค•เคฐเคจเคพ เคชเคกเคผเคคเคพ เคนเฅˆ

Example:

  • Airbag system in car
  • Medical life support system

2. Soft Real-Time System

  • Deadline miss เคนเฅ‹ เคธเค•เคคเฅ€ เคนเฅˆ, เคฒเฅ‡เค•เคฟเคจ performance degrade เคนเฅ‹เคคเฅ€ เคนเฅˆ

Example:

  • Video streaming
  • Online gaming

Working (เค•เฅˆเคธเฅ‡ เค•เคพเคฎ เค•เคฐเคคเคพ เคนเฅˆ)

  • Tasks เค•เฅ‹ priority เคฆเฅ€ เคœเคพเคคเฅ€ เคนเฅˆ (deadline เค•เฅ‡ เค†เคงเคพเคฐ เคชเคฐ)
  • เคœเฅ‹ task เค•เฅ€ deadline เคชเคนเคฒเฅ‡ เคนเฅˆ, เค‰เคธเฅ‡ เคชเคนเคฒเฅ‡ execute เค•เคฟเคฏเคพ เคœเคพเคคเคพ เคนเฅˆ
  • CPU scheduling deadline เค•เฅ‡ เคนเคฟเคธเคพเคฌ เคธเฅ‡ เคนเฅ‹เคคเคพ เคนเฅˆ

Important Algorithms (Conceptual)

  • Earliest Deadline First (EDF)
  • Rate Monotonic Scheduling (RMS)

(Exam เคฎเฅ‡เค‚ basic idea เคนเฅ€ เคชเฅ‚เค›เคพ เคœเคพเคคเคพ เคนเฅˆ)

Example (เคธเคฎเคเคจเฅ‡ เค•เฅ‡ เคฒเคฟเค)

เคฎเคพเคจ เคฒเฅ€เคœเคฟเค:

  • Task A โ†’ deadline 2 sec
  • Task B โ†’ deadline 5 sec

Execution order เคนเฅ‹เค—เคพ:
A โ†’ B

เค•เฅเคฏเฅ‹เค‚เค•เคฟ A เค•เฅ€ deadline เคชเคนเคฒเฅ‡ เคนเฅˆ

Key Features

  • Time critical system
  • Deadline based scheduling
  • High reliability

Advantages (เคซเคพเคฏเคฆเฅ‡)

  • Time-sensitive tasks efficiently handle เคนเฅ‹เคคเฅ‡ เคนเฅˆเค‚
  • High accuracy เค”เคฐ reliability

Disadvantages (เค•เคฎเคฟเคฏเคพเค)

  • System design complex เคนเฅ‹เคคเคพ เคนเฅˆ
  • Cost เคœเฅเคฏเคพเคฆเคพ เคนเฅ‹เคคเฅ€ เคนเฅˆ
  • Resource management เค•เค เคฟเคจ

Real Life Examples

  • Air traffic control system
  • Industrial control systems
  • Embedded systems

Conclusion

Real-Time Scheduling เค‰เคจ systems เค•เฅ‡ เคฒเคฟเค เคœเคฐเฅ‚เคฐเฅ€ เคนเฅˆ เคœเคนเคพเค timing เคธเคฌเคธเฅ‡ important เคนเฅ‹เคคเฅ€ เคนเฅˆเฅค

เคฏเคน เคธเฅเคจเคฟเคถเฅเคšเคฟเคค เค•เคฐเคคเคพ เคนเฅˆ เค•เคฟ tasks เค…เคชเคจเฅ‡ deadline เค•เฅ‡ เค…เค‚เคฆเคฐ complete เคนเฅ‹เค‚ เค”เคฐ system reliable เคฌเคจเคพ เคฐเคนเฅ‡เฅค

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top