Multi-thread time synchronization event scheduling system based on thread pool and Avl tree
The invention relates to a multi-thread time synchronization event scheduling system based on a thread pool and an Avl tree. The system comprises a data queue management module used for constructing an event queue and carrying out related operation on the event queue according to an Avl tree to obta...
Saved in:
Main Authors | , , , , , , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
11.07.2023
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention relates to a multi-thread time synchronization event scheduling system based on a thread pool and an Avl tree. The system comprises a data queue management module used for constructing an event queue and carrying out related operation on the event queue according to an Avl tree to obtain a sequential event queue; the event scheduling module is used for maintaining and managing the sequential event queue according to the allowable advancing time of the current round obtained by the event scheduler from the time synchronization module; the multi-task packaging module is used for packaging to-be-executed events into to-be-executed tasks according to the allowable advancing time and then sending the to-be-executed tasks to the thread pool; the multi-task scheduling module is used for handing over to-be-executed tasks to idle working threads for execution according to computing resources of the computer; and the time synchronization module is used for calculating the allowable advancing time of each |
---|---|
Bibliography: | Application Number: CN202310278271 |