摘要 |
Disclosed in embodiments of the present invention are an instruction scheduling method and device, the method comprising: prefetching and caching a preset number of instructions for each thread; scheduling the instructions according to states of the threads and the prefetched and cached instructions. In the embodiments of the present invention, the instruction prefetching is executed first, and then the scheduling is performed according to the prefetched instructions, such that bubbles for the instructions can be avoided, and efficiency of the instruction scheduling and an overall performance of an ME are improved. In addition, if instruction priority scheduling is further performed, a degree of disorder can also be reduced, thus further improving the instruction scheduling efficiency and the overall performance of the ME. |