Multi-device task scheduling optimization algorithm in HarmonyOS distributed environment
To address the issue that existing scheduling algorithms do not fully utilize the low-latency communication and heterogeneous hardware virtualization capabilities of the HarmonyOS distributed soft bus, this paper proposes the IMOPSO (Improved Multi-Objective Particle Swarm Optimization) algorithm, which integrates a soft bus latency-aware model and heterogeneous computing power factors. First, an end-to-end latency matrix is established based on a customized UDP (User Datagram Protocol) of the HarmonyOS distributed soft bus, and the current load and energy efficiency ratio of each device’s CPU (Central Processing Unit), GPU (Graphics Processing Unit), and NPU (Neural Processing Unit) are collected in real time to construct a heterogeneous computing power factor matrix. This matrix serves as the input constraint for the particle swarm optimization, with each particle using a real-number encoding to map subtasks to the target device. The speed update formula incorporates a joint heuristic term combining the soft bus latency gradient and computing power heat. The fitness function has a dual objective: minimizing the task completion time and the weighted sum of multi-device energy consumption. An external archive is maintained through Pareto dominance, and the latency and computing power matrices are dynamically updated during iteration. When device changes are detected, Gaussian perturbation is used for reinitialization. Experimental results show that the proposed algorithm reduces the average task completion time to 1198.5 ms and the total system energy consumption to 9.88 J, the IMOPSO algorithm recovers stability within 12 scheduling steps for concurrent device changes and within 11 steps for channel quality mutations, with the Pareto front covering a more optimal region. The proposed method demonstrates the deep coupling between the scheduling strategy and the underlying characteristics of HarmonyOS.
Authors
- Ran Li (ORCID: https://orcid.org/0000-0001-7475-759X)
Institutions
- Jingchu University of Technology (CN)
Publication Details
- Journal
- Discover Applied Sciences
- Published
- 2026-12-03
- DOI
- https://doi.org/10.1007/s42452-026-09978-z
- Primary Topic
- IoT and Edge/Fog Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.00