Patent ID: 8752060

Claim:
A multi-CPU domain mobile electronic device, comprising: a first CPU domain, comprising: a first migration agent unit; a first run queue; and a low efficiency low power CPU; wherein the first migration agent unit detects a task migration condition, and determines whether to migrate a migratable task; a second CPU domain, comprising: a second migration agent unit; a second run queue; and a high efficiency high power CPU; a set of common hardware resources, shared by both the first CPU domain and the second CPU domain, comprising: a shared memory, a set of shared interrupts, a set of programmed processing blocks, and an event queue; wherein when the first task migration agent unit determines to migrate the migratable task from the first CPU domain to the second CPU domain, the first task migration unit performs the following steps: waking up the second CPU domain from a power-saving mode, comprising: waking the high efficiency high power CPU; making the second migration agent unit operate under a normal operating mode; and making the second run queue operate under a normal operating mode; sending out a migration signal to the migratable task for informing that the migratable task is to be migrated to the second CPU domain, wherein a status of the migratable task after receiving the migration signal is altered to a migratable state; updating a task control block (TCB) of the migratable task; putting the migratable task to a migration task list; sending out the migration event to the event queue; migrating migratable tasks from the first run queue to the shared memory; and informing the second migration agent unit by an interrupt service routine (ISR) that the migration event is awaiting to be executed; wherein the migratable task is executed by the second CPU domain after the second migration agent unit receives the migration event.