(This article studies two types of wireless sensor network operating systems, event-driven single-threaded system (EventDrivenSystem) and multi-threaded system (MdfithreadSystem), and compares them, laying a foundation for further optimizing the system architecture.)