Patent ID: 8266619

Claim:
An embedded operating system of a smart card to manage and control tasks and exchange information with applications outside the smart card, the system comprising: an initialization unit, a real-time kernel unit, which comprises of a task initialization unit, a task control unit and a task scheduling unit, a task unit, and a hardware platform on which the initialization unit, the real-time kernel unit and the task unit executes; wherein the initialization unit is configured to initialize the hardware platform and the real-time kernel unit; the task initialization unit is configured to create and initialize a plurality of tasks, wherein the plurality of tasks is stored in the task unit; the task control unit is configured to: 1) start up the operation of the task scheduling unit, 2) control the synchronization and communications between the plurality of tasks by implementing synchronization or mutual exclusion mechanisms between the plurality of tasks or between the interrupt service routine and the plurality of tasks, and 3) execute the plurality of tasks; and the task scheduling unit is configured to schedule each of the plurality of tasks to be executed under the control of the task control unit by: 1) hanging up the task or setting the task to ready, and 2) scheduling the ready task with the highest priority for execution.