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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
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