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 เคฌเคจเคพ เคฐเคนเฅเฅค