# US 2023/0056294 A1 · Client live keeping method and apparatus, electronic device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0056294 A1
- Document ID: US20230056294A1
- Status: Published application
- Kind: A1
- Application number: 17/973,613
- Filed: 2022-10-26
- Published: 2023-02-23
- Earliest claimed: 2021-02-04
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Shili XU; Kai Hong; Qitian Zhang; Jingjing Chen; Zhuan Liu
- Web page: https://patentgrep.com/patent/US20230056294A1

## CPC

- G06F 9/545: {where tasks reside in different layers, e.g. user- and kernel-space}
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/543: {User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]}
- G06F 9/4812: {by interrupt, e.g. masked}
- G06F 9/4893: {taking into account power or heat criteria (power management in computers in general G06F1/3203; thermal management in computers in general G06F1/206)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Example embodiments provide a client live keeping method and apparatus, and a storage medium. The method includes: receiving, based on a client being switched to a background, a request including state information of a target state of the client at a current time and a target live keeping duration corresponding to the target state; transmitting the request to a terminal server; receiving, from the terminal server in response to the request, target information indicating live keeping information of the target state; and determining whether to perform live keeping on the target state based on the target information.

## Claims

### Claim 1

A client live keeping method, performed by a terminal device, comprising:
receiving, based on a client being switched to a background, a request comprising state information of a target state of the client at a current time and a target live keeping duration corresponding to the target state;
transmitting the request to a terminal server;
receiving, from the terminal server in response to the request, target information indicating live keeping information of the target state; and
determining whether to perform live keeping on the target state based on the target information.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the target information comprises a live keeping strategy, and the live keeping strategy comprises a live keepable condition corresponding to a plurality of live keepable first preset states of the client; and
the determining whether to perform the live keeping on the target state based on the target information comprises:
determining whether to perform live keeping on the target state based on the state information of the target state and the live keepable condition corresponding to the plurality of live keepable first preset states of the client.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the live keepable condition corresponding to a first preset state comprises a resource value needed by the terminal device to perform live keeping on the first preset state, and the determining whether to perform the live keeping on the target state based on the state information of the target state and the live keepable condition corresponding to the plurality of live keepable first preset states of the client comprises:
determining whether the target state is the first preset state based on the state information of the target state;
obtaining an idle resource value of the terminal device of the current time, based on determining that the target state is the first preset state; and
determining whether to perform the live keeping on the target state based on the idle resource value of the terminal device and the resource value needed by the terminal device to perform the live keeping on the target state.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the determining whether to perform the live keeping on the target state based on the idle resource value of the terminal device and the resource value needed by the terminal device to perform the live keeping on the target state comprises:
determining to perform the live keeping on the target state based on the resource value needed by the terminal device to perform the live keeping on the target state is less than a preset resource value and the idle resource value of the terminal device being greater than or equal to a prediction resource value; or
otherwise, determining to skip performing the live keeping on the target state; and
wherein the prediction resource value is a minimum resource value needed and predicted for running a front-end program at a next time.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising:
stopping performing the live keeping on the target state based on detection that the idle resource value of the terminal device at the next time, with performing the live keeping on the target state, is predicted to be less than the prediction resource value.

### Claim 6 (depends on 4)

The method according to claim 4, further comprising:
stopping performing the live keeping on the target state based on detection that a target live keeping duration corresponding to the target state is reached.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the target information comprises a live keeping result of the target state; and the determining whether to perform the live keeping on the target state according to the target information comprises:
determining to perform the live keeping on the target state based on the live keeping result indicating to perform the live keeping; and
determining to skip performing the live keeping on the target state based on the live keeping result indicating to skip the live keeping.

### Claim 8 (depends on 1)

The method according to claim 1, wherein it is determined to perform the live keeping on the target state based on the target information, and the method further comprises:
receiving, from the terminal server, a first live keeping stop indication and stopping performing the live keeping on the target state based on the first live keeping stop indication, the first live keeping stop indication being based on detection that an idle resource value of the terminal device at a next time, with performing the live keeping on the target state, is less than a prediction resource value, wherein the prediction resource value is a minimum resource value needed and predicted for running a front-end program at the next time.

### Claim 9 (depends on 7)

The method according to claim 7, wherein it is determined to perform the live keeping on the target state based on the target information, the method further comprises:
receiving, from the terminal server, a second live keeping stop indication and stopping performing the live keeping on the target state based on the second live keeping stop indication, the second live keeping stop indication being based on detection that the target live keeping duration corresponding to the target state is reached.

### Claim 10 (depends on 1)

The method according to claim 1, wherein before the receiving the request from the client, the method further comprises:
receiving another request from the client and determining whether the terminal device has a live keeping function according to the another request;
transmitting the another request to the terminal server based on the terminal device having the live keeping function;
receiving a first response from the terminal server in response to the another request, the first response indicating that the client is a permissible client; and
transmitting a second response to the client based on the first response, the second response indicating that the terminal device has the live keeping function.

### Claim 11

A client live keeping method, performed by a terminal server, comprising:
receiving a request from a terminal device, the request comprising state information of a target state of a client running on the terminal device at a current time and a target live keeping duration corresponding to the target state;
determining whether the target state is permissible according to at least one of the state information of the target state or the target live keeping duration of the target state; and
transmitting target information to the terminal device based on determining that the target state is permissible, the target information indicating live keeping information of the target state, and the target information causing the terminal device to determine whether to perform live keeping on the target state according to the target information.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the determining whether the target state is permissible comprises:
determining that the target state is impermissible based on determining that the target live keeping duration corresponding to the target state is greater than a first preset duration.

### Claim 13 (depends on 11)

The method according to claim 11, wherein the determining whether the target state is permissible comprises:
obtaining historical live keeping request information corresponding to the client at a historical time according to the state information of the target state; and
determining whether the target state is permissible based on the historical live keeping request information corresponding to the client.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the determining whether the target state is permissible based on the historical live keeping request information corresponding to the client comprises:
determining state information that requests live keeping in the historical live keeping request information;
determining a number of states that request live keeping by the client in a historical time period based on the state information that requests live keeping in the historical live keeping request information; and
determining that the target state is impermissible based on the number of states that request live keeping in the historical time period being greater than a first preset value.

### Claim 15 (depends on 13)

The method according to claim 13, wherein the determining whether the target state is permissible based on the historical live keeping request information corresponding to the client comprises:
determining live keeping duration information requested in the historical live keeping request information;
determining a number of states with a requested live keeping duration greater than a second preset duration based on the live keeping duration information requested in the historical live keeping request information; and
determining that the target state is impermissible based on the number of states with the requested live keeping duration greater than the second preset duration exceeding a second preset value.

### Claim 16 (depends on 11)

The method according to claim 11, wherein before the transmitting the target information to the terminal device, the method further comprises:
obtaining a live keeping strategy, the live keeping strategy comprising a live keepable condition corresponding to a plurality of live keepable first preset states of the client; and
generating the target information based on the live keepable condition in the live keeping strategy.

### Claim 17 (depends on 16)

The method according to claim 16, wherein the target information comprises a live keeping result of the target state, and the generating the target information based on the live keepable condition in the live keeping strategy comprises:
determining the live keeping result of the target state based on the state information of the target state and the live keepable condition corresponding to the plurality of live keepable first preset states of the client.

### Claim 18 (depends on 17)

The method according to claim 17, wherein the live keepable condition corresponding to a first preset state comprises a resource value required by the terminal device to keep the first preset state alive, and
the determining the live keeping result comprises:
determining whether the target state is the first preset state according to the state information of the target state;
obtaining an idle resource value of the terminal device of the current time in response to determining that the target state is the first preset state; and
determining the live keeping result of the target state based on the idle resource value of the terminal device and a resource value needed by the terminal device to perform the live keeping on the target state.

### Claim 19 (depends on 18)

The method according to claim 18, wherein the determining the live keeping result of the target state comprises:
determining that the live keeping result of the target state is live keeping based on the resource value needed by the terminal device to perform the live keeping on the target state being less than a preset resource value and the idle resource value of the terminal device being greater than or equal to a prediction resource value;
otherwise, determining that the live keeping result of the target state is skipping live keeping; wherein the prediction resource value is a minimum resource value needed and predicted by the terminal device for running a front-end program at a next time.

### Claim 20

A client live keeping apparatus, comprising:
at least one memory configured to store program code; and
at least one processor configured to read the program code and operate as instructed by the program code, the program code including:
request receiving code configured to cause the at least one processor to receive, based on a client being switched to a background, a request comprising state information of a target state of the client at a current time and a target live keeping duration corresponding to the target state;
transmitting code configured to cause the at least one processor to transmit the request to a terminal server;
information receiving code configured to cause the at least one processor to receive, from the terminal server in response to the request, target information indicating live keeping information of the target state; and
determining code configured to cause the at least one processor to determine whether to perform live keeping on the target state based on the target information.
