The invention discloses a
base station selection and task unloading method and device for a mobile edge calculation
system, equipment and a medium. The method comprises the following steps: building a calculation model of
switching time delay, communication time
delay and queuing time
delay of the mobile edge calculation
system in any time slot based on two decision variables, namely
service placement and
base station selection; minimizing non-
switching time delay to obtain
service placement and
base station selection decisions at an initial moment; according to the decision of the previous time slot, the
switching time delay and the non-switching time delay of the
current time slot are calculated, and whether the
current time slot migrates the service or not is determined based on the principle of tolerating more non-switching
time delays; if the service is not migrated, the decision of the
current time slot is kept to be the same as that of the previous time slot; if the service is migrated, minimizing the non-switching time delay of the current time slot, and obtaining the
service placement and base
station selection decision of the current time slot; and iteratively calculating service placement and base
station selection decisions of all time slots. According to the method, low-delay
processing and user
service quality are guaranteed, and the randomness of user movement is met.