Serialized multi-process task scheduling method and device
A technology of task scheduling and multi-process, which is applied in the direction of multi-program device, program control design, program startup/switching, etc. It can solve problems such as deadlock and high complexity of task scheduling, and achieve the effect of simplifying the complexity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] see image 3 , a flowchart of a serialized multi-process task scheduling method provided by an embodiment of the present application, the method includes:
[0057] S100. Register a specific event and a specific event processing function corresponding to the specific event to a specific event list;
[0058] In some embodiments, the working process may have to complete a large number of operational tasks, but special events may occur during the running process of the working process.
[0059] For example, in the case of using brute force to crack server passwords, the management process continuously generates the next username and password to try and distributes the username and password to the worker process, which uses the username and password to log in to the server. During this process, it may happen that all usernames and passwords have been tried, and what needs to be done at this time is to clean up the environment; there may also be a situation where the working...
Embodiment 2
[0074] join Figure 4 , a flow chart of another serialized multi-process task scheduling method provided by the embodiment of the present application.
[0075] Described in the list of specific events and the list of io events, find the event to be executed, and add the event to be executed to the queue to be executed. The steps include:
[0076] S501. Determine whether there is a specific event in the specific event list that satisfies the establishment condition of the specific event;
[0077] If there is a specific event that satisfies the establishment condition of the specific event, then the specific event and the specific event processing function are added to the queue to be executed as the event to be executed;
[0078] The specific event establishment condition is the criterion that the specific event can be added to the to-be-executed queue. Referring to the example of step S100, the specific event establishment condition is the received signal and the specific event...
Embodiment 3
[0083] Described in the specific event list and the io event list, look for the event to be executed, and the step of adding the event to be executed to the queue to be executed also includes:
[0084] If there is no specific event that satisfies the establishment condition of the specific event, and there is no io event that satisfies the establishment condition of the io event, it is judged whether the queue to be executed is empty;
[0085] When the queue to be executed is empty, the ipc file descriptor interacting with the subprocess is detected, and the ipc file descriptor, the io event processing function and the io event callback function are added to the to-be-executed queue.
[0086] When the to-be-executed queue is not empty, the to-be-executed event is read from the to-be-executed queue and returned.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com