主权项 |
1. A method to execute a program, where the program includes a first procedure, a second procedure, and a third procedure, the method comprising:
executing the first procedure on a first core of a multi-core processor; while executing the first procedure, sending a first instruction, from the first core to a second core of the multi-core processor, where the first instruction commands the second core to execute the second procedure; receiving the first instruction at the second core executing the first procedure on the first core while executing the second procedure on the second core; while executing the first procedure and the second procedure, sending a second instruction, from the first core to a third core of the multi-core processor, where the second instruction commands the third core to execute the third procedure; receiving the second instruction at the third core; and executing the third procedure on the third core while executing the first procedure on the first core and the second procedure on the second core. |