摘要 |
<p>The present invention provides a method and an apparatus for allocating a core resource, and a many-core system, so as to allocate a core resource in a many-core platform. The method comprises: obtaining a quantity of idle cores required by a user process; finding at least two dispersed core subareas meeting the quantity request, each core subarea being a set of one or more cores and all cores in each core subarea being idle cores; forming a continuous core subarea by using the at least two dispersed core subareas; and allocating the formed continuous core subarea to the user process. In this manner, process interaction can be directly performed between different cores in the continuous core subarea allocated to the user process, and the efficiency of communication between processes is improved; in addition, waste of a core resource is effectively avoided, and the whole utilization rate and the parallel processing capability of a processor are improved.</p> |