Job scheduling method and apparatus
A job scheduling and job technology, which is applied in multi-programming devices, program startup/switching, program control design, etc., can solve the problems of starvation, large jobs cannot be scheduled for processing, etc., to shorten the response time, prevent starvation, The effect of improving the scheduling efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] see figure 1 , which shows a job scheduling method provided by an embodiment of the present invention, the method may include:
[0028] S101: When there are idle resources, calculate the priority of each job in the job queue according to the size factor of each job in the job queue and the waiting factor of each job in the job queue, and put the job queue Jobs in are sorted according to the stated priority;
[0029] It should be noted that the priority of a job is dynamically calculated, and whenever there is an idle resource, the priority of each job in the job queue needs to be recalculated. During specific implementation, the job queue can be sorted according to the order of priority from high to low.
[0030]In the specific implementation process, when there are idle resources, all users are arranged into user queues according to fairness, and the job queues under the user name are scheduled in turn according to the order of the user queues from the head of the qu...
Embodiment 2
[0131] Based on the same technical idea of the above-mentioned embodiment, see Figure 5 , which shows a device 50 provided by an embodiment of the present invention, the device 50 includes: a computing unit 501, a sorting unit 502, and a processing unit 503; wherein,
[0132] The calculation unit 501 is configured to calculate the priority of each job in the job queue according to the size factor of each job in the job queue and the waiting factor of each job in the job queue when there are idle resources;
[0133] The sorting unit 502 is configured to sort the jobs in the job queue according to the priority calculated by the computing unit 501;
[0134] The processing unit 503 is configured to schedule and process the jobs in the job queue according to the order of the sorted job queue.
[0135] In the above solution, the calculation unit 501 is specifically configured to calculate the size factor of each job in the job queue according to the task processing status of eac...
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