Patent ID: 8612982

Claim:
A multi-tasking method of executing a plurality of tasks according to a priority of each of the plurality of tasks, the multi-tasking method comprising: determining, by at least one processor, whether a resource that is to be used by a first task of the plurality of tasks is being used by a second task, wherein the first task is a task having the highest priority from among tasks which are ready to be executed by a Central Processing Unit (CPU); comparing, by at least one processor, the priority of the first task and the priority of the second task according to the determination result and determining that the priority of the first task is higher than the priority of the second task; and increasing, by at least one processor, the priority of the second task to a highest priority of all of the priorities of all tasks which are trying to occupy the CPU, according to the comparison result, wherein the all tasks include the tasks which are ready to be executed by the CPU and tasks which are not ready to be executed by the CPU.