This dissertation examines issues related to the design and implementation of real-time operating system (RTOS) services for consumer item embedded systems such as cars, webTVs, and cellular phones. Since these devices are mass-produced, keeping production costs low is all important, meaning that RTOS services must be highly efficient to enable use of low-cost hardware in these devices. This dissertation explores optimization techniques for basic RTOS services (task scheduling, synchronization, and communication) to meet the requirements of embedded systems. First, dynamic schedulers like earliest-deadline first (EDF) give high processor utilization but incur high run-time overhead while the opposite is true for static schedulers like ra...