The application discloses a
simulation method,
system, device and medium based on an event
library, comprising: storing an event template containing a template identifier and a processor type in the event
library; generating, by a
simulation entity, an instantiated event containing a referenced template identifier, a target processor identifier and an event
processing time according to the event template; inserting, by an
event manager, the instantiated event into a corresponding event sub-
queue according to the target processor identifier, and arranging events in the
queue in ascending order of event
processing time; and submitting and distributing the events in batches by a scheduling processor at the end of a scheduling period; and controlling, by a scheduling manager,
simulation time advancement in a
fixed time window, and exchanging remote events with other simulation nodes at the window boundary. The event template can further include a load structure description and a
minimum time step parameter, which are used for standardizing
event data format and constraining event generation interval. The application realizes structured management and distributed efficient synchronization of events, and improves
scalability, consistency and scheduling efficiency of the
simulation system.