The invention relates to a multi-core real-
time system task sorting and partition scheduling optimization method based on a DQN, and the method comprises the following steps: obtaining a real-time task set to be scheduled, and extracting the
execution time, period, deadline and other feature information of tasks; modeling a task sorting process as a Markov
decision process, and performing
adaptive optimization on a task
processing sequence by using a DQN model to generate a task sorting sequence; on the premise that the structure of a partition scheduling
heuristic algorithm is not changed, the task sorting sequence is input into the partition scheduling
algorithm, and tasks are distributed; and generating scheduling feedback information according to a task allocation result, wherein the scheduling feedback information is used for updating the DQN model. According to the method, intelligent optimization is carried out on the task sorting stage, the problem that a traditional fixed sorting strategy is difficult to adapt to a complex task set structure is solved, a partition scheduling
algorithm can find a feasible task allocation scheme under the high
system load condition, and therefore the schedulability and the scheduling success rate of the isomorphic multi-core real-
time system are improved.