Terminal equipment operation method and container operation method

By monitoring container resource occupation in the terminal device and switching to containers with larger resources when necessary, the problem of poor operation stability of terminal devices is solved, and the user experience and application resource utilization efficiency is improved.

CN119089428APending Publication Date: 2024-12-06CHINA MOBILE INTERNET CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411039627.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The operation of applications in terminal devices is caused by the stability problems caused by excessive container resource usage, which affects the user experience.

Method used

By monitoring the resource occupancy difference of the container, when the difference is less than the preset threshold, the terminal device switches from a container with smaller resources to a container with larger resources to ensure that the application obtains sufficient resources, improves operational stability, and in the user Container switching is performed without perception when not operating.

Benefits of technology

Improve the operating stability and user experience of terminal devices, ensure that the application runs under sufficient resources, and reduce the impact of container switching on user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089428A_ABST
    Figure CN119089428A_ABST
Patent Text Reader

Abstract

The invention discloses a terminal equipment operation method and a container operation method. The terminal equipment operation method comprises the following steps: acquiring operation information of terminal equipment; the operation information is responded to indicate that a user interrupts using a first application program currently running in the terminal equipment, and a difference value between a current resource parameter of a first container connected with the terminal equipment and an upper limit resource parameter of the first container is smaller than a preset difference value; and switching the terminal equipment from being connected with the first container to being connected with a second container, wherein the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container. In the application, when the resource occupation of the first container connected with the terminal equipment is relatively high, the terminal equipment is switched from the first container connection to the second container with a larger connection resource, so that the second container can provide enough resources for the application program operated by the terminal equipment, and the operation stability of the terminal equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of cloud technology, and in particular, relates to a terminal device operation method and a container operation method. Background Art

[0002] With the development of cloud technology, cloud containers can support the operation of applications in terminal devices.

[0003] The operation of applications in terminal devices requires the use of container resources. When more resources of the container are occupied by the terminal device, the operation of applications in the terminal device will be affected, resulting in poor operation stability of the terminal device. Summary of the invention

[0004] The embodiments of the present application provide a terminal device operation method and a container operation method to solve the problem of poor operation stability of the terminal device.

[0005] In a first aspect, an embodiment of the present application provides a terminal device operation method, which is applied to a terminal device, and the terminal device operation method includes:

[0006] Acquiring operation information of the terminal device;

[0007] In response to the operation information instructing the user to interrupt the use of the first application currently running on the terminal device, and the difference between the current resource parameter of the first container connected to the terminal device and the upper limit resource parameter of the first container is less than a preset difference, the terminal device is switched from connecting to the first container to connecting to a second container, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

[0008] In one embodiment, the user interrupting the use of the first application includes at least one of the following:

[0009] The first application is to be switched to a second application;

[0010] The operation information does not include the operation parameters of the first application in the current time period.

[0011] In another embodiment, after switching the terminal device from being connected to the first container to being connected to the second container, the method further includes:

[0012] Sending a request to switch the first application to the second application to the second container;

[0013] In response to the second container switching the first application to the second application, a running interface of the second application sent by the second container is displayed.

[0014] In another embodiment, after the terminal device is switched from being connected to the first container to being connected to the second container, before the request for switching the first application to the second application is sent to the second container, the step further includes:

[0015] A first display screen sent by the second container is displayed, where the first display screen is the same as the second display screen, and the second display screen is used to indicate a display screen displayed by the terminal device when the first container is switched to the second container.

[0016] In another embodiment, switching the terminal device from being connected to the first container to being connected to the second container includes:

[0017] Obtaining token parameters and connection parameters of the second container;

[0018] In response to successfully passing the connection verification of the second container based on the token parameters, connecting to the second container according to the connection parameters.

[0019] In a second aspect, an embodiment of the present application provides a container operation method, which is applied to a first container. The container operation method includes:

[0020] Obtaining current resource parameters of the first container;

[0021] In response to a difference between the current resource parameter and the upper limit resource parameter of the first container being less than a preset threshold, sending a prompt message to a terminal device connected to the first container;

[0022] The prompt information is used for the terminal device to switch the first container connected to the terminal device to the second container when the user interrupts the use of the first application currently running on the terminal device, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

[0023] In one embodiment, sending the prompt information to the terminal device connected to the first container includes:

[0024] Create a second container;

[0025] Acquire user data of the terminal device in the first container;

[0026] The user data is sent to the second container, and prompt information is sent to the terminal device through the second container.

[0027] In a third aspect, an embodiment of the present application provides a container operation method, which is applied to a second container, and the container operation method includes:

[0028] receiving a first token parameter and a connection parameter sent by a terminal device, wherein a difference between a current resource parameter of a first container to which the terminal device is connected and an upper limit resource parameter of the first container is less than a preset difference, and the operation information of the terminal device indicates that a user interrupts the use of an application currently running on the terminal device, and the terminal device sends the first token parameter and the connection parameter to the second container, so that the terminal device switches from connecting to the first container to connecting to the second container;

[0029] In response to the first token parameter matching the stored second token parameter of the second container, the second container is connected to the terminal device based on the connection parameter.

[0030] In one embodiment, after connecting the second container to the terminal device based on the connection parameter, the method further includes:

[0031] receiving a request sent by the terminal device to switch from the first application to the second application;

[0032] The request is executed to switch the terminal device from the first application to the second application, and a running interface of the second application is sent to the terminal device.

[0033] In another embodiment, before receiving the first token parameter and the connection parameter sent by the terminal device, the method further includes:

[0034] receiving user data of the terminal device in the first container sent by the first container, and acquiring a third token parameter and a first communication address of the first container;

[0035] acquiring connection parameters based on the user data, and sending the connection parameters, the third token parameters, the first communication address, and the second communication address of the second container to an authentication server;

[0036] receiving a token parameter sent by the authentication server to store as the second token parameter, wherein the authentication server sends the connection parameter and the configured token parameter of the second container to the terminal device after determining that the second container is compliant based on the third token parameter and the first communication address, and sends the token parameter of the second container to the second container.

[0037] In a fourth aspect, an embodiment of the present application provides a terminal device, including:

[0038] A first acquisition module, used to acquire operation information of the terminal device;

[0039] A switching module is used to switch the terminal device from connecting to the first container to connecting to a second container in response to the operation information instructing the user to interrupt the use of the first application currently running on the terminal device, and the difference between the current resource parameter of the first container connected to the terminal device and the upper limit resource parameter of the first container is less than a preset difference, wherein the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

[0040] In a fifth aspect, an embodiment of the present application provides a first container, including:

[0041] A second acquisition module, used to acquire current resource parameters of the first container;

[0042] A sending module, configured to send a prompt message to a terminal device connected to the first container in response to a difference between the current resource parameter and the upper limit resource parameter of the first container being less than a preset threshold; wherein the prompt message is used by the terminal device to switch the first container connected to the terminal device to a second container when a user interrupts the use of a first application currently running on the terminal device, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

[0043] In a sixth aspect, an embodiment of the present application provides a second container, including:

[0044] a receiving module, configured to receive a first token parameter and a connection parameter sent by a terminal device, wherein a difference between a current resource parameter of a first container to which the terminal device is connected and an upper limit resource parameter of the first container is less than a preset difference, and the operation information of the terminal device indicates that the user interrupts the use of an application currently running on the terminal device, and the terminal device sends the first token parameter and the connection parameter to the second container, so that the terminal device switches from connecting to the first container to connecting to the second container;

[0045] A connection module is configured to connect the second container with the terminal device based on the connection parameter in response to the first token parameter matching the stored second token parameter of the second container.

[0046] In a seventh aspect, an embodiment of the present application provides an operating device, the operating device comprising: a processor and a memory storing computer program instructions;

[0047] When the processor executes the computer program instructions, the terminal device operation method according to one aspect, the container operation method according to the second aspect, or the container operation method according to the third aspect is implemented.

[0048] In an eighth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the terminal device operation method of the first aspect, the container operation method of the second aspect, or the container operation method of the third aspect are implemented.

[0049] In a ninth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the terminal device operation method of the first aspect, implements the container operation method of the second aspect, or implements the container operation method of the third aspect.

[0050] The terminal device operation method provided in the embodiment of the present application obtains the operation information of the terminal device. When the operation information indicates that the user interrupts the use of the first application currently running on the terminal device, and the difference between the current resource parameter of the first container connected to the terminal device and the upper limit resource parameter of the first container is less than the preset difference, the terminal device is switched from connecting to the first container to connecting to the second container, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container. In the embodiment of the present application, when the resource occupancy of the first container connected to the terminal device is high, the terminal device is switched from connecting to the first container to connecting to the second container with larger resources, ensuring that the second container can provide sufficient resources for the application running on the terminal device, thereby improving the operation stability of the terminal device. Furthermore, the terminal device switches the container when the user interrupts the use of the current application, that is, the terminal device switches the container during the time period when the terminal device does not need to respond to the user operation to achieve imperceptible switching of the container, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0052] Figure 1 It is a schematic diagram of a framework structure that can implement the terminal device operation method provided in the embodiment of the present application;

[0053] Figure 2 It is a flowchart of the first embodiment of the terminal device operation method of the present application;

[0054] Figure 3 It is a flowchart of the second embodiment of the terminal device operation method of the present application;

[0055] Figure 4 It is a flowchart of the third embodiment of the terminal device operation method of the present application;

[0056] Figure 5 It is a flowchart of the first embodiment of the container operation method of the present application;

[0057] Figure 6 It is a flow chart of the second embodiment of the container operation method of the present application;

[0058] Figure 7 It is a flowchart of the first embodiment of the container operation method of the present application;

[0059] Figure 8 is the system architecture diagram involved in this application;

[0060] Fig. 9 is an interactive flow chart involved in this application;

[0061] Fig.10 It is a functional module diagram of the terminal device involved in this application;

[0062] Fig.11 is a functional module schematic diagram of the first container involved in the present application;

[0063] Fig.12 is a functional module schematic diagram of the second container involved in the present application;

[0064] Fig.13 It is a schematic diagram of the structure of the operating device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0065] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0066] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0067] With the development of cloud technology, cloud containers can support the operation of applications in terminal devices.

[0068] The inventors of the present application have discovered that the operation of applications in a terminal device requires occupying container resources. When a large amount of container resources are occupied by the terminal device, the operation of applications in the terminal device will be affected, resulting in poor operational stability of the terminal device.

[0069] The inventor of the present application therefore conceived that, when the resource occupancy of the first container connected to the terminal device is high, the terminal device is switched from connecting to the first container to connecting to a second container with larger resources, thereby ensuring that the second container can provide sufficient resources for the application running on the terminal device, thereby improving the operating stability of the terminal device.

[0070] Furthermore, the inventor of the present application provides a terminal device operation method based on the present application. When the terminal device switches from the first container to the second container, the service provided by the container will be interrupted, causing the terminal device to be unable to respond to the user's operation on the terminal device, thereby reducing the user experience. Based on this, the terminal device in the present application switches the container when the user interrupts the use of the current application, that is, the terminal device switches the container during the time period when it does not need to respond to the user's operation to achieve imperceptible switching of the container, thereby improving the user experience.

[0071] The embodiments of the present application provide a terminal device operation method and a container operation method. The following first illustrates an example framework to which the terminal device operation method provided by the embodiments of the present application can be applied.

[0072] like Figure 1As shown, the terminal device 100 can be connected to the first container 200 via the Real Time Messaging Protocol (RTMP), the Http Live Streaming (HLS) or the Web Real-Time Communication (WebRTC). The terminal device 100 can be a physical device such as a cloud phone client, a smart phone, a tablet, etc. The first container 200 can be a containerized cloud phone instance. The instantiated cloud phone instance refers to the cloud phone instance encapsulated in the container. The first container 200 has fixed resources, that is, the first container 200 has upper limit resource parameters, and the upper limit resource parameters are, for example, the maximum computing resources and the maximum storage resources of the first container 200.

[0073] When the first container 200 detects that the occupied resources are too high, it will send a prompt message to the terminal device 100 to switch containers. The operation information detected by the terminal device 100 indicates that the user interrupts the application currently running on the terminal device 100, and the terminal device 100 disconnects from the first container 200 and connects to the second container 300 through the Real Time Messaging Protocol (RTMP), Http Live Streaming (HLS) or Web Real-Time Communication (WebRTC). The upper limit resource parameter of the second container 300 is greater than the upper limit resource parameter of the first container.

[0074] Combination Figure 1 , the terminal device operation method provided in the embodiment of the present application is introduced.

[0075] Figure 2 The flowchart of the first embodiment of the terminal device operation method provided by the present application is shown. The terminal device operation method can be applied to terminal devices such as Figure 2 As shown, the terminal device operation method includes:

[0076] Step S201, obtaining operation information of the terminal device.

[0077] In this embodiment, the execution subject is a terminal device, which can be a physical device such as a cloud phone client, a smart phone, or a tablet. The terminal device is connected to the first container via RTMP, HLS, or WebRTC. The terminal device can be understood as a client of a virtual device running on a cloud container based on cloud computing technology. Multiple applications are loaded on the terminal device. For example, the terminal device can provide mobile office for users through the loaded applications. For another example, the terminal device can provide cloud games for users through applications.

[0078] The data transmitted between the terminal device and the first container includes audio stream, video stream, instruction stream and other data. Audio stream data refers to the audio continuously provided by the first container to the terminal device, video stream data refers to the display image continuously provided by the first container to the terminal device, and instruction stream data refers to the continuous instructions transmitted between the first container and the terminal device.

[0079] It should be noted that when the data transmitted between the terminal device and the first container is an audio stream or a video stream, there are high requirements for the data transmission delay. The terminal device is connected to the first container in a manner with a smaller transmission delay. For example, the terminal device uses WebRTC with a smaller transmission delay to establish a point-to-point direct connection with the first container.

[0080] The first container refers to a containerized instance. When the terminal device is a cloud phone client, the instance is a cloud phone instance. The containerized instance refers to an instance encapsulated in a container. The first container has fixed resources, including storage resources and computing resources.

[0081] After the first container is connected to the terminal device, the first container will monitor its current resource parameters. The current resource parameters include at least one of the CPU (Central Processing Unit) ratio, memory ratio, and storage ratio. In addition, the first container performs a weighted calculation based on the CPU ratio, memory ratio, and storage ratio and the weights corresponding to the three ratios to obtain a weighted ratio, which is used as the current resource parameter.

[0082] After the first container obtains the current resource parameter, it determines the difference between its own upper limit resource parameter and the current resource parameter, and the upper limit resource parameter is of the same type as the current resource parameter. For example, if the current resource parameter is the memory ratio, the upper limit resource ratio is the maximum memory ratio; if the current resource parameter is the storage ratio, the upper limit resource parameter is the maximum storage ratio. It should be noted that the difference refers to the difference obtained by subtracting the current resource parameter from the upper limit resource parameter.

[0083] After obtaining the difference, the first container determines whether the difference is less than the preset difference. When the difference is less than the preset difference, it can be determined that the resource proportion in the first container is too high, which will affect the operational stability of the terminal device, and the first container sends a prompt message to the terminal device. The prompt message is used to prompt the terminal device to switch from the first container to the second container with a larger upper limit resource parameter. The prompt message can be a suggestion message for the terminal device, and the prompt message can also be a switching instruction to require the terminal device to connect to the second container with a larger upper limit resource parameter.

[0084] After the terminal device receives the prompt information, it obtains the operation information of the terminal device. It is understandable that after the prompt information is sent by the first container, the terminal device will not switch the container immediately, but will determine whether there is an opportunity to switch the container based on the operation information. The reason is that the first container provides services to enable the application in the terminal device to run normally. When the terminal device switches from the first container to the second container, the service provided by the first container is interrupted, making the application unable to respond to the user's operation, reducing the user experience.

[0085] The time for switching from the first container to the second container is relatively short. In order to avoid missing the opportunity to switch, the terminal device can obtain operation information in real time. Each time the operation information is obtained, it is necessary to determine whether the terminal device can switch the container. The timing of container switching is specifically: the operation information indicates that the user interrupts the use of the first application currently running on the terminal device. The first application refers to the application running in the foreground of the terminal device, that is, the first application is the application currently used by the user.

[0086] The user interrupts the use of the first application program, including at least one of the following: the first application program is to be switched to the second application program; the operation information does not include the operation parameters of the first application program in the current time period.

[0087] A specific example of the first application being switched to the second application is as follows:

[0088] In one example, when the operation information includes an opening operation for an application at the current time point, and the application of the opening operation is different from the first application, it can be determined that the first application is to be switched to the second application.

[0089] In another example, when the operation information includes an application switching operation at the current time point, the switching operation is, for example, a switching operation for an application running in the background. For example, the terminal device displays various applications running in the background, and when the terminal device detects a click operation for any application running in the background, the click operation can be determined as a switching operation.

[0090] The operation information does not include the operation parameters of the first application in the current time period, and the corresponding examples are as follows:

[0091] The current time period refers to the time period including the current time point, and the current time period includes a start time point and an end time point, and the current time point is earlier than or equal to the end time point. Each operation parameter in the operation information has a corresponding operation time point, and the terminal device detects whether the operation information includes the operation parameters for the first application in the current time period. If the operation information does not include the operation parameters of the first application in the current time period, it can be determined that the user has not operated the first application for a long time, and the terminal device can determine that the user has interrupted the use of the first application.

[0092] Furthermore, the first application is executing a certain task, so the user may not operate the first application for a long time. For example, the first application is a game application, and the task is a group task in the game. The group task is automatically executed by the first application, so the user may not operate the first application for a long time. In this regard, when the operation information does not include the operation parameters of the first application in the current time period, the terminal device obtains the tasks executed in the first application, and in response to each task being a task that continues to be executed after interruption, it can be determined that the user has interrupted the use of the first application; in response to any task being a task that cannot be continued after interruption, it is determined that the user has not interrupted the use of the first application.

[0093] Step S202: In response to the operation information instructing the user to interrupt the use of the first application currently running on the terminal device, and the difference between the current resource parameter of the first container connected to the terminal device and the upper limit resource parameter of the first container is less than a preset difference, the terminal device is switched from connecting to the first container to connecting to the second container, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

[0094] When the terminal device detects that the user stops using the first application, the terminal device can switch from the connected first container to the connected second container. The upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

[0095] In one example, each idle container in the cloud can periodically send its own upper limit resource parameters to the terminal device. An idle container refers to a container that is not connected to other devices and whose resources are not occupied. Therefore, the terminal device has the upper limit resource parameters of each idle container. In this regard, the device selects a second container from each idle container, that is, an idle container corresponding to a target upper limit resource parameter that is greater than the upper limit resource parameter of the first container, and determines it as the second container, and the target upper limit resource parameter refers to the upper limit resource parameter of the idle container.

[0096] In another example, the first container may request the cloud server to create a second container, and the upper limit resource parameter of the created second container is greater than the upper limit resource parameter of the first container. The first container may send the communication address set by the cloud server for the second container to the terminal device, so that the terminal device switches from connecting to the first container to connecting to the second container.

[0097] In order to further ensure the operational stability of the terminal device, the upper limit resource parameter of the second container not only needs to be greater than the upper limit resource value of the first container, but also the difference between the upper limit resource parameter of the second container and the current resource parameter of the first container needs to be greater than or equal to the preset difference, thereby ensuring that after the terminal device is connected to the second container, the resource occupancy of the second container will not be too high, further improving the operational stability of the terminal device.

[0098] In this embodiment, the operation information of the terminal device is obtained. When the operation information indicates that the user interrupts the use of the first application currently running on the terminal device, and the difference between the current resource parameter of the first container connected to the terminal device and the upper limit resource parameter of the first container is less than the preset difference, the terminal device is switched from connecting to the first container to connecting to the second container, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container. In the embodiment of the present application, when the resource occupancy of the first container connected to the terminal device is high, the terminal device is switched from connecting to the first container to connecting to the second container with larger resources, ensuring that the second container can provide sufficient resources for the application running on the terminal device, thereby improving the operational stability of the terminal device. Furthermore, the terminal device switches the container when the user interrupts the use of the current application, that is, the terminal device switches the container during the time period when the terminal device does not need to respond to user operations to achieve imperceptible switching of the container, thereby improving the user experience.

[0099] Reference Figure 3 , Figure 3 The flowchart of the second embodiment of the terminal device operation method of the present application is shown. Based on the first embodiment, after step S202, it also includes:

[0100] Step S301: Send a request for switching from a first application to a second application to a second container.

[0101] In this embodiment, the situation where the user interrupts the use of the first application is that the first application is to be switched to the second application.

[0102] The first application is to be switched to the second application, which means that the first container needs to execute instructions to make the second application run as the foreground application. However, the terminal device has been disconnected from the first container, so the second container connected to the terminal device needs to execute instructions to make the second application run as the foreground application. In this regard, the terminal device sends a request to switch the first application to the second application to the second container.

[0103] Step S302: In response to the second container switching the first application to the second application, a running interface of the second application sent by the second container is displayed.

[0104] Before the terminal device switches the first container to the second container, the first container sends the user data of the terminal device in the first container to the second container, so that the second container can continue to provide services to the terminal device based on the user data. When the second container receives the request, it executes the request to switch the first application to the second application, and sends the running interface of the second application after running to the terminal device, so that the terminal device displays the running interface of the second application sent by the second container.

[0105] After testing, the terminal device switches from the first container to the second container, and the interval between the terminal device displaying the running interface is less than 1 second, that is, the container capacity expansion of the terminal device connection is achieved imperceptibly during the switching gap of the application.

[0106] In this embodiment, the terminal device sends a request to switch the first application to the second application to the second container, so that the second container adjusts the display screen of the terminal device to the running interface of the second application to complete the switching of the second application.

[0107] In one embodiment, when the terminal device switches from connecting to the first container to connecting to the second container, the terminal device displays the first display screen sent by the second container, the first display screen is the same as the second display screen, and the second display screen is used to indicate the display screen displayed by the terminal device when switching from the first container to the second container.

[0108] Specifically, the first container sends the user data of the terminal device in the first container to the second container, so that the second container continues to execute the instructions sent by the terminal device based on the user data, that is, the first display screen displayed after the terminal device switches to the second container is the same as the display screen displayed when the terminal is disconnected from the first container.

[0109] It should be noted that after displaying the first display screen, the terminal device sends a request to switch from the first application to the second application to the second container, so that the terminal device switches from the first display screen to the running interface of the second application.

[0110] In this embodiment, since the interval between the terminal device switching the first container to the second container is short, the interval between the first display screen and the second display screen displayed by the terminal device is also short, that is, the terminal device displays the same display screen before and after the container is switched, thereby achieving imperceptible container switching.

[0111] Reference Figure 4 , Figure 4 A schematic diagram showing a flow chart of a third embodiment of the terminal device operation method provided by the present application is shown. Figure 2 or Figure 3 In the illustrated embodiment, step S202 includes:

[0112] Step S401, obtaining token parameters and connection parameters of the second container.

[0113] In this embodiment, the second container is created by the first container, and the second container needs to be authenticated to determine whether the second container is created in compliance. The second container obtains the IP address and token parameters of the first container from the first container, and the second container sends its own IP address, user information, media information, candidate information, the IP address of the first container, and the token parameters of the first container to the authentication server.

[0114] The authentication server may be a signaling server corresponding to the connection mode between the first container and the terminal device. For example, if the connection mode between the first container and the terminal device is WebRTC, the authentication server is a WebRTC signaling server.

[0115] The authentication server determines whether the second container is compliant based on the IP of the first container sent by the second container and the token parameters of the first container. Specifically, the authentication server stores the IP and token parameters of the first container. If the IP of the stored first container is the same as the IP of the first container sent by the second container, and the information parsed by the token parameters sent by the second container is the same as the information parsed by the token parameters of the stored first container, then it can be determined that the second container is compliant.

[0116] After the authentication server determines that the second container is compliant, it configures new token parameters for the second container and sends the user information, media information, candidate information, token parameters of the second container, and the IP of the second container as prompt information to the terminal device. In addition, the authentication server sends the new token parameters to the second container for storage. That is, the terminal device obtains the token parameters and connection parameters of the second container from the authentication server. The connection parameters include user information, media information, candidate information, and the IP of the second container.

[0117] Step S402, in response to successfully passing the connection check of the second container based on the token parameters, connecting to the second container according to the connection parameters.

[0118] After the terminal device receives the user information, if the user information contains the device identification of the terminal device, the terminal device can determine that the second container is the container that the first container allows to switch. The terminal device sends the token parameters of the second container to the second container based on the IP of the second container. When the token parameters received by the second container from the terminal device match the token parameters sent by the authentication server, the second container is connected to the second container through the connection parameters, that is, the terminal device initiates a point-to-point media information connection with the second container through the media information and the candidate information.

[0119] In this embodiment, the terminal device ensures that the terminal device is compliant to connect to the second container through the token parameters and leveling parameters of the second container.

[0120] Reference Figure 5 , Figure 5 A flow chart of a first embodiment of a container operation method provided by the present application is shown, which is applied to a first container. The container operation method includes:

[0121] Step S501: Acquire current resource parameters of the first container.

[0122] In this embodiment, the execution subject is the first container. After the first container is connected to the terminal device, the first container will monitor its own current resource parameters. The current resource parameters include at least one of the CPU (Central Processing Unit) ratio, memory ratio, and storage ratio. In addition, the first container performs weighted calculation based on the CPU ratio, memory ratio, and storage ratio and the weights corresponding to the three ratios to obtain a weighted ratio, and the weighted ratio is used as the current resource parameter.

[0123] After the first container obtains the current resource parameter, it determines the difference between its own upper limit resource parameter and the current resource parameter, and the upper limit resource parameter is of the same type as the current resource parameter. For example, if the current resource parameter is the memory ratio, the upper limit resource ratio is the maximum memory ratio; if the current resource parameter is the storage ratio, the upper limit resource parameter is the maximum storage ratio. It should be noted that the difference refers to the difference obtained by subtracting the current resource parameter from the upper limit resource parameter.

[0124] Step S502: In response to the difference between the current resource parameter and the upper limit resource parameter of the first container being less than a preset threshold, a prompt message is sent to the terminal device connected to the first container; wherein the prompt message is used for the terminal device to switch the first container connected to the terminal device to a second container when a user interrupts the use of the first application currently running on the terminal device, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

[0125] After obtaining the difference, the first container determines whether the difference is less than the preset difference. When the difference is less than the preset difference, it can be determined that the resource proportion in the first container is too high, which will affect the operational stability of the terminal device, and the first container sends a prompt message to the terminal device. The prompt message is used to prompt the terminal device to switch from the first container to the second container with a larger upper limit resource parameter. The prompt message can be a suggestion message for the terminal device, and the prompt message can also be a switching instruction to require the terminal device to connect to the second container with a larger upper limit resource parameter.

[0126] After the terminal device receives the prompt information, it obtains the operation information of the terminal device. It is understandable that after the prompt information is sent by the first container, the terminal device will not switch the container immediately, but will determine whether there is an opportunity to switch the container based on the operation information. The reason is that the first container provides services to enable the application in the terminal device to run normally. When the terminal device switches from the first container to the second container, the service provided by the first container is interrupted, making the application unable to respond to the user's operation, reducing the user experience.

[0127] The time for the first container to switch to the second container is relatively short, so the terminal device can obtain the operation information in real time. Each time the operation information is obtained, it is necessary to determine whether the terminal device can switch the container. The timing of container switching is specifically: the operation information indicates that the user interrupts the use of the first application currently running on the terminal device. The first application refers to the application running in the foreground of the terminal device, that is, the first application is the application currently used by the user.

[0128] The user interrupts the use of the first application program, including at least one of the following: the first application program is to be switched to the second application program; the operation information does not include the operation parameters of the first application program in the current time period.

[0129] A specific example of the first application being switched to the second application is as follows:

[0130] In one example, when the operation information includes an opening operation for an application at the current time point, and the application of the opening operation is different from the first application, it can be determined that the first application is to be switched to the second application.

[0131] In another example, when the operation information includes an application switching operation at the current time point, the switching operation is, for example, a switching operation for an application running in the background. For example, the terminal device displays various applications running in the background, and when the terminal device detects a click operation for any application running in the background, the click operation can be determined as a switching operation.

[0132] The operation information does not include the operation parameters of the first application in the current time period, and the corresponding examples are as follows:

[0133] The current time period refers to the time period including the current time point, and the current time period includes a start time point and an end time point, and the current time point is earlier than or equal to the end time point. Each operation parameter in the operation information has a corresponding operation time point, and the terminal device detects whether the operation information includes the operation parameters for the first application in the current time period. If the operation information does not include the operation parameters of the first application in the current time period, it can be determined that the user has not operated the first application for a long time, and the terminal device can determine that the user has interrupted the use of the first application.

[0134] Furthermore, the first application is executing a certain task, so the user may not operate the first application for a long time. For example, the first application is a game application, and the task is a group task in the game. The group task is automatically executed by the first application, so the user may not operate the first application for a long time. In this regard, when the operation information does not include the operation parameters of the first application in the current time period, the terminal device obtains the tasks executed in the first application, and in response to each task being a task that continues to be executed after interruption, it can be determined that the user has interrupted the use of the first application; in response to any task being a task that cannot be continued after interruption, it is determined that the user has not interrupted the use of the first application.

[0135] When the terminal device detects that the user stops using the first application, the terminal device can switch from the connected first container to the connected second container. The upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

[0136] In one example, each idle container in the cloud can periodically send its own upper limit resource parameters to the terminal device. An idle container refers to a container that is not connected to other devices and whose resources are not occupied. Therefore, the terminal device has the upper limit resource parameters of each idle container. In this regard, the device selects a second container from each idle container, that is, an idle container corresponding to a target upper limit resource parameter that is greater than the upper limit resource parameter of the first container, and determines it as the second container, and the target upper limit resource parameter refers to the upper limit resource parameter of the idle container.

[0137] In another example, the first container may request the cloud server to create a second container, and the upper limit resource parameter of the created second container is greater than the upper limit resource parameter of the first container. The first container may send the communication address set by the cloud server for the second container to the terminal device, so that the terminal device switches from connecting to the first container to connecting to the second container.

[0138] In order to further ensure the operational stability of the terminal device, the upper limit resource parameter of the second container not only needs to be greater than the upper limit resource value of the first container, but also the difference between the upper limit resource parameter of the second container and the current resource parameter of the first container needs to be greater than or equal to the preset difference, thereby ensuring that after the terminal device is connected to the second container, the resource occupancy of the second container will not be too high, further improving the operational stability of the terminal device.

[0139] It should be noted that the first container may also obtain operation information, and determine whether the user interrupts the use of the first application program through the operation information. When the user interrupts the use of the first application program and the difference between the current resource parameter of the first container and the upper limit resource parameter of the first container is less than the preset difference, a prompt message is sent to the terminal device, so that the terminal device switches from connecting to the first container to connecting to the second container.

[0140] In addition, when the first container detects that the connection with the terminal device is disconnected, the first container releases resources, so that the first container becomes an idle container to wait for the connection of other terminals.

[0141] In this embodiment, when the difference between the current resource parameter of the first container and the upper limit resource parameter of the first container is less than the preset difference, a prompt message is sent to the terminal device connected to the first container, so that when the terminal device detects that the user interrupts the use of the first application currently running on the terminal device, it switches from connecting to the first container to connecting to the second container, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container. In the embodiment of the present application, when the resource occupancy of the first container connected to the terminal device is high, the terminal device is switched from connecting to the first container to connecting to the second container with larger resources, ensuring that the second container can provide sufficient resources for the application running on the terminal device, thereby improving the operational stability of the terminal device. Furthermore, the terminal device switches the container when the user interrupts the use of the current application, that is, the terminal device switches the container during the time period when the terminal device does not need to respond to user operations to achieve imperceptible switching of the container, thereby improving the user experience.

[0142] Reference Figure 6 , Figure 6 A schematic diagram of the process of the first embodiment of the container operation method provided by the present application is shown. Figure 5 In the illustrated embodiment, step S502 includes:

[0143] Step S601: Create a second container.

[0144] In this embodiment, after detecting that its own resource share is too high, the first container sends a request to the cloud server to create a second container. Specifically, the first container sends a creation request to the cloud server, and the creation request is used to request the cloud server to create a second container with a resource parameter greater than the upper limit of the first container. Of course, the first container also has the authority to create the second container, that is, the first container can directly create the second container.

[0145] Step S602: Acquire user data of the terminal device in the first container.

[0146] Step S603: Send user data to the second container, and send prompt information to the terminal device through the second container.

[0147] The first container obtains the user data of the terminal device in the first container, that is, directly copies the data in the first container as the user data. The first container sends the user data to the second container, and sends prompt information to the terminal device through the second container.

[0148] Specifically, after the first container creates the second container, the second container needs to be authenticated to determine whether the second container is created in compliance. The second container obtains the IP of the first container and the token parameters of the first container from the user data, and the second container sends its own IP, user information, media information, candidate information in the user data, the IP of the first container, and the token parameters of the first container to the authentication server. The authentication server can be a signaling server corresponding to the connection method between the first container and the terminal device. For example, if the connection method between the first container and the terminal device is WebRTC, the authentication server is a WebRTC signaling server.

[0149] The authentication server determines whether the second container is compliant based on the IP of the first container sent by the second container and the token parameters of the first container. Specifically, the authentication server stores the IP and token parameters of the first container. If the IP of the stored first container is the same as the IP of the first container sent by the second container, and the information parsed by the token parameters sent by the second container is the same as the information parsed by the token parameters of the stored first container, then it can be determined that the second container is compliant.

[0150] After the authentication server determines that the second container is compliant, it configures new token parameters for the second container and sends the user information, media information, candidate information, token parameters of the second container, and IP of the second container as prompt information to the terminal device. In addition, the authentication server sends the new token parameters to the second container for storage.

[0151] After the terminal device receives the user information, if the user information contains the device identification of the terminal device, the terminal device can determine that the second container is the container that the first container allows to switch. The terminal device sends the token parameters of the second container to the second container based on the IP of the second container. When the token parameters received by the second container from the terminal device match the token parameters sent by the authentication server, the second container is connected to the second container through the connection parameters, that is, the terminal device initiates a point-to-point media information connection with the second container through the media information and the candidate information.

[0152] After the terminal device is connected to the second container, the second container needs to switch the audio and video stream. That is, the second container sends the first display screen to the terminal device. The first display screen is specifically described above and will not be repeated here. Further, the terminal device sends a request to the second container to switch the first application to the second application. After the second container executes the request, the switching of the second application is completed. The second container then sends the running interface of the second application to the terminal device for display.

[0153] In this embodiment, the first container creates the second container and sends the user data of the terminal device on the first container to the second container, so that after the second container is connected to the terminal device, the second container continues to provide the terminal device with the services provided by the first container based on the user data.

[0154] Reference Figure 7 , Figure 7 A flow chart of a first embodiment of a container operation method provided by the present application is shown, which is applied to a second container. The container operation method includes:

[0155] Step S701, receiving a first token parameter and a connection parameter sent by a terminal device, wherein a difference between a current resource parameter of a first container to which the terminal device is connected and an upper limit resource parameter of the first container is less than a preset difference, and operation information of the terminal device instructs a user to interrupt the use of an application currently running on the terminal device, and the terminal device sends the first token parameter and the connection parameter to a second container, so that the terminal device switches from connecting to the first container to connecting to the second container.

[0156] Step S702: in response to the first token parameter matching the second token parameter of the stored second container, the second container is connected to the terminal device based on the connection parameter.

[0157] In this embodiment, the execution subject is the second container. When the terminal device needs to switch from the first container to the second container, the terminal device connects to the second container through the connection parameter and the first token parameter.

[0158] In an example, the second container is created by the first container, and the connection parameter and the first token parameter are sent by the authentication server. Please refer to the above description for details, which will not be repeated here.

[0159] In another example, the second container is an existing container that releases resources and is not created by the first container. In this case, the connection parameters and the first token parameters are sent by the second container, that is, the second container extracts the connection parameters from the user data sent by the first container, and then sends the connection parameters and the first token parameters of the second container to the terminal device.

[0160] The second container performs a connection verification with the first token parameter sent by the terminal device and the second token parameter stored in the second container. If the first token parameter matches the second token parameter, the connection verification passes, and the terminal device connects to the second container based on the connection parameter. For specific details, refer to the above description and will not be repeated here.

[0161] Furthermore, after the second container is connected to the terminal device, the method further includes:

[0162] Receiving a request from a terminal device to switch from a first application to a second application;

[0163] A request is executed to switch the terminal device from the first application to the second application, and a running interface of the second application is sent to the terminal device.

[0164] The terminal device switches from the first application to the second application. Please refer to the above description for details, which will not be repeated here.

[0165] Furthermore, before the second container receives the first token parameter and the connection parameter sent by the terminal device, the second container further includes:

[0166] receiving user data of the terminal device in the first container sent by the first container, and acquiring a third token parameter and a first communication address of the first container;

[0167] acquiring connection parameters based on the user data, and sending the connection parameters, the third token parameter, the first communication address, and the second communication address of the second container to the authentication server;

[0168] The token parameter sent by the authentication server is received to be stored as a second token parameter, wherein after the authentication server determines that the second container is compliant based on the third token parameter and the first communication address, the connection parameter, the second communication address, and the configured token parameter of the second container are sent to the terminal device, and the token parameter of the second container is sent to the second container.

[0169] The data interaction between the authentication server and the second container and the terminal device is specifically described above and will not be described in detail here.

[0170] For details on the interaction between the second container and the authentication server, refer to Figure 8 , the terminal device 810 is connected to the first container 820. When the first container 820 detects that its own resource ratio is high, the first container 820 creates the second container 830, and the first container 820 sends the user data of the terminal device 810 to the second container 830. The second container 830 obtains the connection parameters from the user data, and sends the connection parameters, the first IP of the first container 820, the token parameters of the first container 820, and the IP of the second container 830 to the authentication server 840. The authentication server 840 performs a compliance check on the second container 830 based on the first IP and the token parameters of the first container 820. If the compliance check is successful, the authentication server 840 configures the token parameters for the second container 830, sends the token parameters of the second container 830 to the second container 830, and sends the token parameters, the second IP and the connection parameters of the second container 830 to the terminal device 810. When the terminal device 810 detects that the user interrupts the use of the currently running application, it connects to the second container 830 based on the token parameters and connection parameters of the second container 830.

[0171] The above process is specifically referred to Fig. 9 Interaction flow chart:

[0172] S901, the first container monitors its own resource ratio;

[0173] S902, when the resource proportion is high, a prompt message is sent to the terminal device, and the difference between the current resource parameter and the upper limit resource parameter of the first container is less than the preset difference, so that it can be determined that the resource proportion of the first container is relatively high;

[0174] S903, the first container copies the user data of the terminal device in the first container;

[0175] S904, the first container creates a second container, and sends the user data, the IP address of the first container, and the token to the second container;

[0176] S905, the second container sends the user information, media information, and candidate information in the user data to the authentication server, and sends the first IP of the first container, the first token of the first container, and the second IP of the second container to the authentication server;

[0177] S906, the authentication server performs compliance verification on the second container based on the first IP and the first token;

[0178] S907, after the compliance verification of the second container succeeds, the authentication server configures a second token for the second container;

[0179] S908, the authentication server sends the second token to the second container, and sends the second token, the second IP, the user information, the media information, and the candidate information to the terminal device;

[0180] S909, when the terminal device detects that the user interrupts the use of the first application, the terminal device connects to the second container based on the second token, the user information, the media information, and the candidate information;

[0181] S910, after the terminal device is successfully connected to the second container, the second container sends the first display screen to the terminal device for display;

[0182] S911, the terminal device sends a request to the second container to switch the first application to the second application;

[0183] S912, the second container executes the request;

[0184] S913: The second container sends the running interface of the second application to the terminal device.

[0185] like Fig.10 As shown, the embodiment of the present application further provides a terminal device 1000, and the terminal device 1000 includes:

[0186] The first acquisition module 1010 is used to acquire operation information of the terminal device;

[0187] The switching module 1020 is used to switch the terminal device from connecting to the first container to connecting to the second container in response to the operation information instructing the user to interrupt the use of the first application currently running on the terminal device, and the difference between the current resource parameter of the first container connected to the terminal device and the upper limit resource parameter of the first container is less than a preset difference, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

[0188] In one embodiment, the user interrupting the use of the first application includes at least one of the following:

[0189] The first application is to be switched to the second application;

[0190] The operation information does not include the operation parameters of the first application in the current time period.

[0191] In another embodiment, the terminal device 1000 is further configured to:

[0192] Sending a request to switch from the first application to the second application to the second container;

[0193] In response to the second container switching the first application to the second application, a running interface of the second application sent by the second container is displayed.

[0194] In another embodiment, the terminal device 1000 is further configured to:

[0195] The first display screen sent by the second container is displayed, the first display screen is the same as the second display screen, and the second display screen is used to indicate the display screen displayed by the terminal device when the first container is switched to the second container.

[0196] In another embodiment, the terminal device 1000 is further configured to:

[0197] Get the token parameters and connection parameters of the second container;

[0198] In response to successfully passing the connection check of the second container based on the token parameters, a connection is established with the second container according to the connection parameters.

[0199] It should be noted that the terminal device is a device corresponding to the above-mentioned terminal device operation method, and all implementation methods in the above-mentioned method embodiments are applicable to the embodiments and can achieve the same technical effect.

[0200] like Fig.11 As shown, the embodiment of the present application further provides a first container 1100, including:

[0201] The second acquisition module 1110 is used to acquire the current resource parameters of the first container;

[0202] The sending module 1120 is used to send a prompt message to the terminal device connected to the first container in response to the difference between the current resource parameter and the upper limit resource parameter of the first container being less than a preset threshold; wherein the prompt message is used for the terminal device to switch the first container connected to the terminal device to a second container when the user interrupts the use of the first application currently running on the terminal device, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

[0203] In one embodiment, the first container 1100 is also used for:

[0204] Create a second container;

[0205] Acquire user data of the terminal device in the first container;

[0206] The user data is sent to the second container, and the prompt information is sent to the terminal device through the second container.

[0207] It should be noted that the first container is a device corresponding to the above-mentioned container operation method, and all implementation methods in the above-mentioned method embodiment are applicable to the embodiment and can achieve the same technical effect.

[0208] like Fig.12 As shown, the embodiment of the present application further provides a second container 1200, including:

[0209] The receiving module 1210 is configured to receive a first token parameter and a connection parameter sent by a terminal device, wherein a difference between a current resource parameter of a first container to which the terminal device is connected and an upper limit resource parameter of the first container is less than a preset difference, and the operation information of the terminal device indicates that the user interrupts the use of an application currently running on the terminal device, and the terminal device sends the first token parameter and the connection parameter to the second container, so that the terminal device switches from connecting to the first container to connecting to the second container;

[0210] The connection module 1220 is configured to connect the second container to the terminal device based on the connection parameter in response to the first token parameter matching the second token parameter stored in the second container.

[0211] In one embodiment, the second container 1200 is also used for:

[0212] Receiving a request from a terminal device to switch from a first application to a second application;

[0213] A request is executed to switch the terminal device from the first application to the second application, and a running interface of the second application is sent to the terminal device.

[0214] In one embodiment, the second container 1200 is also used for:

[0215] receiving user data of the terminal device in the first container sent by the first container, and acquiring a third token parameter and a first communication address of the first container;

[0216] acquiring connection parameters based on the user data, and sending the connection parameters, the third token parameter, the first communication address, and the second communication address of the second container to the authentication server;

[0217] The token parameter sent by the authentication server is received to be stored as a second token parameter, wherein after the authentication server determines that the second container is compliant based on the third token parameter and the first communication address, the connection parameter, the second communication address, and the configured token parameter of the second container are sent to the terminal device, and the token parameter of the second container is sent to the second container.

[0218] It should be noted that the second container is a device corresponding to the above-mentioned container operation method, and all implementation methods in the above-mentioned method embodiment are applicable to the embodiment and can achieve the same technical effect.

[0219] Fig.13 A schematic diagram of the hardware structure of the operating device provided in an embodiment of the present application is shown.

[0220] The operating device may include a processor 1301 and a memory 1302 storing computer program instructions.

[0221] Specifically, the processor 1301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0222] The memory 1302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 1302 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 1302 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1302 is a non-volatile solid-state memory.

[0223] In certain embodiments, the memory 1302 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect, the second aspect or the third aspect of the present disclosure.

[0224] The processor 1301 reads and executes computer program instructions stored in the memory 1302 to implement any terminal device operation method or any container operation method in the above embodiments.

[0225] In one example, the operating device may further include a communication interface 1303 and a bus 1313. Fig.13 As shown, the processor 1301, the memory 1302, and the communication interface 1303 are connected via a bus 1313 and communicate with each other.

[0226] The communication interface 1303 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0227] Bus 1313 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1313 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0228] In addition, in combination with the terminal device operation and container operation methods in the above embodiments, the embodiments of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any terminal device operation method or any container operation method in the above embodiments is implemented.

[0229] An embodiment of the present application also provides a computer program product, including a computer program, which, when processed and executed, implements any terminal device operating method or any container operating method in the above embodiments.

[0230] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0231] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0232] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0233] Aspects of the present disclosure are described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable terminal device operating device to produce a machine so that these instructions executed by the processor of the computer or other programmable terminal device operating device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0234] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A terminal device operation method, applied to a terminal device, characterized in that: The terminal device operation method comprises: Acquiring operation information of the terminal device; In response to the operation information instructing the user to interrupt the use of the first application currently running on the terminal device, and the difference between the current resource parameter of the first container connected to the terminal device and the upper limit resource parameter of the first container is less than a preset difference, the terminal device is switched from connecting to the first container to connecting to a second container, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

2. The terminal device operation method according to claim 1, characterized in that: The user interrupting the use of the first application includes at least one of the following: The first application is to be switched to a second application; The operation information does not include the operation parameters of the first application in the current time period.

3. The terminal device operation method according to claim 2, characterized in that: After the terminal device is switched from being connected to the first container to being connected to the second container, the method further includes: Sending a request to switch the first application to the second application to the second container; In response to the second container switching the first application to the second application, a running interface of the second application sent by the second container is displayed.

4. The terminal device operation method according to claim 3, characterized in that: After the terminal device is switched from being connected to the first container to being connected to the second container, and before the request for switching the first application to the second application is sent to the second container, the method further includes: A first display screen sent by the second container is displayed, where the first display screen is the same as the second display screen, and the second display screen is used to indicate a display screen displayed by the terminal device when the first container is switched to the second container.

5. The terminal device operation method according to any one of claims 1 to 4, characterized in that: The step of switching the terminal device from being connected to the first container to being connected to the second container includes: Obtaining token parameters and connection parameters of the second container; In response to successfully passing the connection verification of the second container based on the token parameters, connecting to the second container according to the connection parameters.

6. A container operation method, characterized in that: Applied to the first container, the container operation method comprises the following steps: Obtaining current resource parameters of the first container; In response to a difference between the current resource parameter and the upper limit resource parameter of the first container being less than a preset threshold, sending a prompt message to a terminal device connected to the first container; The prompt information is used for the terminal device to switch the first container connected to the terminal device to the second container when the user interrupts the use of the first application currently running on the terminal device, and the upper limit resource parameter of the second container is greater than the upper limit resource parameter of the first container.

7. The container operation method according to claim 6, characterized in that: The sending of prompt information to the terminal device connected to the first container includes: Create a second container; Acquire user data of the terminal device in the first container; The user data is sent to the second container, and prompt information is sent to the terminal device through the second container.

8. A container operation method, characterized in that: Applied to the second container, the container operation method includes: receiving a first token parameter and a connection parameter sent by a terminal device, wherein a difference between a current resource parameter of a first container to which the terminal device is connected and an upper limit resource parameter of the first container is less than a preset difference, and the operation information of the terminal device indicates that a user interrupts the use of an application currently running on the terminal device, and the terminal device sends the first token parameter and the connection parameter to the second container, so that the terminal device switches from connecting to the first container to connecting to the second container; In response to the first token parameter matching the stored second token parameter of the second container, the second container is connected to the terminal device based on the connection parameter.

9. The container operation method according to claim 8, characterized in that: After the second container is connected to the terminal device based on the connection parameter, the method further includes: receiving a request sent by the terminal device to switch from the first application to the second application; The request is executed to switch the terminal device from the first application to the second application, and a running interface of the second application is sent to the terminal device.

10. The container operation method according to claim 8 or 9, characterized in that: Before the receiving of the first token parameter and the connection parameter sent by the terminal device, the method further includes: receiving user data of the terminal device in the first container sent by the first container, and acquiring a third token parameter and a first communication address of the first container; acquiring connection parameters based on the user data, and sending the connection parameters, the third token parameters, the first communication address, and the second communication address of the second container to an authentication server; receiving a token parameter sent by the authentication server to store as the second token parameter, wherein after the authentication server determines that the second container is compliant based on the third token parameter and the first communication address, the authentication server sends the connection parameter, the second communication address, and the configured token parameter of the second container to the terminal device, and sends the token parameter of the second container to the second container.