Network request scheduling method, terminal device and storage medium
A network request and scheduling method technology, applied in the direction of multi-program device, resource allocation, program control design, etc., can solve problems affecting the normal use of application programs, heavy CPU load, network request timeout, etc., to achieve reduced occupancy, reduced Effects of consumption, safeguard activation and use
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] figure 1 The schematic diagram of the principle of thread scheduling provided by the embodiment of the present invention is described in detail as follows:
[0032] A thread is a single sequential control flow in a program, in which there is a relatively independent and schedulable execution unit, which is the basic unit of the system to independently schedule and dispatch the CPU, and the scheduling unit of the program when the instruction is running. A thread can perform a specific operation, such as making a network request.
[0033] After a thread is created, the thread will switch between different states. The states of the thread generally include: idle 110 , waiting 120 and running 130 . The states of threads can be switched between each other. For example, when the thread is executed, it will enter the idle state (or blocked state), and when the idle thread is called, it can enter the running state.
[0034] Usually a thread can be blocked after executing some...
Embodiment 2
[0038] see figure 2 , an embodiment of the network request scheduling method in the embodiment of the present invention includes:
[0039] S20. When the application starts, schedule the network request generated by the application through a custom task scheduler;
[0040] The application program refers to software written for a certain application, that is, a common client APP or the like, and specifically refers to application software that initiates a network request when the application program is started. The network request refers to an instruction to request specific data from a server through a network connection. The network request usually requires the CPU to execute the request instruction, and each network request is equivalent to a network request task to be executed by the CPU.
[0041] The task scheduler specifically refers to a set of methods for scheduling network requests. Preferably, the task scheduler is a custom Rxjava scheduler.
[0042] Optionally, the...
Embodiment 5
[0084] Figure 5 It is a schematic diagram of the structure of an application self-starting terminal device provided by an embodiment of the present invention. The terminal device is a mobile computer device with a touch screen, including but not limited to smart phones, smart watches, notebooks, tablet computers, POS machines and even vehicle-mounted computers. Such as Figure 5 As shown, the terminal device 5 of this embodiment includes: a memory 510, a processor 520, and a system bus 530. The memory 510 includes an executable program 5101 stored thereon. Those skilled in the art can understand that, Figure 5 The structure of the terminal device shown in the above does not constitute a limitation to the terminal device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
[0085] Combine below Figure 5 A detailed introduction to each component of the terminal device:
[0086] The memory 510 can ...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com