1. A compiling apparatus comprising: a processor comprising a static scheduling unit configured to generate task groups comprising respective tasks, and comprising a first task group and a second task group, and allocate the task groups to virtual cores by dividing or combining the tasks included in the task groups based on execution time estimates of the task groups, and a dynamic scheduling unit configured to map the virtual cores to physical cores comprising a physical core and a second physical core, and reallocate a part of the first task group with a highest execution time estimate and allocated to the first physical core, to the second physical core connected to the first physical core and to which the second task group with a lowest execution time estimate is allocated.