Design and Application of Multitask Under Supervision of Message Mailbox Based on μC/OS-II

Traditional software systems of low complex instruments are generally designed as single-task ordinal architecture.It is fatal to interrupt delay and frequent resetting which result in the weakness of real-time performance and reliability in actual system.Based on real-time operation system of μC/OS-II,every core task related to instruments is assigned a unique priority.A monitoring task with highest priority is put forward to coexist with other multitask in message mailbox waiting list.Monitoring task supervises whether those tasks operate in gear through message mailbox service provided by kernel.The paper presents a new way to realize software architecture for instruments based on operation system and improve the capability of real-time performance and reliability.