The invention requests to protect a multi-user computing unloading resource optimization decision method based on D2D communication, and belongs to the technical field of mobile communication. The method comprises the following steps: 1, establishing a data communication model based on D2D communication; 2, respectively establishing calculation overhead models including time and energy overhead in the task transmission stage and the task execution stage; 3, establishing a
global optimization problem for minimizing the total calculation overhead of all users of the whole
system; 4, establishing a preference sequence of the bilateral users by taking the calculated total overhead as a sorting basis; 5, based on the established preference sequence, obtaining a resource optimization decision of multi-user D2D calculation unloading by using a stable matching
algorithm. The calculation unloading method based on D2D communication is beneficial to reducing unloading time
delay and energy overhead, a resource optimization decision of calculation unloading is obtained by using a stable matching
algorithm, compared with a random matching method, the total calculation overhead of the
system can be effectively reduced, and performance very close to the optimal exhaustion search method can be obtained with low calculation complexity.