Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Background process false death processing method and client

A processing method and client-side technology, applied in the computer field, can solve the problems of suspended animation of background processes, switching back to the foreground and no longer being used.

Active Publication Date: 2019-10-11
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] What the present invention is to solve is the problem that the background process suspended animation and cannot continue to be used after switching back to the foreground

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
  • Background process false death processing method and client
  • Background process false death processing method and client
  • Background process false death processing method and client

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] This embodiment provides a background process suspended animation processing method, figure 1 It is a schematic flow chart of the background process suspended animation processing method, and the background process suspended animation processing method includes:

[0044] Step S11, monitoring whether the background process enters into a state of suspended animation;

[0045] Step S12, if the background process enters a state of suspended animation, then disconnect the socket of the current thread in the background process from the server;

[0046]Step S13, create a new thread for the background process to communicate with the server for the background process, create a new socket in the new thread, and establish the new socket and the server Based on the connection between the new socket and the server, the communication between the new thread and the server is realized.

[0047] Specifically, once the connection between the application process and the server is establ...

Embodiment 2

[0060] This embodiment provides a client, figure 2 is a schematic structural diagram of the client in this embodiment, and the client includes a monitoring module 11 , a disconnection module 12 and a reconnection module 13 .

[0061] Specifically, the monitoring module 11 is used to monitor whether the background process enters the state of suspended animation, and the disconnection module 12 is used to disconnect the socket of the current thread in the background process from the server when the background process enters the suspended state. connection between, the reconnection module 13 is used to create a new thread for the background process to communicate with the server for the background process, create a new socket in the new thread, and establish the The connection between the new socket and the server, based on the connection between the new socket and the server, realizes the communication between the new thread and the server. Further, the monitoring module 11 in...

Embodiment 3

[0064] This embodiment also provides a computer device for handling background process suspended animation, such as image 3 As shown, the computer device includes: a radio frequency (Radio Frequency, RF) circuit 310, a memory 320, an input unit 330, a display unit 340, an audio circuit 350, a WiFi module 360, a processor 370, and a power supply 380 and other components. Those skilled in the art can understand that, image 3 The structure of the computer device shown in the computer device does not constitute a limitation to the computer device, and may include more or less components than those shown in the illustration, or combine some components, or arrange different components.

[0065] Combine below image 3 A detailed introduction to each component of computer equipment:

[0066] The RF circuit 310 can be used for receiving and sending signals, especially, after receiving the downlink information of the base station, the processor 370 processes it. Generally, the RF c...

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 background process false death processing method and a client. The background process false death processing method comprises the steps of monitoring whether a background process enters a false death state or not; if the background process enters the false dead state, disconnecting the connection between the socket of the current thread in the background process and the server; aiming at the background process, creating a new thread for communication between the background process and the server, and creating a new socket in the new thread, establishing connection between the new socket and the server, and realizing communication between the new thread and the server based on the connection between the new socket and the server. According to the background processfalse death processing method and the client, it can be guaranteed that the background process can still be used continuously after being switched back to the foreground.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a background process suspended animation processing method and a client. Background technique [0002] A process is a program with certain independent functions, and it is a running activity about a certain data set. In a traditional operating system, a process is both the basic allocation unit and the basic execution unit. Usually, a process can contain several threads. In operating systems that introduce threads, processes are usually used as the basic unit of resource allocation, and threads are used as the basic unit of independent operation and independent scheduling. Since a thread is smaller than a process and basically does not own system resources, the overhead for its scheduling will be much smaller, and the degree of concurrent execution among multiple programs in the system can be improved more efficiently. [0003] Process switching is a basic function that a mu...

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 Applications(China)
IPC IPC(8): G06F9/48G06F11/30H04L29/06H04L29/08
CPCG06F9/485G06F11/3051H04L67/141H04L67/143H04L69/162
Inventor 孟志兵张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products