To meet the application requirements of sensor networks, the PaRTiKle OS implements a lightweight and energy-efficient scheduler, a user-level network stack, as well as other components such as device drivers all this in less than 12 Kbytes code lines.