Specific embodiment
Clear, complete description is carried out to technical solution of the present invention below with reference to attached drawing, it is clear that described implementation
Example is only a part of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is general
Logical technical staff obtained all other embodiment without making creative work belongs to the present invention and is protected
The range of shield.
In practical application, when containment system operates in foreground, the process in containment system often can be direct with user
Interaction, generally takes up the relevant system resource such as display, input;And after containment system is switched to backstage, in containment system
Process often no longer need to occupy the relevant system resource such as display, input at this time.
However, it was found by the inventors of the present invention that existing only neither relate to the management of containment system by the basic command of LXC
And the front and back management of containment system, it is even more impossible to adjustment container systems timely when the front and back state of containment system changes
Interior state of a process also just can not timely and effectively adjust the distribution of system resource.
Therefore, the present inventor considers, CMS module (Container can be preset in main system
Manager Service, container management service), CSS module (Container Slave is preset in each containment system
Service, from management service).
In this way, switching request can be sent to after the switching request for receiving user's input and be set to master by CSS module
Container management service CMS module in system;Then, CMS module is believed according to the operating status of CSS module said container system
Breath and system resource occupied information determine that transmission front and back converts signal after executing switching;CSS module receives front and back
After converting signal, the state of a process in its said container system is adjusted.In this way, being asked according to the switching that user inputs
It asks, it can be achieved that the front and back of Related Container Systems switches;Furthermore, it is possible to further to the state of a process in Related Container Systems
It is adjusted, improves the utilization rate of system resource.
The technical solution that the invention will now be described in detail with reference to the accompanying drawings.
The present invention provides a kind of intelligent terminals, including:Kernel, at least one containment system, and be set in kernel
Main system, further, as shown in Figure 1, can also include:The CMS module that is set in main system and it is set to container
CSS module in system.
Wherein, CMS module is overall control center, can be provided by CMS module and be cut to the installation of containment system, front and back
It changes, unload, the service such as the inquiry of container relevant information.
In practical application, the upper layer application in main system can pass through API (Application preset in main system
Program Interface, application programming interface) CMS module is called, start the phase in installed containment system
Put journey into.And the CSS module in containment system can be interacted by API preset in containment system with user, for example,
Receive the switching request etc. of user's input.
For ease of description, API preset in main system can be known as to M-API, and by API preset in containment system
Referred to as C-API.
In the embodiment of the present invention, after CSS module is used to receive the switching request of user's input, switching request is sent to
CMS module.Then, after CMS module is used to receive the switching request of CSS module transmission, according to CSS module said container system
Running state information and system resource occupied information, determine execute switching after send front and back convert signal.In this way, CSS
After module receives the front and back transformation signal that CMS module is returned for switching request, it can be asked according to CMS module for switching
It asks the front and back of return to convert signal, the state of a process in its said container system is adjusted.
Further, can also include in intelligent terminal provided by the invention:The KCM module being pre-set in kernel
(Kernel Container Manager, inner core managing service).KCM module is used to be each containment system distributing system resource,
Record the system resource occupied information of each containment system;After receiving front and back transformation signal, to CSS module said container
The system resource occupied information of system is updated, and updated system resource occupied information is fed back to CMS module.
It, can be in the solution of the present invention compared to the existing only basic management by the base command of bottom to containment system
The front and back handover management for the multiple containers system realized while run by adding CMS module, CSS module, and can be real
The adjustment of the state of a process in containment system now switched, the system resource for being conducive to subsequent timely adjustment process occupy feelings
Condition improves resource utilization ratio.
In the embodiment of the present invention, before containment system is managed in intelligent terminal, containment system can be carried out
Installation registration, improves the flexibility and safety of containment system management.Therefore, container in intelligent terminal in technical solution of the present invention
In the management service method of system, the detailed process of the installation register method of containment system, as shown in Fig. 2, may include as follows
Step:
S201:The installation image file for the containment system that CMS module is inputted according to user carries out the installation note of containment system
Volume;After containment system starting, start the CSS module being set in the containment system automatically, sends distribution instruction to KCM module.
Specifically, the CMS module in main system can pass through the installation mirror image of the M-API containment system inputted according to user
File carries out the installation registration of containment system.Then, after containment system starting, it can start automatically and be set to the container system
CSS module in system.In this way, CMS module can be to the KCM module in kernel after containment system and its starting of CSS module
Send the distribution instruction for the containment system distributing system resource for installation.
In practical application, user by the installation image file of the M-API containment system inputted be by encapsulation, signature,
The operations such as compression, encryption;Therefore, CMS module from M-API receive installation image file after, need to received installation
Image file carries out corresponding reverse operating, to obtain the file that can be mounted directly registration, completes the installation registration of containment system.
In this way, the installation image file for the containment system that the CMS module in main system is inputted according to user, achievable container
The installation of system is registered, and functionality, the flexibility of containment system management are enhanced.
S202:After KCM module receives distribution instruction, corresponding system resource is distributed for the containment system, and by the appearance
The system resource occupied information of device system feeds back to CMS module.
It specifically, can be containment system point after the distribution that the KCM module in kernel receives the transmission of CMS module instructs
It is fed back in main system with corresponding system resource, and by the system resource occupied information of the containment system formed after distribution
CMS module.
S203:CMS module records the installation registration information and system resource occupied information of the containment system.
Specifically, the CMS module in main system receives the system resource occupied information of the containment system of KCM module feedback
Later, the installation registration information of the containment system and system resource occupied information can be subjected to corresponding record.
In this way, service can be managed to containment system after completing the installation registration of containment system.The technology of the present invention
The detailed process of the management method of containment system may include steps of as shown in Figure 3a in intelligent terminal in scheme:
S301:After CSS module receives the switching request of user's input, the switching request is sent to CMS module.
Specifically, the CSS module being set in containment system receives use by the C-API being preset in the containment system
After the switching request of family input, the switching request received can be sent to Master Control Center CMS module.
In practical application, the purpose of the switching request of user's input is mainly to make the generation of the front and back state of containment system
Switching, for example, making containment system be switched to backstage from current foreground, or before being switched to containment system from current backstage
Platform.May include in switching request:Switch the ginseng such as switching direction of containment system and to be switched containment system being related to
Number.
S302:After CMS module receives the switching request of CSS module transmission, according to the fortune of CSS module said container system
Row status information and system resource occupied information determine to send front and back transformation signal after executing switching.
Specifically, after CMS module receives the switching request that CSS module is sent, CSS module said container can be determined
The running state information and system resource occupied information of system and CSS module said container system.
Then, CMS module can according to preset switchover policy, the running state information of CSS module said container system,
And system resource occupied information, decide whether the handover operation for executing the front and back of CSS module said container system.
If executed, after the front and back state of CSS module said container system converts, CMS module can be produced
Raw corresponding front and back converts signal, and sends the CSS module in the so far secondary containment system for switching and being related to.
For example, the purpose in received switching request is the situation for making containment system be switched to from current foreground backstage
Under, after according to switching request corresponding front and back switching occurs for containment system A, the containment system B that this switching is related to, than
Such as, containment system A is switched to backstage from foreground, and containment system B is after being switched to foreground from the background, CMS module can respectively to
Respective CSS module sends front and back and converts signal in containment system A, containment system B.
S303:After CSS module receives front and back transformation signal, the state of a process in its said container system is carried out
Adjustment.
Specifically, it after the front and back that CSS module receives the transmission of CMS module converts signal, can be converted according to front and back
Signal is adjusted the state of a process in its said container system, for example, in the past by the state of a process in containment system
Platform state of activation is adjusted to backstage state of activation.It further, can also be according to appearance after receiving front and back transformation signal
Front and back state after the switching of device system, adjusts the behavior of process, for example, can close just when containment system is switched to backstage
In the media file of broadcasting;When containment system is switched to foreground, the broadcasting etc. of media file can be restored.
In practical application, in the solution of the present invention in containment system process management, need by the containment system
The dual-license of CMS module in CSS module and main system, this improves the safeties of containment system management.
More preferably, in technical solution of the present invention in intelligent terminal in the detailed process of the management service method of containment system,
As shown in Figure 3b, CSS module of the CMS module into this containment system for being related to of switching send front and back transformation signal it
It afterwards, further include following steps:
S304:After KCM module receives front and back transformation signal, the system resource of CSS module said container system is accounted for
It is updated with information, and updated system resource occupied information is fed back into CMS module.
It specifically, can be with after the KCM module being set in kernel receives the front and back transformation signal of CMS module transmission
It determines and receives containment system involved in front and back transformation signal, later, KCM module can cutting according to Related Container Systems
Change event, change the service condition of the system resource of Related Container Systems, i.e., to the system resource occupied information of containment system into
Row updates.For example, the data that will be sent to from the background display equipment, are placed into virtual video memory, will be switched to the container on foreground
The display data of system are assigned in actual video memory, and the occupation condition of the process in adjustment container system.
Further, updated system resource occupied information can also be fed back to the CMS mould in main system by KCM module
Block realizes that CMS module and KCM module in kernel are synchronous to the utilization power of system resource in main system.
In the embodiment of the present invention, after completing the installation registration of containment system, pipe can also be unregistered to containment system
Reason.Specifically, CMS module receive user input containment system removal request after, if confirmation containment system be in close
State, then remove the installation registration information of the containment system, and deletes the number generated when image file and the operation of containment system
According to.
It, can also be to the note of containment system in order to improve functionality and the flexibility of containment system management in practical application
Pin is managed;And it to nullify containment system and need first to close containment system, and then delete the installation registration of the containment system
Information.Therefore, in technical solution of the present invention in intelligent terminal in the management service method of containment system to the cancellation of containment system
The detailed process of management method, as shown in figure 4, may include steps of:
S401:After CMS module receives the removal request of the containment system of user's input, confirmation containment system, which is in, is closed
State then removes the installation registration information of the containment system, and sends delete command to KCM module.
Specifically, the CMS module in main system receives user and passes through the removal request of the M-API containment system inputted
Afterwards, it can be determined that containment system is in operating status, is in closed state.
If containment system is in close state, the installation registration information of the containment system is removed, and deletes containment system
Image file and the data that generate of when operation.Meanwhile delete command can be sent to the KCM module in kernel.
If containment system is in operating status, CMS module can send shutdown command to containment system, to close setting
In the containment system and the CSS module being set in the containment system.After closing containment system, the containment system is removed
Installation registration information, and delete the data generated when image file and the operation of containment system.
S402:After KCM module receives delete command, system resource shared by the containment system is discharged.
Specifically, after the KCM module in kernel receives the delete command that CMS module is sent, deletion life can be determined
The containment system being directed to is enabled, and discharges the containment system currently occupied system resource.In practical application, after release, KCM
Module can be current to CMS module feedback kernel system resource occupancy situation, and return to deleting for the containment system to CMS module
Except situation, so that CMS module can be directed to the deletion result of removal request to user feedback in time.
In the embodiment of the present invention, in order to improve functionality and the flexibility of containment system management, containment system is completed
After installation registration, closing management can also be carried out to containment system, containment system in intelligent terminal in technical solution of the present invention
To the detailed process of the closing management method of containment system in management service method, as shown in figure 5, may include steps of:
S501:After CMS module receives the shutdown command of the containment system of user's input, shutdown command is sent to KCM
Module and the CSS module being set in the containment system.
Specifically, the CMS module in main system receive user by the shutdown command of the M-API containment system inputted it
Afterwards, the CSS mould in containment system that the KCM module and the shutdown command that can be sent shutdown command in kernel are related to
Block.Further, information when CMS module can also remove the operation for the containment system that the shutdown command is related to.
S502:The shutdown command based on the received of CSS module executes corresponding close to the process in its said container system
Operation.
Specifically, the CSS module in containment system that shutdown command is related to receives the shutdown command of CMS module transmission
Afterwards, received shutdown command can be responded, relevant closing flow path is executed, corresponding close is executed to the process in the containment system
Closed operation.
S503:The shutdown command based on the received of KCM module, it is corresponding to system resource relevant with containment system execution
Release operation.
Specifically, after the KCM module in kernel receives the shutdown command that CMS module is sent, received pass can be responded
Order is closed, determines containment system involved in shutdown command, it is corresponding to system resource relevant with containment system execution to release
Put operation;Later, the system resource occupied information of containment system can be returned to CMS module.
In practical application, it is contemplated that, in the case where multiple containers system, before only one containment system may operate at
Platform can monopolize display screen and obtain the touch screen of user, press key lamp input.Other peripheral equipments, can according to user select or
Scheduled side rate is run and occupies in the containment system occupancy on foreground or appointed containment system, or by multiple containers system
Altogether enjoy use.
Therefore, when the containment system that the process in the containment system for operating in foreground needs access to be running in backstage is monopolized
Peripheral equipment when, operate in CSS module in the containment system on foreground can the CMS module into main system send request,
It allows the containment system for operating in backstage to discharge its exclusive peripheral equipment, with this reasonable distribution system resource, system can be improved
The utilization rate of resource.
Further, in practical application, when a containment system collapses, the CMS module in main system can be closed temporarily
The containment system is closed, and after receiving the recovery order of containment system of user's input, restores the containment system, improves container
The functionality of system administration and flexibility.
Based on the management service method of said vesse system, of the invention provides the internal junction of CMS module in main system
Structure, as shown in fig. 6, CMS module may include:Unloading unit 601, information recording unit 602, management control unit 603 are installed.
Wherein, installation unloading unit 601 is used to receive the containment system of user's input of the forwarding of management control unit 603
Installation image file after, received installation image file is unziped it, and is held based on the file after decompression
The installation of device system is registered.
Information recording unit 602, which is used to record information, the operating status of containment system after containment system installation registration, to be believed
Breath, system resource occupied information of containment system etc..
Management control unit 603 is used to receive the request (such as switching request, removal request etc.) of CSS module transmission, can
To send order (such as delete command, shutdown command etc.) to CSS module and KCM module;It obtains and holds from information recording unit 602
The system resource occupied information of device system, running state information etc..
Specifically, the management control unit 603 in CMS module receive CSS module transmission switching request after, according to
The running state information and system resource occupied information of CSS module said container system determine to send front and back after executing switching
Platform converts signal.
Management control unit 603 in CMS module can also be in the removal request for the containment system for receiving user's input
Afterwards, if confirmation containment system is in close state, delete command is sent to KCM module;And it is sent to information recording unit 602
Clearance order so that information recording unit 602 removes the installation registration information of the containment system, and deletes the mirror of containment system
As the data generated when file and operation.
After management control unit 603 in CMS module can also receive the shutdown command of the containment system of user's input,
The CSS module that shutdown command is sent to KCM module and is set in the containment system, so that shutdown command was related to
CSS module in containment system executes corresponding shutoff operation to the process in the containment system, and make KCM module pair with
The relevant system resource of the containment system executes corresponding release operation.
In technical solution of the present invention, the CSS module in containment system, can after the switching request for receiving user's input
Switching request to be sent to the container management service CMS module being set in main system;Then, CMS module is determined to execute and be cut
Front and back is sent after changing converts signal;After CSS module receives front and back transformation signal, to the process in its said container system
State be adjusted.In this way, according to the switching request of user's input, it can be achieved that the front and back of Related Container Systems switches;And
And further the state of a process in Related Container Systems can be adjusted.In this way, the KCM module in kernel can fit
Answering property is updated the system resource occupancy situation of the process in containment system and containment system, improves the benefit of system resource
With rate;By installation, cancellation and the closing to containment system, functionality, the flexibility of containment system management are enhanced;And
Be conducive to carry out the reasonable distribution of system resource by the adjustment to state in containment system, while containment system can also be enhanced
The safety of management.
The terms such as " module " used in this application, " system " be intended to include with computer-related entity, such as it is but unlimited
In hardware, firmware, combination thereof, software or software in execution.For example, module can be, it is not limited to:Processing
Process, processor, object, executable program, the thread of execution, program and/or the computer run on device.For example, it counts
Calculating the application program run in equipment and this calculating equipment can be module.One or more modules can be located in execution
In one process and/or thread, a module can also be located on a computer and/or be distributed in two or more calculating
Between machine.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to for executing in operation described herein
One or more equipment.These equipment can specially design and manufacture for required purpose, or also may include general
Known device in computer.These equipment have the computer program being stored in it, these computer programs are selectively
Activation or reconstruct.Such computer program can be stored in equipment (for example, computer) readable medium or be stored in
It e-command and is coupled in any kind of medium of bus respectively suitable for storage, the computer-readable medium includes but not
Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only
Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable
Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable
Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card
Piece.It is, readable medium includes by equipment (for example, computer) with any Jie for the form storage or transmission information that can be read
Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram and/or flow graph disclosed by the invention.
Those skilled in the art of the present technique have been appreciated that in the present invention the various operations crossed by discussion, method, in process
Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention
Kind of operation, method, other steps, measures, and schemes in process may also be alternated, changed, rearranged, decomposed, combined or deleted.
Further, in the prior art to have and the step in various operations, method disclosed in the present invention, process, measure, scheme
It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, without departing from the principle of the present invention, it can also make several improvements and retouch, these improvements and modifications are also answered
It is considered as protection scope of the present invention.