CN105550024A - Container-based mobile terminal shutdown method and device - Google Patents
Container-based mobile terminal shutdown method and device Download PDFInfo
- Publication number
- CN105550024A CN105550024A CN201510900974.XA CN201510900974A CN105550024A CN 105550024 A CN105550024 A CN 105550024A CN 201510900974 A CN201510900974 A CN 201510900974A CN 105550024 A CN105550024 A CN 105550024A
- Authority
- CN
- China
- Prior art keywords
- container
- shutdown
- management module
- mobile terminal
- shutdown request
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
Abstract
The invention discloses a container-based mobile terminal shutdown method and device. The mobile terminal comprises more than two containers, an operating system independently runs in each container, the more than two containers share a host layer, the method comprises the steps that: when receiving a shutdown request, the first container dispatches a shutdown interface of the system of the first container and sends the shutdown request to a system management module of the first container; the system management module of the first container sends the shutdown request to a container management module of the host layer; the container management module sends a shutdown notification to the system management module of each container in other containers; the system management module of each container in other containers respectively dispatches the corresponding shutdown interface; and after receiving the feedback from each container, the container management module dispatches the shutdown interface of the host layer. The container-based mobile terminal shutdown method and device disclosed by the invention are used for truly closing the mobile terminal without generating abnormality of file systems of the containers.
Description
Technical field
The application relates to electric digital data processing field, particularly relate to a kind of in the mobile terminal based on many containers, carry out shutting down method and/or device.
Background technology
In the mobile terminal based on single operation system, the realization of shutdown is very simple, and user only needs length by power switch and selects " shutdown " to get final product turning-off mobile terminal.
But based in the multisystem mobile terminal of container, each system is run respectively in different vessels.When a container reception is to shutdown request, directly call reboot system call at internal tank, only can close this container, can't by device shutdown.In addition, if the shutdown request received based on current container directly closes whole equipment, the file system in other containers may be caused abnormal.
Summary of the invention
The target of the application is to provide a kind of and really can closes the mobile terminal based on many containers and not cause closedown method and/or the device of each container file system exception.
The target of the application is realized by a kind of mobile terminal closedown method based on container, and wherein said mobile terminal comprises two or more container, independent operating operating system in each container, described two or more container share host layer, and the method comprises:
First container calls the shutdown interface of the system of the first container when receiving shutdown request, and shutdown request is sent to the system management module of the first container;
Shutdown request is sent to the Container Management module being positioned at host layer by the system management module of the first container;
Described Container Management module sends shutdown notice to the system management module of each container in every other container;
The system management module of each container in every other container calls the shutdown interface corresponding with it respectively;
Described Container Management module calls the shutdown interface of host layer after receiving the feedback from each container.
The target of the application is also realized by a kind of mobile terminal shutdown unit based on container, and wherein said mobile terminal comprises two or more container, independent operating operating system in each container, described two or more container share host layer, and this device comprises:
The shutdown request Transmit-Receive Unit of the first container, for receiving shutdown request and calling the shutdown interface of the system of the first container when receiving shutdown request and shutdown request sent to the system management module of the first container;
The system management module of the first container, for receiving the shutdown request of described shutdown request Transmit-Receive Unit transmission and shutdown request being sent to the Container Management module being positioned at host layer;
Container Management module, for receive the first container system management module send shutdown request and to each container in every other container system management module send shutdown notice;
The system management module of each container in every other container, for calling the shutdown interface corresponding with it respectively when receiving shutdown notice;
Wherein, described Container Management module also calls the shutdown interface of host layer after receiving the feedback from each container.
In the mobile terminal based on many containers, because system file is not write hardware store in real time, file content also can exist in internal memory cache.If shutdown does not notify other containers, be just equivalent to the direct power down shutdown of single system, in cache, content does not write back in hardware storage device, thus causes file system abnormal.Off-mode between the container that the closedown method of the application and device achieve mobile terminal is synchronous, avoids that containment system does not trigger shutdown process and the file system that causes is abnormal.And, present invention achieves the function really can closing whole equipment after user triggers vessel systems shutdown.
Unless explicitly stated otherwise, plural reference (namely there is the meaning of " at least one ") is included this singulative used " one ", " being somebody's turn to do ".Should understand further, the term used in instructions " has ", " comprising " and/or " comprising " show to exist described in feature, step, operation, element and/or parts, but do not get rid of and there is or increase other features one or more, step, operation, element, parts and/or its combination.Term "and/or" as used in this comprises any of one or more relevant item enumerated and all combinations.Unless explicitly stated otherwise, the step of any method disclosed herein need not accurately perform according to disclosed order.
Accompanying drawing explanation
The present invention will also illustrate with reference to accompanying drawing below in conjunction with the preferred embodiments more completely.
Fig. 1 is the process flow diagram of the embodiment according to the inventive method.
Fig. 2 is the structural representation of the embodiment according to apparatus of the present invention.
For clarity, these accompanying drawings are schematically and the figure simplified, and they only give for understanding the necessary details of the present invention, and omit other details.
Embodiment
By detailed description given below, the scope of application of the present invention will be apparent.But, should be appreciated that they only provide for the purpose of illustration while detailed description and object lesson show the preferred embodiment of the present invention.
At the multisystem mobile terminal based on container as in mobile phone, container can a sub operating system of independent operating as equipment in operating system environment, sub operating system have oneself main interface, start-up routine, application program and various widget.Each container share host layer (host layer comprises kernel layer and required related service).
Fig. 1 shows the embodiment that the inventive method is applied to the mobile phone comprising two containers.Two containers are respectively container A and container B.The method of this embodiment starts from step S10, the system of container A is foreground system, receive user when the shutdown request of cellular phone power supplies switch triggering in container A, shutdown request, while calling the system closedown interface of container A, is sent to its system management module by the application layer of container A.System management module lays respectively in each container, is responsible for mutual between corresponding system and Container Management module.Afterwards, process proceeds to step S20, and shutdown request is sent to Container Management module by the system management module of container A, and Container Management module is positioned at host layer, is responsible for the management and control of the whole life cycle of container.Afterwards, process proceeds to step S30, and Container Management module is after the shutdown request receiving container A transmission, and the system management module to container B sends shutdown notice.Afterwards, process proceeds to step S40, and the system management module of container B, after receiving shutdown notice, calls its system closedown interface.Afterwards, process proceeds to step S50, when init (first user level process of the system) process of container exits, show that container exits, kernel sends subprocess can to the parent process of init and host layer Container Management module and exit signal, when Container Management module is after the init process receiving container A and container B exits signal, call the shutdown interface of host layer.The method of this embodiment is enable in a container, carry out the shutdown process of its system while notify shut down event in other containers system, the system in other container is made also to carry out shutdown process before mobile phone shutdown, thus both can close whole mobile phone veritably, the system in each container can not be caused again to occur, and file system is abnormal.
Fig. 2 shows an embodiment of apparatus of the present invention, it is for closing the mobile terminal based on container, wherein said mobile terminal comprises container A and B, independent operating operating system in each container, container A and B share host layer, this device comprises: the shutdown request Transmit-Receive Unit 10 of container A, for receiving shutdown request and calling the shutdown interface of the system of container A when receiving shutdown request and shutdown request sent to the system management module 15 of container A; The system management module 15 of container A, for receiving the shutdown request of described shutdown request Transmit-Receive Unit 10 transmission and shutdown request being sent to the Container Management module 30 being positioned at host layer; Container Management module 30, the shutdown request that the system management module 15 for receiving vessel A sends also sends shutdown notice to the system management module 20 in container B; The system management module 20 of container B, for calling the shutdown interface corresponding with it respectively when receiving shutdown notice; Wherein, described Container Management module 30 also receive exit signal from the init process of each container after call the shutdown interface of host layer, realize the real closedown of whole mobile terminal.In other embodiments, mobile terminal can comprise 3 with upper container, in this case, system management module to each container in other all container except first receiving the container of shutdown request is sent shutdown notice by Container Management module 30, and the system management module of each container sends to Container Management module 30 and exits signal after calling corresponding system shutdown interface.
Some preferred embodiments are illustrated above, but it is emphasized that the present invention is not limited to these embodiments, but can realize by the alternate manner within the scope of present subject matter.
Claims (8)
1. based on a mobile terminal closedown method for container, wherein said mobile terminal comprises two or more container, independent operating operating system in each container, described two or more container share host layer, and it is characterized in that, described method comprises:
First container calls the shutdown interface of the system of the first container when receiving shutdown request, and shutdown request is sent to the system management module of the first container;
Shutdown request is sent to the Container Management module being positioned at host layer by the system management module of the first container;
Described Container Management module sends shutdown notice to the system management module of each container in every other container;
The system management module of each container in every other container calls the shutdown interface corresponding with it respectively;
Described Container Management module calls the shutdown interface of host layer after receiving the feedback from each container.
2. method according to claim 1, is characterized in that, described in be fed back to init process and exit signal.
3. method according to claim 1, is characterized in that, described shutdown request triggers through the power switch of described mobile terminal.
4. method according to claim 2, is characterized in that, described in exit signal and send after all processes of corresponding system all stop.
5. based on a mobile terminal shutdown unit for container, wherein said mobile terminal comprises two or more container, independent operating operating system in each container, described two or more container share host layer, and it is characterized in that, described device comprises:
The shutdown request Transmit-Receive Unit of the first container, for receiving shutdown request and calling the shutdown interface of the system of the first container when receiving shutdown request and shutdown request sent to the system management module of the first container;
The system management module of the first container, for receiving the shutdown request of described shutdown request Transmit-Receive Unit transmission and shutdown request being sent to the Container Management module being positioned at host layer;
Container Management module, for receive the first container system management module send shutdown request and to each container in every other container system management module send shutdown notice;
The system management module of each container in every other container, for calling the shutdown interface corresponding with it respectively when receiving shutdown notice;
Wherein, described Container Management module also calls the shutdown interface of host layer after receiving the feedback from each container.
6. device according to claim 5, is characterized in that, described in be fed back to init process and exit signal.
7. device according to claim 5, is characterized in that, described shutdown request triggers through the power switch of described mobile terminal.
8. device according to claim 6, is characterized in that, described in exit signal and send after all processes of corresponding system all stop.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510900974.XA CN105550024A (en) | 2015-12-08 | 2015-12-08 | Container-based mobile terminal shutdown method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510900974.XA CN105550024A (en) | 2015-12-08 | 2015-12-08 | Container-based mobile terminal shutdown method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105550024A true CN105550024A (en) | 2016-05-04 |
Family
ID=55829222
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510900974.XA Pending CN105550024A (en) | 2015-12-08 | 2015-12-08 | Container-based mobile terminal shutdown method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105550024A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775837A (en) * | 2016-11-29 | 2017-05-31 | 北京元心科技有限公司 | The global configuration synchronous method and device of multisystem |
CN106776062A (en) * | 2016-11-29 | 2017-05-31 | 北京元心科技有限公司 | The contact attribute information synchronization method and device of multisystem |
CN106776066A (en) * | 2016-11-29 | 2017-05-31 | 北京元心科技有限公司 | The systemic-function processing method and processing device of multisystem |
CN107870825A (en) * | 2016-09-27 | 2018-04-03 | 武汉安天信息技术有限责任公司 | A kind of automation ADB partition methods and device based on Docker |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1633639A (en) * | 2002-02-15 | 2005-06-29 | 国际商业机器公司 | Application window closure in response to event in parent window |
US20050278700A1 (en) * | 2004-06-14 | 2005-12-15 | Buskens Richard W | Shutting down a plurality of software components in an ordered sequence |
US20110239215A1 (en) * | 2010-03-24 | 2011-09-29 | Fujitsu Limited | Virtual machine management apparatus |
CN103631651A (en) * | 2012-08-28 | 2014-03-12 | 中兴通讯股份有限公司 | Method and system for closing application programs |
-
2015
- 2015-12-08 CN CN201510900974.XA patent/CN105550024A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1633639A (en) * | 2002-02-15 | 2005-06-29 | 国际商业机器公司 | Application window closure in response to event in parent window |
US20050278700A1 (en) * | 2004-06-14 | 2005-12-15 | Buskens Richard W | Shutting down a plurality of software components in an ordered sequence |
US20110239215A1 (en) * | 2010-03-24 | 2011-09-29 | Fujitsu Limited | Virtual machine management apparatus |
CN103631651A (en) * | 2012-08-28 | 2014-03-12 | 中兴通讯股份有限公司 | Method and system for closing application programs |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107870825A (en) * | 2016-09-27 | 2018-04-03 | 武汉安天信息技术有限责任公司 | A kind of automation ADB partition methods and device based on Docker |
CN107870825B (en) * | 2016-09-27 | 2021-05-04 | 武汉安天信息技术有限责任公司 | Automatic ADB isolation method and device based on Docker |
CN106775837A (en) * | 2016-11-29 | 2017-05-31 | 北京元心科技有限公司 | The global configuration synchronous method and device of multisystem |
CN106776062A (en) * | 2016-11-29 | 2017-05-31 | 北京元心科技有限公司 | The contact attribute information synchronization method and device of multisystem |
CN106776066A (en) * | 2016-11-29 | 2017-05-31 | 北京元心科技有限公司 | The systemic-function processing method and processing device of multisystem |
CN106776066B (en) * | 2016-11-29 | 2020-12-29 | 北京元心科技有限公司 | Multi-system function processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6740373B2 (en) | Page component dynamic layout | |
US10409635B2 (en) | Switching method, switching system and terminal for system and/or application program | |
CN105550024A (en) | Container-based mobile terminal shutdown method and device | |
CN109752047A (en) | Computer room alarm method, device and storage medium based on temperature and humidity | |
EP3509270A1 (en) | Data backup method and device, storage medium and electronic apparatus | |
US20170220395A1 (en) | Method for processing application and terminal | |
CN108664521B (en) | Method and device for providing serial number, electronic equipment and readable storage medium | |
US9519537B2 (en) | Apparatus, system and method for application log data processing | |
CN103809864A (en) | Method and device for switching interfaces dynamically | |
US10944920B2 (en) | Video switching method, device and video patrol system | |
CN105429813A (en) | Monitoring method and client for docker | |
CN108900627B (en) | Network request method, terminal device and storage medium | |
CN107045475B (en) | Test method and device | |
CN106126216B (en) | One kind acceleration starting-up method based on android system and its system | |
CN113595773B (en) | Information processing method, device, electronic equipment and storage medium | |
CN109343955B (en) | Recommendation service calling method, medium, device and computing equipment | |
CN107835454B (en) | WebApp-based timeout processing method and device and storage medium | |
CN109753419A (en) | A kind of method and device of the abnormal log information of all applications of non-invasive monitoring Android system | |
CN111078320B (en) | Application program access method, device, equipment and storage medium based on webpage end | |
CN108984238B (en) | Gesture processing method and device of application program and electronic equipment | |
KR102004632B1 (en) | Service management method and device | |
CN115061796A (en) | Execution method and system for calling between subtasks and electronic equipment | |
CN112583694A (en) | Message pushing method and device, storage medium and control terminal | |
CN105162633B (en) | A kind of method and apparatus managing network in the multiple operating system based on container | |
CN106899487B (en) | Communication processing method, device, server and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160504 |