Chapter 04 4.1..,..,.,.,.,. RTOS(Real-Time Operating System)., RTOS.. VxWorks(www.windriver.com), psos(www.windriver.com), VRTX(www.mento. com), QNX(www.qnx.com), OSE(www.ose.com), Nucleus(www.atinudclus. com), MC/OSII(www.mcos-ii.com). (preempted), POSIX API...,. 137
PART 1,..,,. MS-DOS. (sensor) (actuator).,,,,,. RTOS.,... (,, ). (deadline),.,.,. 138
Chapter 04 H/W, S/W.,, ROM,.,,,,,,,,,,,,., RTOS,,,,,,. RTOS RTOS. RTOS..,.,. 4.2.,.,,..,.,. C, 139
PART 1. C.,,. CPU,....,,,,,.,,,,,.. PDA. PDA,,,,. RTOS OS.,,,,, / 140
Chapter 04 RTOS. OS.. RTOS. RTOS.,. RTOS OS,.,... RTOS. 4.3. RTOS,,.... 141
PART 1 IPC(, ) 4.3.1 CPU... CPU. CPU. CPU, 142
Chapter 04. [. ]. (periodic), (aperiodic), (sporadic). ms...,. ms. (critical) (non-critical).., CPU (preemptive) (nonpreemptive). CPU. (critical section). (static priority) (dynamic priority).,.. VxWorks PSOS (Earliest Deadline First, EDF)..,., Liu Layland (rate 143
PART 1 monotonic).,,. (Utilization Factor, UF).. EDF, (deadline driven).,., EDF.,. EDF EDF. 4.3.2 EDF(Earliest Deadline First). EDF.. RM. EDF., EDF RM. RM. RM..,, EDF,., RM... 144
Chapter 04 4.3.3 CPU,,,,.,,... VxWorks. 4.3.4 (swap)...,.. (exclusive access) (binary semaphore). ( ),..,.,.,,.. 145
PART 1 T 1,. (priority inversion). [. ]. T H [. ] T 1, T 2, T 3. T 1, T 3 S. [. ] T 3 t. t T 3 S. t S t. S T 3 T 1. t T 2, T 3. S, t. T 3 t S. T 1. T 1 T 2.. T 3 T 1 T 3 T 3 T 2 (priority inheritance). T H, T 1.. [ 146
Chapter 04. ], t T 3 T 3, T 3 T 1 T 2 T 1..... : Lock Lock Unlock Unlock T 1 : Lock Lock Unlock Unlock T 2 S 1 S 2 T 2 T 1. T 2 t t S 2. t T 1 T 1 T 2. t T 1 S 1. t T 1 S 2. T 2 T 1 T 2 T 1. t T 2 S 1, T 2.. S 1 S 2 S 1 T 2 S 2 S 1 T 1 T 2 S 1 S 2 S 1 S 2... P(T) T P(S) S. [. ]. S 1 T 1 S 2 T 1 T 1 T 2 T 3 P( ) P( T 1 ) S 3 T 3 P( T 3 ) S 4 P( ) T 2 T 2 T 3 T 2 147
PART 1., ( ). [. ]. T 2 S 2 T 1. T 1 S 1. S 2..,. 4.4 4.4.1. (multi-thread), (multi-process)..,,. (embedded system) WindRriver psos VxWorks, Enea OSE Systems OSE, LinuxWorks LynxOS, Finite State Machine Labs RTLinux, MS Windows CE, GUI (Linu@), [. ]. Arx/mArx(micro Arx) Qplus(Q+).,. 148
Chapter 04... OS-, LynxOS, QNX. psos Windriver Windriver VxWorks.. VxWorks WindRiver.. OS.. VxWorks. 149
PART 1 psosystem VxWorks... (Tornado)..,,,. TCP/IP ROM. MS-DOS RT-. VxWorks BSP(Board Support Package),,. 150
Chapter 04 Nucleus Accelerated Technology (royalty free).,,,. Nucleus. Nucleus ARM, MIPS, PPC, M K, SH, Analog TI, Hitachi DSP. 151
PART 1 ATI Nucleus Web Browser HTTP., HTML.. Nucleus GRAFIX Nucleus Web Browser. Windows CE.NET Microsoft, Windows CE.. Microsoft Windows CE.NET. Windows CE.NET. Windows CE.NET,,,, Windows CE. Windows CE.NET. 152
Chapter 04 Windows CE.NET Bluetooth,. x/zero Configuration, OBEX(Object Exchange), MediaSense, (RTC/SIP).,, CPU :, MS Windows.,...,.. 4.4.2 HPC, PDA,,. CPU,. GUI.,,.., POSIX (monolithic) :. 153
PART 1,,,,, TCP/IP GPL(GNU General Public License) : : : x, alpha, ppc, arm, sparc, CPU..,, (tool). OS 4.4.3 RTLinux Linux BSD,,,, RTOS. (duel kernel technology) Linux, BSD OS RT Core OS Linux BSD, BSD. 154
Chapter 04 RTOS RTLinux OS. RTLinux BSD (GUI, soft realtime networking, plotting, disk access ) RTLinux. RTLinux POSIX. RTLinux. 4.5 4.5.1.. RTOS(Real-Time Operating System), RTOS. RTOS RTOS S/W. RTOS RTOS. RTOS. RTOS time-to-market. (,, LG ) RTOS TV RTOS Q+( Qplus). Q+, Q+, API, (Esto), (Q+/Esto). 155
PART 1 4.5.2 Q+/Esto Q+, Q+, API,.. OS (Hardware Abstraction Layer, HAL),,,,, I/O,, IPC(Inter Process Communication). HAL CPU,, H/W. I/O I/O I/O.,,, API, TCP/IP API. IPC. 156
Chapter 04 OS C, /,,,. C,,,,, C, / Graphic Primitive, Window, Event/Task., API. telnet, tftp, dhcp, ppp. API,,,,. /, MPEG-, MPEG-, MPEG-, MP. (I-TV VBI), (DTV ), HTML, 157
PART 1,,,. HTML TV HTML., HTTP., JavaScript, SSL,, ATVEF content type, /.,,, POP, IMAP, SMTP, MIME,, HTML,,, (G. ). 158
Chapter 04,,,,. GNU C COFF ELF, GUI Breakpoint, Single-Stepping,.,,,, Profiling Chart,,,,,.,. 4.5.3 Q+ TV, PDA Q+/Esto. - TV - - - 159
PART 1 - C - / - - / - (MPEG-, MP, MPEG- ) - / - Esto IDE - - - - - 4.6 In-house Embedded Software Embedded Software.. RTOS,, VxWorks(Windriver ), psos(isi ), VRTX(Mento Grapics ), OS- (Microware Systems ), QNX(QSSL ), WinCE(MS ), Embedded JAVA(Sun ) ( ). (cross) (native). Unix, Win /NT (host) RTOS,. Cross. VxWorks, LynxOS, psos, VRTX. LynxOS HA(, High Availability). 160
Chapter 04 Self-Host. OS. X CPU. Production License(Runtime Fee). LynxOS, QNX, OS-. RTOS. RTOS POSIX, GUI, Internet Solution, JAVA. RTOS POSIX., JAVA,, RTOS. RTOS TCP/IP NFS, SLIP/PPP,,,.,. RTOS. LynxOS QNX Enterprise JVM, JAVA VRTX JAVA. JVM. POSIX, Win API ( : WinCE ). RTOS,., WinCE OS WinCE Car PC, PC, PC. 161
PART 1 RTOS. RTOS.,.. GUI WinCE JAVA, OS. RTOS C., RTOS. 162