Multi-task-based discrete event parallel simulation and time synchronization method

A discrete event, time synchronization technology, applied in the field of computing simulation, can solve problems such as insufficient utilization of resources, network bandwidth resources occupied by synchronization and interaction, and increased simulation running time overhead.

Active Publication Date: 2015-08-26
BEIJING HUARU TECH
View PDF5 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the current computer CPU has already entered the era of multi-CPU multi-core, and a single thread can only effectively use one core of multi-CPU multi-core, resulting in the processing capacity of multi-CPU multi-core computer cannot be fully tapped and utilized. On the one hand, it causes a waste of hardware resources. It also greatly increases the overhead of simulation runtime, and the problem becomes more obvious as the simulation scale becomes larger
[0007] Second: The frequent time synchronization and interaction between DIS and HLA takes up a lot of network bandwidth resources, and network bandwidth resources ar

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-task-based discrete event parallel simulation and time synchronization method
  • Multi-task-based discrete event parallel simulation and time synchronization method
  • Multi-task-based discrete event parallel simulation and time synchronization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0088] 1. Construct a large number of entities participating in the simulation into a continuous single memory image and divide it into multiple groups;

[0089] 2. Create an event queue for each group, and arrange them in order of timestamp and priority;

[0090] 3. Set a globally unique time manager to coordinate the time of each event queue;

[0091] 4. Each event queue processes events in chronological order and advances the time;

[0092] 5. When the timestamp of the next event in the event queue is greater than the current time or priority, request the time manager to advance the time;

[0093] 6. When the event queues are in the synchronous state (all are in the request advance state), the time manager scans the minimum time and highest priority that each event queue currently requires to advance, and the event manager that meets the time and priority conditions is approved, and will The current simulation time and priority is advanced to the approved time and priorit...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

Disclosed is a multi-task-based discrete event parallel simulation and time synchronization method. The method comprises: setting a plurality of event managers, wherein each group corresponds to an event manager; synchronizing a plurality of entities in the plurality of event managers by using the only time manager; sending, by each event manager, a time synchronization request to the time manager; traversing, by the time manager, the event managers to select an event manager having a minimum execution time and a highest priority as a global push standard, actively pushing the current simulation time to the time, and notifying the corresponding event manager to be ready to execute the event; and upon completion of event execution, sending, by the event manager, a time synchronization request to the time manager again. According to the present application, a plurality of parallel threads run, thereby preventing the case where the single thread simulation fails to fully use the hardware resources, improving the simulation running efficiency, ensuring that the time management and the synchronization overheads are function calling-level overheads, avoiding cross-progress communication overhead, and improving the time management efficiency in simulation.

Description

technical field [0001] The application relates to the field of computing simulation, in particular to a multi-task-based discrete event parallel simulation and time synchronization method. Background technique [0002] In order to ensure the causality of events, events must be sorted according to time and executed sequentially in discrete event simulation. In the single-thread discrete event simulation, only one event queue needs to be maintained and the execution timestamp of the event can be provided to implement a time-sorted event queue. The simulation engine only needs to call and execute events in order to realize simulation advancement . [0003] Distributed interactive simulation means that multiple computers are interconnected through a physical network and cooperate to complete a simulation task. In essence, it belongs to the joint simulation of discrete event simulation through network interconnection, so it is necessary to manage and synchronize the time of mul...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/455G06F9/48
Inventor 张柯闫飞王山平涂智王玮陈敏杰孙俊华
Owner BEIJING HUARU TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products