The application discloses a kind of multi-
master station synchronization method, device and storage medium, and multi-
master station synchronization method includes the following steps: setting priority for each
master station process;Preset master
station generates
time synchronization message and sends to network, when receiving master
station receives
time synchronization message, trigger hardware interrupt, receiving master
station executes
time synchronization task, receiving master station calculates
time deviation according to time synchronization message, and adjusts local
clock;Preset master station updates the data of shared data area, and sends data update notification to receiving master station;Receiving master station updates local data based on data update notification.This method is based on the
preemption mechanism of hardware interrupt and
operating system, gives the ability of stable execution of time synchronization task in
complex system environment, in the face of complex situations such as
high load, network fluctuation, time synchronization task can always acquire
system resources preferentially, ensure the accuracy and continuity of time synchronization.