The application discloses a kind of on-
orbit software load balancing methods of multi-core CPU, comprising the following steps: S1,
thread pool is formed by the functional item abstraction of on-
orbit software;S2, multi-core CPU is provided with at least 4 cores, wherein the
algorithm thread, I / O thread is respectively limited in two CPU cores, the rest thread is set soft affinity, and according to the busy state of the rest CPU core, it is selected to run in corresponding CPU core;S3,
algorithm thread, I / O thread, remote
telemetry thread carry out data interaction by shared variable, and the competition problem between threads is solved by protecting shared variable by
mutual exclusion, condition variable;S4, when on-
orbit software needs to be programmed on-orbit, main thread stops corresponding thread, replaces old shared
library with upgraded shared
library, and restarts thread operation;Or terminate corresponding thread, add new shared
library to specified position, recreate the thread, and open and load new shared library in thread operation.