The invention discloses a task scheduling method and
system for a heterogeneous multi-
operating system, and the method comprises the steps: periodically collecting task states, resource states and
operating system capability data, and constructing a task scheduling heterogeneous graph comprising task nodes, resource nodes and
operating system nodes according to the task states, the resource states and the operating
system capability data; and then, inputting the heterogeneous graph into a pre-trained graph
convolutional neural network, learning a complex relationship between nodes by a model, and outputting an
adaptation rate of a task and each candidate scheduling combination. And the scheduling module determines an optimal target scheduling combination through multi-stage screening and optimization in combination with the
adaptation rate, the real-
time system state and the task constraint. Finally, through an efficient cross-
system migration mechanism, the task is seamlessly migrated from the current operating system to the target operating system, and the target operating system calls corresponding resources to execute the task, so that self-adaptive task scheduling in a heterogeneous multi-core multi-operating system environment is realized, and the task scheduling efficiency is improved. And the
resource utilization rate, the task execution efficiency and the cross-operating system cooperation capability are remarkably improved.