A method and device for allocating network resources
A network resource and distribution network technology, which is applied in the direction of data exchange network, digital transmission system, electrical components, etc., can solve the problems that affect the working efficiency of the process and the single way of allocating network resources, and achieve the effect of avoiding limitations and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] An embodiment of the present invention provides a method for allocating network resources, see figure 1 , the method flow includes:
[0053] 101: Capture system messages sent by the system to the process;
[0054] 102: Obtain the type of the system message and the process corresponding to the system message;
[0055] 103: According to the type of the system message, determine whether the process corresponding to the system message belongs to the process that preferentially allocates network resources;
[0056] 104: When the process belonging to the priority allocation of network resources performs network communication, limit the network resources of other processes not belonging to the priority allocation of network resources.
[0057] According to the type of system message issued by the system to the process, the embodiment of the present invention preferentially allocates network resources to the process currently in use by the user, avoids the limitation of prefe...
Embodiment 2
[0059] An embodiment of the present invention provides a method for allocating network resources, see figure 2 , the method flow includes:
[0060] 201: Call the system interface to monitor the messages sent by the system to the process.
[0061]Specifically, windows is a message-driven operating system. When the user switches a new window through the mouse or keyboard, the system will send WM_ACTIVE, WM_CLICKACTIVE messages to the corresponding window; when the user leaves a certain window, the system will send WM_INACTIVE message to corresponding window. HOOK (hook) is a message processing mechanism provided by windows. It refers to a function that is pre-started before receiving information during normal operation. It is used to check and modify the messages sent to the window. Whenever a specific message is sent, it does not reach the purpose. Before the window is opened, the hook program captures the message first, that is, the HOOK function will obtain the control rig...
Embodiment 3
[0090] An embodiment of the present invention provides a device for allocating network resources, see image 3 , the device includes:
[0091] Capture module 301, configured to capture system messages sent by the system to the process;
[0092] An acquisition module 302, configured to acquire the type of the system message and the process corresponding to the system message;
[0093] A determining module 303, configured to determine, according to the type of the system message, whether the process corresponding to the system message belongs to a process that preferentially allocates network resources;
[0094] The allocating network resource module 304 is configured to limit network resources of other processes belonging to non-priority allocating network resources when the process belonging to preferentially allocating network resources performs network communication.
[0095] According to the type of system message issued by the system to the process, the embodiment of the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


