CN115801785A - Multi-user management method and device for cloud mobile phone, server and storage medium - Google Patents

Multi-user management method and device for cloud mobile phone, server and storage medium Download PDF

Info

Publication number
CN115801785A
CN115801785A CN202211472140.XA CN202211472140A CN115801785A CN 115801785 A CN115801785 A CN 115801785A CN 202211472140 A CN202211472140 A CN 202211472140A CN 115801785 A CN115801785 A CN 115801785A
Authority
CN
China
Prior art keywords
mobile phone
cloud mobile
containers
cloud
container
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211472140.XA
Other languages
Chinese (zh)
Inventor
赵龙
李青云
甘露
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Telecom Terminals Co Ltd
Original Assignee
Tianyi Telecom Terminals Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi Telecom Terminals Co Ltd filed Critical Tianyi Telecom Terminals Co Ltd
Priority to CN202211472140.XA priority Critical patent/CN115801785A/en
Publication of CN115801785A publication Critical patent/CN115801785A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a multi-user management method, a multi-user management device, a multi-user management server and a storage medium for a cloud mobile phone, wherein the method comprises the following steps: when a cloud mobile phone login request is received, acquiring a login account according to the cloud mobile phone login request; determining at least two cloud mobile phone containers which are allocated in advance according to the login account, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value; when a cloud mobile phone container which is active and has an idle state duration smaller than a preset duration threshold exists, taking the cloud mobile phone container as a service cloud mobile phone container; and switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container, and providing cloud mobile phone service for the login account. The cloud mobile phone platform performance is saved. And the time required by starting or transferring the cloud mobile phone is reduced, so that the user can use the cloud mobile phone by using the terminal in a seamless connection mode. The use experience of the user is further improved.

Description

Multi-user management method and device for cloud mobile phone, server and storage medium
Technical Field
The invention relates to the technical field of cloud computing, in particular to a cloud mobile phone multi-user management method, a cloud mobile phone multi-user management device, a cloud mobile phone multi-user management server and a storage medium.
Background
The cloud mobile phone is a product which is based on the outstanding advantages of cloud computing in the aspects of large-scale computing, strong storage capacity, virtualization application and the like and provides personalized terminal service for users. The cloud platform can provide diversified and omnibearing virtual mobile phone applications and services for smart mobile phone users, comprehensively supports the display, downloading, application and management services of various mobile phone application programs, excellently realizes all-weather cloud intelligent hosting applications, enables the users to host various application programs to the cloud in a state of being separated from the mobile terminal, keeps all-weather online states and comprehensively realizes the virtualization of the smart mobile phone applications.
The user can realize the order of the cloud mobile phone based on various packages, the existing cloud mobile phone platform can distribute a cloud storage mirror image for the ordering user, and when the user logs in, the cloud mobile phone system is operated on the platform side, so that the capability of the user for remotely using the android system is realized.
In the process of implementing the invention, the inventor finds the following technical problems: each cloud-side mobile phone occupies a larger system-side space. The resources are allocated to each cloud mobile phone in advance, so that the situation that most cloud-side mobile phones only occupy the storage space and are low in use frequency, system resource waste exists, and the cost of using the cloud mobile phones by users is increased. In addition, in the process of logging in or logging out of the user, the system needs to be restarted, the mirror image of the user is loaded, and the time delay of entering the system is usually dozens of seconds or even longer. The experience of the user in using the cloud mobile phone is reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a cloud mobile phone multi-user management method, an apparatus, a server, and a storage medium, so as to solve technical problems that in the prior art, a cloud mobile phone platform wastes system resources and a system startup time process causes users, thereby affecting user experience.
In a first aspect, an embodiment of the present invention provides a cloud mobile phone multi-user management method, including:
when a cloud mobile phone login request is received, a login account is obtained according to the cloud mobile phone login request;
determining at least two cloud mobile phone containers which are allocated in advance according to the login account, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value;
when a cloud mobile phone container which is active and has an idle state duration smaller than a preset duration threshold exists, taking the cloud mobile phone container as a service cloud mobile phone container;
and switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container, and providing cloud mobile phone service for the login account.
In a second aspect, an embodiment of the present invention further provides a cloud mobile phone multi-user management apparatus, including:
the acquisition module is used for acquiring a login account according to a cloud mobile phone login request when the cloud mobile phone login request is received;
the judging module is used for determining at least two cloud mobile phone containers which are distributed in advance according to the login account, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value;
the cloud mobile phone container is used as a service cloud mobile phone container when the cloud mobile phone container which is active and has an idle state duration smaller than a preset duration threshold exists;
and the switching module is used for switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container and providing cloud mobile phone service for the login account.
In a third aspect, an embodiment of the present invention further provides a server, including:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the cloud mobile phone multi-user management method provided by the above embodiment.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the cloud mobile phone multi-user management method provided in the foregoing embodiments.
According to the cloud mobile phone multi-user management method, the cloud mobile phone multi-user management device, the server and the storage medium, when a cloud mobile phone login request is received, a login account is obtained according to the cloud mobile phone login request; determining at least two cloud mobile phone containers which are allocated in advance according to the login account, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value; when a cloud mobile phone container which is active and has an idle state duration smaller than a preset duration threshold exists, taking the cloud mobile phone container as a service cloud mobile phone container; and switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container, and providing cloud mobile phone service for the login account. The characteristic that the cloud mobile phones are convenient to copy and transplant is utilized, the cloud mobile phones are divided into a plurality of cloud mobile phones, and cloud mobile phone service can be provided for a plurality of users according to the login states of cloud mobile phone accounts. The cloud mobile phone platform performance is saved. And the time required by starting or transferring the cloud mobile phone is reduced, so that the user can use the cloud mobile phone by using the terminal in a seamless connection mode. The use experience of the user is further improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a schematic flowchart of a cloud mobile phone multi-user management method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a cloud mobile phone multi-user management method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a cloud mobile phone multi-user management method according to a third embodiment of the present invention;
fig. 4 is a schematic flowchart of a cloud mobile phone multi-user management method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a cloud mobile phone multi-user management apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant elements of the present invention are shown in the drawings.
Example one
Fig. 1 is a schematic flow chart of a cloud mobile phone multi-user management method according to an embodiment of the present invention, where the embodiment is applicable to a situation that a cloud mobile phone platform manages a large number of cloud mobile phones subscribing to cloud mobile phone product users, and the method can be executed by a cloud mobile phone multi-user management apparatus, and specifically includes the following steps:
s110, when a cloud mobile phone login request is received, a login account is obtained according to the cloud mobile phone login request.
In this embodiment, a user subscribing to the cloud mobile phone can obtain a corresponding account, and can log in on the platform by using the allocated system account to obtain a corresponding cloud mobile phone service. The cloud mobile phone platform can receive a cloud mobile phone login request of a user and acquire corresponding login account information from the request. The login account information may include: an account number and a password.
S120, determining at least two cloud mobile phone containers which are distributed in advance according to the login account, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value.
In this embodiment, in order to improve the resource utilization rate of the cloud mobile phone platform, a plurality of cloud mobile phones with the same configuration may correspond to a plurality of cloud mobile phone accounts, so that after a user exits, resources can be continuously used, and waste of cloud platform computing resources is avoided. In this embodiment, the corresponding relationship between the cloud mobile phone account and the cloud mobile phone container of the order with the same configuration may be preset. Each cloud mobile phone account can correspond to a plurality of cloud mobile phone containers, and correspondingly, each cloud mobile phone container can also correspond to a plurality of cloud mobile phone accounts.
When a login request of a user is received, it can be determined that the current user needs to use the cloud mobile phone currently. The cloud mobile phone platform needs to allocate a corresponding container for the cloud mobile phone platform to use. In this embodiment, each cloud mobile phone account may correspond to a plurality of cloud mobile phone containers, and therefore, a suitable cloud mobile phone container needs to be selected for the cloud mobile phone account to provide corresponding cloud mobile phone services for the cloud mobile phone account.
Because each cloud mobile phone container corresponds to a plurality of accounts, a part of the plurality of cloud mobile phone containers corresponding to the account is occupied by other accounts. Therefore, it is required to first select the cloud mobile phone container in an active state, where the cloud mobile phone container is in a starting state. Further, a cloud mobile phone container with other accounts just quitting the use state can be optimized.
The method comprises the steps of determining whether the cloud mobile phone container corresponding to the cloud mobile phone account is active and is in an idle state for a time length less than a preset time length threshold value through inquiring a state table of all cloud mobile phone containers of the current cloud mobile phone platform, wherein the time length threshold value can be set according to actual conditions.
S130, when the cloud mobile phone container which is active and has the idle state duration smaller than the preset duration threshold exists, the cloud mobile phone container is used as a service cloud mobile phone container.
If the cloud mobile phone container which is active and has the idle state time length smaller than the preset time length threshold exists, the corresponding mirror image does not need to be loaded, the quick response can be realized, and the corresponding cloud mobile phone service is provided for the user.
And S140, switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container, and providing cloud mobile phone service for the login account.
Because the service cloud mobile phone container is loaded with the mirror images corresponding to the multiple accounts, the mirror images corresponding to the multiple accounts are actually run in the same operating system and are all mounted in the background. Therefore, the mirror image corresponding to the login account can be switched to the foreground for operation only by switching the mirror image, and the corresponding cloud mobile phone service can be provided for the login account.
For example, the switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container may include: and switching UID users through a ROOT command according to the UID identifier, and operating APPid and gid with the identifier modified according to user operation. In this embodiment, since the cloud mobile phone container has already loaded therein the mirror images of all the accounts corresponding to the cloud mobile phone container, it is equivalent to setting a plurality of individual accounts in the cloud mobile phone. Each individual account is distinguished by adopting a user operation running identifier UID. Accordingly, since different users may use the same APP and interface, the ROOT command may be used to perform UID user switching and modify APPid and gid accordingly. And realizing providing corresponding cloud mobile phone service for the login account.
In the embodiment, when a cloud mobile phone login request is received, a login account is obtained according to the cloud mobile phone login request; determining at least two cloud mobile phone containers which are allocated in advance according to the login account, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value; when a cloud mobile phone container which is active and has an idle state duration smaller than a preset duration threshold exists, taking the cloud mobile phone container as a service cloud mobile phone container; and switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container, and providing cloud mobile phone service for the login account. The characteristic that the cloud mobile phone is convenient to copy and transplant is utilized, one cloud mobile phone is divided into a plurality of cloud mobile phones, and cloud mobile phone service can be provided for a plurality of users according to the login state of the cloud mobile phone account. The performance of the cloud mobile phone platform is saved. And the time required by starting or transferring the cloud mobile phone is reduced, so that the user can use the cloud mobile phone by using the terminal in a seamless connection mode. The use experience of the user is further improved.
In a preferred implementation of this embodiment, the method may further include the following steps: when no cloud mobile phone container which is active and has idle state duration smaller than a preset duration threshold exists, searching for a standby cloud mobile phone container with a login account in a first account sequence, wherein the standby cloud mobile phone container in the first account sequence is loaded with a latest mirror image corresponding to the login account; and providing cloud mobile phone service for the login account by using the standby cloud mobile phone containers of the first account sequence. If the cloud mobile phone container which is active and just in an idle state does not exist, the cloud mobile phone container which is in the idle state currently in the cloud mobile phone containers corresponding to the account needs to be searched for providing cloud mobile phone services, particularly the cloud mobile phone container with the first rank of the current account is preferred, the cloud mobile phone container with the first rank of the current account has the mirror image corresponding to the account already loaded and is in a foreground operation, and the capability of rapidly providing the cloud mobile phone services for the user can be achieved.
Example two
Fig. 2 is a schematic flowchart of a cloud mobile phone multi-user management method according to a second embodiment of the present invention, and in this embodiment, the method may further include the following steps: monitoring the number of idle cloud mobile phone containers corresponding to each login account, when the number of the idle cloud mobile phone containers is smaller than a preset number threshold value, allocating new cloud mobile phone containers, and loading the latest mirror image corresponding to the login account by using the new cloud mobile phone containers.
Correspondingly, the cloud mobile phone multi-user management method provided by the embodiment of the invention comprises the following steps:
s210, monitoring the number of idle cloud mobile phone containers corresponding to each login account, distributing new cloud mobile phone containers when the number of idle cloud mobile phone containers is smaller than a preset number threshold, and loading the latest mirror image corresponding to the login account by using the new cloud mobile phone containers.
As the number of the cloud mobile phone containers corresponding to each login account is fixed, it can be seen from the above embodiments that the cloud mobile phone containers may be occupied by other accounts, that is, the number of the available cloud mobile phone containers corresponding to each login account is in a state of changing in real time and continuously decreasing. In order to avoid the situation that a certain login account has no available cloud mobile phone containers, the number of idle cloud mobile phone containers corresponding to each login account needs to be monitored in real time, and when the number of idle cloud mobile phone containers is smaller than a preset number threshold value, the number of idle cloud mobile phone containers is smaller than the preset number threshold value. And the cloud mobile phone platform allocates a new cloud mobile phone container, and loads the latest mirror image corresponding to the login account by using the new cloud mobile phone container, namely the mirror image stored in the previous exit. In addition, the new cloud mobile phone container can load the mirror image of other accounts. The number of cloud mobile phone containers corresponding to the other accounts also does not meet the requirement.
S220, when a cloud mobile phone login request is received, a login account is obtained according to the cloud mobile phone login request.
And S230, determining at least two cloud mobile phone containers which are allocated in advance according to the login account, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value.
S240, when the cloud mobile phone container which is active and has the idle state duration smaller than a preset duration threshold exists, the cloud mobile phone container is used as a service cloud mobile phone container.
And S250, switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container, and providing cloud mobile phone service for the login account.
This embodiment adds the following steps: monitoring the number of idle cloud mobile phone containers corresponding to each login account, when the number of the idle cloud mobile phone containers is smaller than a preset number threshold, allocating new cloud mobile phone containers, and loading the latest mirror image corresponding to the login account by using the new cloud mobile phone containers. The situation that a certain login account does not have an available cloud mobile phone container can be avoided.
EXAMPLE III
Fig. 3 is a schematic flow chart of a cloud mobile phone multi-user management method according to a third embodiment of the present invention, where the optimization is performed based on the above embodiment, before obtaining a login account according to the cloud mobile phone login request, the method may further include the following steps: allocating at least two cloud mobile phone accounts for each cloud mobile phone container, wherein each corresponding cloud mobile phone account at least corresponds to at least two cloud mobile phone containers, and generating an allocation table according to an allocation relation; and determining at least two cloud mobile phone containers which are pre-allocated according to the login account, wherein the steps are specifically optimized as follows: and searching at least two cloud mobile phone containers corresponding to the login account according to a distribution table.
And S310, allocating at least two cloud mobile phone accounts for each cloud mobile phone container, wherein each corresponding cloud mobile phone account at least corresponds to at least two cloud mobile phone containers.
In this embodiment, the cloud mobile phone platform sets the number of cloud mobile phone containers according to the number of all accounts and the daily average active account number, where the number of cloud mobile phone containers is less than the daily average active account number. And starting the cloud mobile phone containers in the number. For example, the number of adopted cloud mobile phone containers can be determined according to the number of cloud mobile phone accounts and the daily activity number; after the number of the cloud mobile phone containers is determined, the cloud mobile phone containers with the corresponding number are started. Correspondingly, a plurality of accounts are allocated to each cloud mobile phone container, each cloud mobile phone account also corresponds to the plurality of cloud mobile phone containers, and an allocation table is generated according to the allocation relation.
S320, when a cloud mobile phone login request is received, a login account is obtained according to the cloud mobile phone login request.
S330, at least two cloud mobile phone containers corresponding to the login account are searched according to a distribution table, and whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is smaller than a preset time length threshold value is judged.
And searching at least two cloud mobile phone containers corresponding to the login account according to the corresponding relation of the distribution table, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value.
And S340, when the cloud mobile phone container which is active and has the idle state duration less than the preset duration threshold exists, taking the cloud mobile phone container as a service cloud mobile phone container.
And S350, switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container, and providing cloud mobile phone service for the login account.
The present embodiment adds the following steps: allocating at least two cloud mobile phone accounts for each cloud mobile phone container, wherein each corresponding cloud mobile phone account at least corresponds to at least two cloud mobile phone containers, and generating an allocation table according to an allocation relation; and determining at least two cloud mobile phone containers which are pre-allocated according to the login account, wherein the steps are specifically optimized as follows: and searching at least two cloud mobile phone containers corresponding to the login account according to a distribution table. The allocation rules may be defined in advance by launching fewer cloud phone containers than the number of cloud phone accounts. The occupation of system resources can be effectively reduced. The corresponding usable cloud mobile phone container can be determined according to the set distribution table, and the distribution efficiency is improved.
Example four
Fig. 4 is a schematic flowchart of a cloud mobile phone multi-user management method according to a fourth embodiment of the present invention, and in this embodiment, optimization is performed based on the foregoing embodiment, and the method may further include the following steps: and sequentially loading the mirror image of the corresponding cloud mobile phone account into each cloud mobile phone container, creating a corresponding UID (user identifier) for each mirror image according to the cloud mobile phone account, and modifying the APPid and gid which are correspondingly loaded into the mirror images according to the UID.
Correspondingly, the cloud mobile phone multi-user management method provided by the embodiment of the invention comprises the following steps:
s410, when a cloud mobile phone login request is received, a login account is obtained according to the cloud mobile phone login request.
And S420, determining at least two cloud mobile phone containers which are distributed in advance according to the login account, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value.
And S430, sequentially loading the mirror image of the corresponding cloud mobile phone account into each cloud mobile phone container, creating a corresponding UID (user identifier) for each mirror image according to the cloud mobile phone account, and modifying the APPid and gid which are correspondingly loaded into the mirror images according to the UID.
In this embodiment, a plurality of users may be created in the cloud mobile phone, and each user corresponds to its own cloud mobile phone image. By the method, time for loading the mirror image when providing cloud mobile phone service for the user is not needed. At the moment, the mirror image corresponding to the account quitting the cloud mobile phone service is transferred to a background to run. In order to distinguish the mirror image corresponding to each account number, a corresponding UID identifier needs to be created for each mirror image according to the cloud mobile phone account, and the UID identifiers corresponding to each account are different. In addition, since multiple accounts may correspond to the same APP, the APPID also needs to be identified by the UID for efficient differentiation. Meanwhile, corresponding to the user interface, the identification needs to be modified correspondingly.
And S440, when the cloud mobile phone container which is active and has the idle state duration less than the preset duration threshold exists, taking the cloud mobile phone container as a service cloud mobile phone container.
And S450, switching UID users through ROOT commands according to the UID identifications, operating APPid and gid with identification modified according to user operation, and providing cloud mobile phone service for the login accounts.
This embodiment adds the following steps: and each cloud mobile phone container loads the mirror image of the corresponding cloud mobile phone account in sequence, creates a corresponding UID identifier for each mirror image according to the cloud mobile phone account, and modifies the APPid and gid which are loaded into the mirror images correspondingly according to the UID identifier. The users in the cloud mobile phone container can be distinguished, the mirror image does not need to be reloaded when the user service is converted, the time required for switching accounts is shortened, and the use experience of the cloud mobile phone is further improved.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a cloud mobile phone multi-user management apparatus according to a fifth embodiment of the present invention, and as shown in fig. 5, the apparatus includes:
the obtaining module 510 is configured to obtain a login account according to a cloud mobile phone login request when the cloud mobile phone login request is received;
the judging module 520 is configured to determine at least two cloud mobile phone containers which are allocated in advance according to the login account, and judge whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold;
a module 530, configured to, when there is a cloud mobile phone container that is active and in an idle state, has a duration that is less than a preset duration threshold, use the cloud mobile phone container as a service cloud mobile phone container;
and a switching module 540, configured to switch the latest mirror image corresponding to the login account by using the service cloud mobile phone container, and provide cloud mobile phone service for the login account.
According to the cloud mobile phone multi-user management device provided by the embodiment, when a cloud mobile phone login request is received, a login account is obtained according to the cloud mobile phone login request; determining at least two cloud mobile phone containers which are allocated in advance according to the login account, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value; when a cloud mobile phone container which is active and has an idle state duration smaller than a preset duration threshold exists, taking the cloud mobile phone container as a service cloud mobile phone container; and switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container, and providing cloud mobile phone service for the login account. The characteristic that the cloud mobile phone is convenient to copy and transplant is utilized, one cloud mobile phone is divided into a plurality of cloud mobile phones, and cloud mobile phone service can be provided for a plurality of users according to the login state of the cloud mobile phone account. The cloud mobile phone platform performance is saved. And the time required by starting or transferring the cloud mobile phone is reduced, so that the user can use the cloud mobile phone by using the terminal in a seamless connection mode. The use experience of the user is further improved.
On the basis of the above embodiments, the apparatus further includes:
the searching module is used for searching the standby cloud mobile phone container with the login account in the first account sequence when the cloud mobile phone container which is active and has the idle state duration less than the preset duration threshold does not exist, wherein the standby cloud mobile phone container with the first account sequence is loaded with the latest mirror image corresponding to the login account;
and the providing module is used for providing cloud mobile phone service for the login account by using the standby cloud mobile phone containers of the first account sequence.
On the basis of the above embodiments, the apparatus further includes:
the monitoring module is used for monitoring the number of the idle cloud mobile phone containers corresponding to each login account, distributing new cloud mobile phone containers when the number of the idle cloud mobile phone containers is smaller than a preset number threshold, and loading the latest mirror image corresponding to the login account by using the new cloud mobile phone containers.
On the basis of the above embodiments, the apparatus further includes:
the distribution module is used for distributing at least two cloud mobile phone accounts for each cloud mobile phone container, each corresponding cloud mobile phone account at least corresponds to at least two cloud mobile phone containers, and a distribution table is generated according to the distribution relation;
correspondingly, the judging module includes:
and the searching unit is used for searching at least two cloud mobile phone containers corresponding to the login account according to the distribution table.
On the basis of the above embodiments, the apparatus further includes:
and the identification creating module is used for sequentially loading the mirror image of the corresponding cloud mobile phone account for each cloud mobile phone container, creating a corresponding UID (user identifier) for each mirror image according to the cloud mobile phone account, and modifying the APPid and gid which are loaded into the mirror images correspondingly according to the UID.
On the basis of the foregoing embodiments, the switching module includes:
and the modification unit is used for carrying out UID user switching through a ROOT command according to the UID identifier and operating the APPid and gid with the identifiers modified according to user operation.
The cloud mobile phone multi-user management device provided by the embodiment of the invention can execute the cloud mobile phone multi-user management method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a server according to a sixth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention. The server 12 shown in fig. 6 is only an example, and should not bring any limitation to the function and the use range of the embodiment of the present invention.
As shown in fig. 6, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by server 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache 32. The server 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the server 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the server 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the server 12 over the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, to implement the cloud mobile phone multi-user management method provided by the embodiment of the present invention.
EXAMPLE seven
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions, when executed by a computer processor, are configured to perform any one of the cloud mobile phone multi-user management methods provided in the foregoing embodiments.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A cloud mobile phone multi-user management method is characterized by comprising the following steps:
when a cloud mobile phone login request is received, a login account is obtained according to the cloud mobile phone login request;
determining at least two cloud mobile phone containers which are allocated in advance according to the login account, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value;
when a cloud mobile phone container which is active and has an idle state duration smaller than a preset duration threshold exists, taking the cloud mobile phone container as a service cloud mobile phone container;
and switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container, and providing cloud mobile phone service for the login account.
2. The method of claim 1, further comprising:
when no cloud mobile phone container which is active and has idle state duration smaller than a preset duration threshold exists, searching a standby cloud mobile phone container with the login account in a first account sequence, wherein the standby cloud mobile phone container in the first account sequence is loaded with a latest mirror image corresponding to the login account;
and providing cloud mobile phone service for the login account by using the standby cloud mobile phone container of the first account sequence.
3. The method of claim 1, further comprising:
monitoring the number of idle cloud mobile phone containers corresponding to each login account, when the number of the idle cloud mobile phone containers is smaller than a preset number threshold, allocating new cloud mobile phone containers, and loading the latest mirror image corresponding to the login account by using the new cloud mobile phone containers.
4. The method of claim 1, wherein prior to the obtaining a login account from the cloud phone login request, the method further comprises:
allocating at least two cloud mobile phone accounts for each cloud mobile phone container, wherein each corresponding cloud mobile phone account at least corresponds to at least two cloud mobile phone containers, and generating an allocation table according to an allocation relation;
correspondingly, the determining at least two cloud mobile phone containers allocated in advance according to the login account includes:
and searching at least two cloud mobile phone containers corresponding to the login account according to a distribution table.
5. The method of claim 4, wherein prior to assigning at least two cloud phone accounts to each cloud phone container, the method further comprises:
determining the number of adopted cloud mobile phone containers according to the number of cloud mobile phone accounts and the daily activity number;
after the number of the cloud mobile phone containers is determined, the cloud mobile phone containers with the corresponding number are started.
6. The method of claim 5, further comprising:
and sequentially loading the mirror image of the corresponding cloud mobile phone account into each cloud mobile phone container, creating a corresponding UID (user identifier) for each mirror image according to the cloud mobile phone account, and modifying the APPid and gid which are correspondingly loaded into the mirror images according to the UID.
7. The method of claim 6, wherein the switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container and providing cloud mobile phone service to the login account comprises:
and switching UID users through a ROOT command according to the UID identification, and operating APPid and gid with identification modification according to user operation.
8. A cloud mobile phone multi-user management device is characterized by comprising:
the acquisition module is used for acquiring a login account according to a cloud mobile phone login request when the cloud mobile phone login request is received;
the judging module is used for determining at least two cloud mobile phone containers which are distributed in advance according to the login account, and judging whether the two cloud mobile phone containers are active and the time length of the two cloud mobile phone containers in the idle state is less than a preset time length threshold value;
the cloud mobile phone container is used as a service cloud mobile phone container when the cloud mobile phone container which is active and has an idle state duration smaller than a preset duration threshold exists;
and the switching module is used for switching the latest mirror image corresponding to the login account by using the service cloud mobile phone container and providing cloud mobile phone service for the login account.
9. A server, characterized in that the server comprises:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the cloud handset multi-user management method of any of claims 1-7.
10. A storage medium containing computer executable instructions for performing the cloud handset multi-user management method of any one of claims 1 to 7 when executed by a computer processor.
CN202211472140.XA 2022-11-23 2022-11-23 Multi-user management method and device for cloud mobile phone, server and storage medium Pending CN115801785A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211472140.XA CN115801785A (en) 2022-11-23 2022-11-23 Multi-user management method and device for cloud mobile phone, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211472140.XA CN115801785A (en) 2022-11-23 2022-11-23 Multi-user management method and device for cloud mobile phone, server and storage medium

Publications (1)

Publication Number Publication Date
CN115801785A true CN115801785A (en) 2023-03-14

Family

ID=85440398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211472140.XA Pending CN115801785A (en) 2022-11-23 2022-11-23 Multi-user management method and device for cloud mobile phone, server and storage medium

Country Status (1)

Country Link
CN (1) CN115801785A (en)

Similar Documents

Publication Publication Date Title
CN109343963B (en) Application access method and device for container cluster and related equipment
US8954487B2 (en) Management server and method for providing cloud computing service
CN107832100B (en) APK plug-in loading method and terminal thereof
US20170192819A1 (en) Method and electronic device for resource allocation
CN106897299B (en) Database access method and device
CN111475235A (en) Acceleration method, device and equipment for function computation cold start and storage medium
JP7100154B2 (en) Processor core scheduling method, equipment, terminals and storage media
CN113032099B (en) Cloud computing node, file management method and device
CN113849312A (en) Data processing task allocation method and device, electronic equipment and storage medium
CN111679911A (en) Management method, device, equipment and medium for GPU (graphics processing Unit) card in cloud environment
CN110888658B (en) Method and device for dynamically changing function modules in application program and storage medium
CN112600761A (en) Resource allocation method, device and storage medium
CN107342929B (en) Method, device and system for sending new message notification
CN115904761A (en) System on chip, vehicle and video processing unit virtualization method
CN106775975B (en) Process scheduling method and device
CN111694639A (en) Method and device for updating address of process container and electronic equipment
CN108616576B (en) Method and device for scheduling application server
CN111475230A (en) Application function configuration method and device and electronic equipment
CN113127430A (en) Mirror image information processing method and device, computer readable medium and electronic equipment
CN115801785A (en) Multi-user management method and device for cloud mobile phone, server and storage medium
CN114816741A (en) GPU resource management method, device and system and readable storage medium
CN114968482A (en) Server-free processing method and device and network equipment
CN114489826A (en) Chip operation method and device, storage medium and electronic equipment
CN109327726B (en) Barrage message processing method and device, terminal and storage medium
CN113691465A (en) Data transmission method, intelligent network card, computing device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination