This invention relates to a user-mode
thread scheduling method, apparatus, and storage medium based on behavior prediction. A short-term behavior predictor calculates prediction results using a
hybrid model. A scheduling decision engine receives these prediction results, calculates a comprehensive benefit
score based on the prediction results, and generates scheduling and migration decisions. A core affinity and migration controller executes migration decisions, controls the computation core to run CPU-intensive tasks, controls the I / O core to bind I / O interrupts and run I / O-intensive tasks, and controls the scheduling core to select user-mode thread tasks from a multi-level
run queue and allocate them to the computation core or I / O core for execution. The scheduling and migration decisions involve
resource allocation and priority adjustment. A lightweight behavior collector can collect the operational characteristics of user-mode threads with
low overhead. While maintaining
low overhead, a
hybrid model is used to dynamically model thread behavior characteristics, predict short-term thread operational trends, and perform
resource allocation and priority adjustment accordingly, thereby improving the overall
system throughput.