Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2019-02-26
TENCENT TECH (SHENZHEN) CO LTD
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problems in the prior art that the method of allocating network resources is single and affects the work efficiency of processes in network communication, the embodiment of the present invention provides a method and device for allocating network resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for allocating network resources
  • A method and device for allocating network resources
  • A method and device for allocating network resources

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a network source distributing method and device, and belongs to the technical field of computers. The method comprises the steps that a system message sent by a system to a process is acquired; the type of the system message and the process corresponding to the system message are acquired; according to the type of the system message, whether the process corresponding to the system message belongs to processes with network source distributing priority is determined; and when the process with the network source distributing priority carries out network communication, the network sources of other processes without the network source distributing priority are restricted. According to the invention, the network source distributing priority is given to the process which is currently used by a user according to the type of the system message sent by the system to the process; the limitation that the network source distributing priority is only given to a specific process is avoided; and the efficiency of the process and network communication can be improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for allocating network resources. Background technique [0002] With the development of network technology, broadband technology has gradually spread to families. However, at present, the broadband limit transmission rate of ordinary households can no longer meet the bandwidth rate required by network applications that are gradually increasing. optimal distribution. [0003] In the prior art, the method of optimally configuring network traffic for various applications currently used by the terminal is generally as follows: when the processes corresponding to multiple applications in the terminal are simultaneously connected to the network for communication, the preset Processes prioritize the allocation of network traffic and limit the network traffic of other processes to achieve optimal allocation of network resources. [0004] In the process of realizi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/911
Inventor 刘诚张英皓
Owner TENCENT TECH (SHENZHEN) CO LTD