CN110471870A - Method, apparatus, electronic equipment and the storage medium of multisystem operation - Google Patents

Method, apparatus, electronic equipment and the storage medium of multisystem operation Download PDF

Info

Publication number
CN110471870A
CN110471870A CN201910749975.7A CN201910749975A CN110471870A CN 110471870 A CN110471870 A CN 110471870A CN 201910749975 A CN201910749975 A CN 201910749975A CN 110471870 A CN110471870 A CN 110471870A
Authority
CN
China
Prior art keywords
data
multisystem
shared
transmitted
progress information
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.)
Granted
Application number
CN201910749975.7A
Other languages
Chinese (zh)
Other versions
CN110471870B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910749975.7A priority Critical patent/CN110471870B/en
Publication of CN110471870A publication Critical patent/CN110471870A/en
Application granted granted Critical
Publication of CN110471870B publication Critical patent/CN110471870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/167Interprocessor communication using a common memory, e.g. mailbox

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Multi Processors (AREA)

Abstract

The embodiment of the present application discloses method, apparatus, electronic equipment and the storage medium of a kind of multisystem operation.Wherein, the method of the multisystem operation includes: reception operating instruction, corresponding system is run on multiple central processing units according to operating instruction, obtain the progress information of multisystem, the data that each system needs to transmit are distributed according to progress information, with the presence or absence of shared data among the data that judgement needs to transmit, there are shared datas among the data if desired transmitted, then shared data are transmitted in the multisystem by shared bus.By the way that public storage area is arranged in memory, the storing data of shared by multiple systems is stored in public storage area, shared data is transmitted using shared bus, improves the utilization rate of memory.

Description

Method, apparatus, electronic equipment and the storage medium of multisystem operation
Technical field
This application involves fields of communication technology, and in particular to the method, apparatus of multisystem operation a kind of, electronic equipment and deposits Storage media.
Background technique
In current electronic equipment, most of is all to carry a system to carry multiple on some electronic equipments Individual memory space is arranged to each operating system by the multiple central processing units of carrying and multiple operating systems in system, Circuit design considerably increases the cost of multi-system equipment.On some electronic equipments, although being equipped with multiple systems, Multiple systems are all based on main system, using virtual machine in the case where generate, pre-assigned storage region can only be carried out Access, cannot access to other storage regions of electronic equipment, cannot achieve data sharing.
Summary of the invention
The embodiment of the present application provides method, apparatus, electronic equipment and the storage medium of a kind of multisystem operation.By depositing Public storage area is set in reservoir, the storing data of shared by multiple systems is stored in public storage area, utilizes shared bus Shared data is transmitted, the utilization rate of memory is improved.
In a first aspect, the embodiment of the present application provides a kind of method of multisystem operation, the method comprise the steps that
Operating instruction is received, corresponding system is run on multiple central processing units according to the operating instruction;
The progress information for obtaining multisystem distributes the data that each system needs to transmit according to the progress information;
Judge among the data for needing to transmit with the presence or absence of shared data;
If so, the shared data is transmitted in the multisystem by shared bus.
Second aspect provides a kind of device of multisystem operation in the embodiment of the present application, and wherein described device includes:
Operation module is run on multiple central processing units for receiving operating instruction according to the operating instruction Corresponding system;
Module is obtained to distribute each system according to the progress information for obtaining the progress information of multisystem and need to pass Defeated data;
Judgment module, for judging among the data for needing to transmit with the presence or absence of shared data;
First transmission module, for needing to pass through shared bus there are when shared data among the data transmitted described The shared data is transmitted in the multisystem.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including memory, processor and are stored in storage On device and the computer program that can run on a processor, the processor realize above-mentioned multisystem operation when executing described program Method in step.
Fourth aspect, the embodiment of the present application provide a kind of storage medium, are stored thereon with computer program, the calculating Machine program realizes the step in the method for above-mentioned multisystem operation when being executed by processor.
In the embodiment of the present application, by receiving operating instruction, run on multiple central processing units according to operating instruction pair The system answered obtains the progress information of multisystem, and the data that each system needs to transmit are distributed according to progress information, judge to need With the presence or absence of shared data among the data of transmission, there are shared datas among the data if desired transmitted, then total by sharing Shared data is transmitted in the multisystem by line.By the way that public storage area is arranged in memory, by shared by multiple systems Storing data is stored in public storage area, transmits shared data using shared bus, improves the utilization rate of memory.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the first pass schematic diagram of multisystem operation method provided by the embodiments of the present application.
Fig. 2 is the second procedure schematic diagram of multisystem operation method provided by the embodiments of the present application.
Fig. 3 is the first structure diagram of multisystem running gear provided by the embodiments of the present application.
Fig. 4 is that the embodiment of the present application provides the second structural schematic diagram of multisystem running gear.
Fig. 5 is the first structure diagram of electronic equipment provided by the embodiments of the present application.
Fig. 6 is the second structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall in the protection scope of this application.
In the following description, the specific embodiment of the application will refer to the step as performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is executed by computer, this paper institute The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data For the provider location of the memory, there is the specific feature as defined in the data format.But the application principle is with above-mentioned text Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below Also it may be implemented in hardware.
Term " first ", " second " and " third " in the application etc. are for distinguishing different objects, rather than for retouching State particular order.In addition, term " includes " and " having " and their any deformations, it is intended that cover and non-exclusive include. Such as contain series of steps or module process, method, system, product or equipment be not limited to listed step or Module, but some embodiments further include the steps that not listing or module or some embodiments further include for these processes, Method, product or equipment intrinsic other steps or module.
The embodiment of the present application provides method, apparatus, electronic equipment and the storage medium of a kind of multisystem operation.Individually below It is described in detail.
Referring to Fig. 1, Fig. 1 is the first pass schematic diagram of multisystem operation method provided by the embodiments of the present application.This Shen Please the method for multisystem operation that provides of embodiment, can data to public storage area carry out sharing biography by shared bus It is defeated, multisystem is improved to the utilization rate of memory.
In a step 101, operating instruction is received, corresponding system is run on multiple central processing units according to operating instruction System.
In one embodiment, electronic equipment is equipped with multiple operating systems, and multiple operating systems have all corresponded to oneself Central processing unit, each central processing unit correspondence runs a kind of operating system.
When electronic equipment opens power switch, an operating instruction can be generated, includes that starting is corresponding in operating instruction The order of system starts one or more system according to operating instruction, wherein each system have oneself central processing unit and What each system was distributed exclusively enjoys memory space, in the memory space exclusively enjoyed, stores the frame needed when the operation of each system The significant datas such as frame and process.
In a step 102, the progress information for obtaining multisystem distributes each system according to the progress information and needs to transmit Data.
It is understood that when each system is run, can all have each after starting corresponding system according to operating instruction The corresponding process of a system, it also includes each system operation application and place that wherein process, which includes the host process of each system operation, Process generated when reason task.
The progress information of multiple systems available at this time, the progress information of multiple systems include the operation of each system State, progress information and data input/output information etc..These information can be obtained by the corresponding progress information of each system It gets.
After the progress information for getting multiple systems, it can be obtained from the progress information of each system and need to transmit Data information, the data information transmitted as needed needs the data transmitted to distribute.For example, obtaining progress information includes A The progress information of the progress information of system, the progress information of B system and C system, from the progress information of tri- systems of A, B, C The corresponding data information for needing to transmit of each system is got, data information is analyzed, then again in memory Data are allocated, and after being assigned to data, can just be transferred data among each system.
In step 103, judge the data for needing to transmit with the presence or absence of shared data.
It is understood that the data that each system obtains not are to be different from completely among multiple systems, have Some multiple systems of data require to read, and can edit to the content in the data, for example, WiFi data, Each system can be read, or modification increases WiFi data, to guarantee normal network connection.
It in one embodiment, at this time can be by each after getting the data that each system needs to transmit The data of system transmission are judged that analysis wherein whether there is shared data, it should be noted that shared data is to transport The data that each system can use in capable multisystem, certainly, the system of not running can also support the shared data.
At step 104, there are shared datas among the data if desired transmitted, then are shared by shared bus by described Data are transmitted among the multisystem.
In one embodiment, multiple systems or multiple central processing units can connect memory with shared bus, deposit The storage region that each system exclusively enjoys in multisystem is provided in reservoir, be also equipped with that multiple systems can access public deposits Storage area domain.The wherein storage region that each system exclusively enjoys stores the significant data of each system, such as system framework and system Process stores above-mentioned shared data among public storage area.
In one embodiment, judging that there are shared datas among data that multiple systems need to transmit, then it can be right Shared data carry out prioritised transmission, by multiple systems share bus, by shared data be transmitted to each needs this be total to Among the system of data.
For example, the activation bit of each sensor of electronic equipment and external equipment is store in bulletin storage region, in electricity After system in sub- equipment gets activation bit, could sensor to electronic equipment and external equipment control.This When the activation bit of sensor and external equipment can be stored among the public storage area of memory, electronic equipment it is every A system can obtain the activation bit among bulletin storage region.
By shared by multiple systems memory, and public storage area is set in memory, storage can be greatly improved The utilization rate of device.Also being avoided that memory public storage area is occupied simultaneously additionally by the mode of shared bus causes to store The low problem of device working efficiency.
In step 105, shared data is not present among the data if desired transmitted, then is believed according to the process of each system The data for transmitting needs are ceased to transmit.
It is understood that being obtained among the data that multisystem needs to transmit according to progress information, the number for needing to transmit According to may include shared data, non-common data and sensing data.Wherein, shared data can be deposited by shared bus by public Shared data among storage area domain is transmitted among multisystem.
In one embodiment, shared data is not present among the data if desired transmitted, then illustrates the number for needing to transmit There are non-common data among, at this point it is possible to according to the progress information of the multisystem of acquisition, to obtain the needs for needing to obtain The non-common data information of transmission exclusively enjoys storage region by the corresponding system of calling non-common data, by non-common data Non-common data are transmitted in multisystem by shared bus or each system corresponding bus.
In the embodiment of the present application, by receiving operating instruction, run on multiple central processing units according to operating instruction pair The system answered obtains the progress information of multisystem, and the data that each system needs to transmit are distributed according to progress information, judge to need With the presence or absence of shared data among the data of transmission, there are shared datas among the data if desired transmitted, then total by sharing Shared data is transmitted in the multisystem by line.By the way that public storage area is arranged in memory, by shared by multiple systems Storing data is stored in public storage area, transmits shared data using shared bus, improves the utilization rate of memory.
Referring to Fig. 2, Fig. 2 is the second procedure schematic diagram of the method for multisystem operation provided by the embodiments of the present application.This The method for applying for the multisystem operation that embodiment provides, the data of public storage area can be shared by shared bus Transmission, improves multisystem to the utilization rate of memory.
In step 201, operating instruction is received, corresponding system is run on multiple central processing units according to operating instruction System.
For example, there is the network control system to network-control in intelligent gateway, there is also the joys for playing audio frequency and video Music system, when intelligent gateway powers on, intelligent gateway is by receiving operating instruction, network control system and entertainment systems meeting Start operation on corresponding central processing unit, during starting operation, network control system and entertainment systems can be Corresponding exclusively enjoy calls data in the same memory among memory space, completes normally starting and running for system.
In step 202, the progress information for obtaining multisystem distributes the number that each system needs to transmit according to progress information According to.
It is understood that when each system is run, can all have each after starting corresponding system according to operating instruction The corresponding process of a system, it also includes each system operation application and place that wherein process, which includes the host process of each system operation, Process generated when reason task.
The progress information of multiple systems available at this time, the progress information of multiple systems include the operation of each system State, progress information and data input/output information etc..These information can be obtained by the corresponding progress information of each system It gets.
In one embodiment, it may include in memory common storage area that each system got, which needs the data transmitted, The shared data in domain, the non-common storing data and sensing data that storage region is exclusively enjoyed in each system.
In step 203, the operating status of multisystem is determined according to the progress information of multisystem.
It is not each system in operation execution task, some systems may not have in the electronic equipment of multisystem Starting, some systems start, and some systems are in suspend mode standby mode.At this point it is possible to according to the process of the multisystem of acquisition Information, to judge whether the corresponding host process of each system is in running order, if the corresponding host process of system is in work shape State then illustrates that the system is in running order, and the corresponding host process of system stays cool, then illustrates that the system is in suspend mode Standby mode, if not detecting the corresponding host process of system, illustrating the system, there is no start.
In step 204, the sensing data for needing to transmit is obtained according to the operating status of multisystem.
It can judge whether each system needs transmission sensor data according to the operating status of multisystem at this time, if some System is in normal operating conditions, then needs to obtain sensing data, can analyze the process of these systems, and analysis needs Which the sensing data wanted has, for example, it is desired to which the sensing data obtained has WiFi data, location data, light intensity number According to etc..
It is understood that system all in these sensing data electronic equipments can obtain, but for sensing The use of device data, according to each system handle task when demand come using.
In step 205, by system communication by sensor data transmission into multisystem.
It is understood that require to perceive extraneous data from sensor when each system works in multisystem, from And realize the control to electronic equipment.Due to the electronic equipment of multisystem, all types of sensors, which only need to be arranged one, to expire Sufficient multisystem demand.
The communication that can establish between system between multisystem shares sensing data to realize.For example, can borrow IPC (Inter-Process Communication, interprocess communication) is helped, ccf layer is perceived and method, system is run State and data, and encapsulate corresponding API and called for upper layer, wherein ccf layer has operation core library, upper layer api interface.
In one embodiment, among multisystem, the sensing data obtained can be needed to give one multiple systems A system is obtained, such as the main system given among multisystem obtains sensing data, is then passed through again and is Sensing data is shared in communication between system.
In one embodiment, multiple systems can also obtain sensing data by bus, it is dry in order not to generate It disturbs, the sensing data that each system can be made to obtain is different, such as system A obtains gravity sensor data, system B is obtained It takes light sensor data, system C to obtain temperature and moisture sensors data, can thus be obtained simultaneously to avoid multiple systems One sensing data causes bus, the level change of sensor different, damages sensor degradation or bus.
In one embodiment, in the electronic equipment of multisystem, the data that multiple sensors can actively will acquire are passed It transports among the public storage area of memory, sensing data is then obtained by a certain system, then pass through intersystem communications Sensing data is shared with multiple systems.
In step 206, judge among the data for needing to transmit with the presence or absence of shared data.
In one embodiment, multiple systems or multiple central processing units can connect memory with shared bus, deposit The storage region that each system exclusively enjoys in multisystem is provided in reservoir, be also equipped with that multiple systems can access public deposits Storage area domain.The wherein storage region that each system exclusively enjoys stores the significant data of each system, such as system framework and system Process stores above-mentioned shared data among public storage area.
In one embodiment, judging that there are shared datas among data that multiple systems need to transmit, then it can be right Shared data carry out prioritised transmission, by multiple systems share bus, by shared data be transmitted to each needs this be total to Among the system of data.
For example, the activation bit of each sensor of electronic equipment and external equipment is store in bulletin storage region, in electricity After system in sub- equipment gets activation bit, could sensor to electronic equipment and external equipment control.This When the activation bit of sensor and external equipment can be stored among the public storage area of memory, electronic equipment it is every A system can obtain the activation bit among bulletin storage region.
If among the data that judgement needs to transmit, there are shared datas, enter step in 207, the data if desired transmitted Among be not present shared data, then enter step in 210.
In step 207, it obtains the shared data and stores to the public storage area of memory.
It, can be in memory after getting the shared data information for needing to transmit according to the progress information of multiple systems Public storage area call and need the shared data that transmits.
For example, multiple systems need to obtain the activation bit of electronic equipment display screen, then can call public in memory The activation bit for the display screen that storage region is gone can call if multiple systems need to obtain the information about power of electronic equipment The information about power of the electronic equipment of public storage area.
In a step 208, the corresponding multiple goal systems of shared data are selected according to progress information.
It is understood that shared data is the data that the multiple systems of electronic equipment can use, it is still, more starting It after a system, does not represent each system and requires using a certain shared data, for example, being not that each system requires to obtain The activation bit of speaker is taken, only the system in need for playing audio just needs the activation bit of speaker.
In one embodiment, the progress information of multisystem can be analyzed, analyzes which which system needs Then shared data is demarcated the system and the shared data, set goal systems for these systems, need to illustrate That the available multiple shared datas of a system a, shared data can be shared with multiple systems, then each system and altogether With all there may be corresponding relationships between data, in the present embodiment, it is only necessary to the shared data that system needs be established and corresponded to Relationship.
In step 209, shared data is transmitted among multiple goal systems by shared bus.
After having selected shared data correspondence system, corresponding system can be sent data to by shared bus, For example, can be according to the data volume size order of the shared data of transmission, to transmit shared data, first small to data volume shares Data are transmitted to corresponding system by shared bus, then the big shared data of data volume is transmitted to corresponding goal systems.
In one embodiment, in the case where the shared data data volume for needing to transmit is all smaller, it is possible to specify more A system to obtain shared data by shared bus in system, then is shared by the shared data that intersystem communications will acquire Out, each goal systems can also actively obtain the shared data oneself needed from the system for obtaining shared data.
In step 210, believed there is no when shared data according to the process of multisystem in the data that judgement needs to transmit The priority of each system in breath setting multisystem.
It is understood that there is no when shared data, then illustrate to need to obtain transmission among the data for needing to transmit The system of data needs to obtain its corresponding data exclusively enjoyed in storage region.
In one embodiment, memory is connected by shared bus due to multiple systems, needs to transmit in multiple systems Data in be not present shared data when, can according to the priority of system come by shared bus transmit data, for example, polyphyly In system, main system is to play the role of aid in treatment data handling important task, remaining system, then can be first Higher priority is arranged to the data that main system needs to obtain, the data setting for needing to obtain transmission to other systems is lower Priority.
In step 211, non-common data are transmitted separately among each system according to priority.
To multisystem need transmit data setting priority after, can according to the high low transmission data of priority, For example, the highest priority of main system, then preferential to need data to be used by shared bus transmission main system.
In one embodiment, the size setting for the data volume transmitted can also be needed to need to transmit number according to each system According to priority, for example, data volume is smaller, priority is higher, then data first high to priority pass through shared bus carry out Transmission.Non-common data can be respectively transmitted among corresponding system.
In embodiment provided by the present application, by receiving operating instruction, according to operating instruction on multiple central processing units Corresponding system is run, the progress information of multisystem is obtained, the data that each system needs to transmit, root are distributed according to progress information The operating status that multisystem is determined according to the progress information of multisystem obtains the sensing for needing to transmit according to the operating status of multisystem Device data, by system communication by sensor data transmission into multisystem.
Then, judge among the data for needing to transmit with the presence or absence of shared data, and if it exists, obtain shared data and store To the public storage area of memory, the corresponding multiple goal systems of shared data are selected according to progress information, it is total by sharing Shared data is transmitted among goal systems by line;If it does not exist, it is arranged according to the progress information of multisystem each in multisystem Non-common data are transmitted among multisystem by the priority of system according to priority.
By the way that public storage area is arranged in memory, the storing data of shared by multiple systems is stored in common storage area Domain transmits shared data using shared bus, improves the utilization rate of memory.
Correspondingly, the embodiment of the present application provides a kind of device 300 of multisystem operation, referring to Fig. 3, Fig. 3 is this Shen Please embodiment provide multisystem running gear 300 first structure diagram, wherein described device 300 includes: operation module 310, module 320, judgment module and the first transmission module 340 are obtained.
Operation module 310 is transported on multiple central processing units for receiving operating instruction according to the operating instruction The corresponding system of row.
In one embodiment, electronic equipment is equipped with multiple operating systems, and multiple operating systems have all corresponded to oneself Central processing unit, each central processing unit correspondence runs a kind of operating system.
When electronic equipment opens power switch, operation module 310 can generate an operating instruction, include in operating instruction Starting corresponding system order, one or more system is started according to operating instruction, wherein each system has in oneself What central processor and each system were distributed exclusively enjoys memory space, in the memory space exclusively enjoyed, stores each system operation When the significant datas such as the frame that needs and process.
It obtains module 320 and distributes each system needs according to the progress information for obtaining the progress information of multisystem The data of transmission.
It is understood that when each system is run, can all have each after starting corresponding system according to operating instruction The corresponding process of a system, it also includes each system operation application and place that wherein process, which includes the host process of each system operation, Process generated when reason task.
The progress information of the available multiple systems of module 320 is obtained at this time, and the progress information of multiple systems includes every Operating status, progress information and data input/output information of a system etc..These information can be corresponding by each system Progress information get.
Wherein obtaining module 320 further includes determining submodule 321 and acquisition submodule 322, is referring specifically to Fig. 4, Fig. 4 Second structural schematic diagram of multisystem running gear provided by the embodiments of the present application.
Submodule 321 is determined, for determining the operating status of the multisystem according to the progress information of the multisystem.
It is not each system in operation execution task, some systems may not have in the electronic equipment of multisystem Starting, some systems start, and some systems are in suspend mode standby mode.At this point it is possible to according to the process of the multisystem of acquisition Information, to judge whether the corresponding host process of each system is in running order, if the corresponding host process of system is in work shape State then illustrates that the system is in running order, and the corresponding host process of system stays cool, then illustrates that the system is in suspend mode Standby mode, if not detecting the corresponding host process of system, illustrating the system, there is no start.Determine submodule 321 The operating status of the multisystem is determined according to the progress information of the multisystem.
Acquisition submodule 322, for obtaining the sensing data for needing to transmit according to the operating status of the multisystem.
Acquisition submodule 322 can judge whether each system needs transmission sensing according to the operating status of multisystem at this time Device data need to obtain sensing data if some systems are in normal operating conditions, can process to these systems into Which row analysis, the sensing data for analyzing needs have, for example, it is desired to which the sensing data obtained has WiFi data, positioning number According to, light intensity data etc..
It should be noted that multisystem running gear 300 further includes the second transmission module 350, the second transmission module 350, For needing the sensor data transmission transmitted into the multisystem for described by intersystem communications.
The communication that can establish between system between multisystem shares sensing data to realize.For example, can borrow IPC (Inter-Process Communication, interprocess communication) is helped, ccf layer is perceived and method, system is run State and data, and encapsulate corresponding API and called for upper layer, wherein ccf layer has operation core library, upper layer api interface.
In one embodiment, among multisystem, multiple systems can be needed the biography that obtain by the second transmission module 350 Sensor data give a system to be obtained, such as the main system given among multisystem obtains sensing data It takes, is then again shared sensing data by intersystem communications.
Judgment module 330, for judging among the data for needing to transmit with the presence or absence of shared data.
After getting the data that each system needs to transmit, at this time can by data that each system is transmitted into Row judgement, analysis wherein whether there is shared data, it should be noted that shared data is each in the multisystem being currently running The data that system can use, certainly, the system of not running can also support the shared data.
Judgment module 330 is needed to judge among the data for needing to transmit with the presence or absence of shared data at this time.
First transmission module 340, it is total by sharing for needing among the data transmitted described there are when shared data The shared data is transmitted in the multisystem by line.
In one embodiment, judging that there are shared data, the first transmission among data that multiple systems need to transmit Module 340 can carry out prioritised transmission to shared data, and shared data is transmitted to each by the bus shared by multiple systems Among the system of the shared data of a needs.
For example, the activation bit of each sensor of electronic equipment and external equipment is store in bulletin storage region, in electricity After system in sub- equipment gets activation bit, could sensor to electronic equipment and external equipment control.This When the activation bit of sensor and external equipment can be stored among the public storage area of memory, electronic equipment it is every A system can obtain the activation bit among bulletin storage region.
First transmission module 340 includes selected submodule 341, submodule 342, first is called to transmit submodule 343
Selected submodule 341, for selecting the corresponding multiple goal systems of the shared data according to the progress information.
In one embodiment, the progress information of multisystem can be analyzed by selecting submodule 341, which is analyzed Which shared data is system need, and then demarcates to the system and the shared data, it should be noted that a system can To obtain multiple shared datas, a shared data can be shared with multiple systems, then between each system and shared data There may be corresponding relationships, in the present embodiment, it is only necessary to which the shared data needed to system establishes corresponding relationship.
Submodule 342 is called, for obtaining the shared data and storing to the public storage area of memory.
After calling submodule 342 to get the shared data information for needing to transmit according to the progress information of multiple systems, The shared data for needing to transmit can be called in the public storage area of memory.
First transmission submodule 343, for the shared data to be transmitted to the target system by the shared bus Among system.
After having selected shared data correspondence system, the first transmission submodule 343 can be by shared bus by data Be transmitted to corresponding system, for example, can according to the data volume size order of the shared data of transmission, to transmit shared data, Shared data first small to data volume is transmitted to corresponding system by shared bus, then the big shared data of data volume is transmitted To corresponding system.
Multisystem running gear 300 further includes priority block 360 and third transmission module 370.
Priority block 360, for each system in the multisystem to be arranged according to the progress information of the multisystem Priority.
Third transmission module 370, for non-common data to be transmitted among the multisystem according to the priority.
In embodiment provided by the present application, by receiving operating instruction, according to operating instruction on multiple central processing units Corresponding system is run, the progress information of multisystem is obtained, the data that each system needs to transmit, root are distributed according to progress information The operating status that multisystem is determined according to the progress information of multisystem obtains the sensing for needing to transmit according to the operating status of multisystem Device data, by system communication by sensor data transmission into multisystem.
Then, judge among the data for needing to transmit with the presence or absence of shared data, and if it exists, obtain shared data and store To the public storage area of memory, the corresponding multiple goal systems of shared data are selected according to progress information, it is total by sharing Shared data is transmitted among goal systems by line;If it does not exist, it is arranged according to the progress information of multisystem each in multisystem Non-common data are transmitted among multisystem by the priority of system according to priority.
By the way that public storage area is arranged in memory, the storing data of shared by multiple systems is stored in common storage area Domain transmits shared data using shared bus, improves the utilization rate of memory.
Correspondingly, the embodiment of the present application provides a kind of electronic equipment, referring to Fig. 5, Fig. 5 is that the embodiment of the present application provides Electronic equipment first structure diagram.
In electronic equipment shown in Fig. 5, there are external equipment, such as sensor, wireless module, USB, wireline interface etc. Deng.Electronic equipment includes multiple CPU, such as CPU1, CPU2, CPU n, multiple CPU carry different systems.Memory is deposited There are also the public storage areas that each system can access in the memory space and memory that reservoir has each CPU to exclusively enjoy.
In one embodiment, can be carried out data transmission by shared bus among CPU and memory, CPU passes through Shared bus connects mainboard, and mainboard connects external equipment by bus, and CPU can directly acquire the one of peripheral equipment by mainboard A little information.
In one embodiment, CPU can directly acquire sensor number by the bus with external equipment from sensor According to.Sensor can store data in public storage area, and CPU can obtain sensing data from public storage area.
Specifically, referring to Fig. 6, Fig. 6 is the second structural schematic diagram of electronic equipment provided by the embodiments of the present application, electronics Equipment 600 may include display unit 601, input unit 602, include one or more computer readable storage medium Memory 603, the processor 604, power supply 605 and the sensor 606 that include one or more than one processing core etc. Component.It will be understood by those skilled in the art that electronic devices structure shown in Fig. 6 does not constitute the restriction to electronic equipment, It may include perhaps combining certain components or different component layouts than illustrating more or fewer components.Wherein:
Display unit 601 can be used for showing information input by user or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display Unit 601 may include display panel, optionally, can using liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further , touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, send processing to Device 604 is followed by subsequent processing device 604 and is provided on a display panel accordingly according to the type of touch event to determine the type of touch event Visual output.Although touch sensitive surface and display panel are to realize input and input as two independent components in Fig. 6 Function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realizes and outputs and inputs function.
Input unit 602 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, in a specific embodiment In, input unit 602 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touching Control plate, collect user on it or nearby touch operation (such as user using any suitable object such as finger, stylus or Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula It sets.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 604, and can reception processing Order that device 604 is sent simultaneously is executed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 602 can also include other input equipments.Specifically, other are defeated Entering equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse One of mark, operating stick etc. are a variety of.
Memory 603 can be used for storing software program and module, and processor 608 is stored in memory 603 by operation Software program and module, thereby executing various function application and data processing.Memory 603 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created data according to terminal (such as audio data, phone directory etc.) etc..In addition, memory 603 may include high-speed random access memory, can also include Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase Ying Di, memory 603 can also include Memory Controller, to provide processor 603 and input unit 602 to memory 603 Access.
Processor 604 is the control centre of terminal, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 603, and call and be stored in memory 603 Data execute the various functions and processing data of terminal, to carry out integral monitoring to mobile phone.Optionally, processor 604 can wrap Include one or more processing cores;Preferably, processor 604 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 604.
Terminal further includes the power supply 605 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 604 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.Power supply 605 can also include one or more direct current or AC power source, recharging system, power failure inspection The random components such as slowdown monitoring circuit, power adapter or inverter, power supply status indicator.
Terminal may also include at least one sensor 606, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel, proximity sensor can close display panel and/or back when terminal is moved in one's ear Light.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Although being not shown, terminal can also include camera, bluetooth module etc., and details are not described herein.Specifically in this implementation In example, the processor 604 in terminal can be corresponding by the process of one or more application program according to following instruction Executable file is loaded into memory 603, and the application program being stored in memory 603 is run by processor 604, from And realize various functions:
Operating instruction is received, corresponding system is run on multiple central processing units according to the operating instruction;
The progress information for obtaining multisystem distributes the data that each system needs to transmit according to the progress information;
Judge among the data for needing to transmit with the presence or absence of shared data;
If so, the shared data is transmitted in the multisystem by shared bus.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present application provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be processed Device is loaded, to execute the step in the method for any multisystem operation provided by the embodiment of the present application.For example, this refers to Order can execute following steps:
Operating instruction is received, corresponding system is run on multiple central processing units according to the operating instruction;
The progress information for obtaining multisystem distributes the data that each system needs to transmit according to the progress information;
Judge among the data for needing to transmit with the presence or absence of shared data;
If so, the shared data is transmitted in the multisystem by shared bus.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include: read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any multisystem provided by the embodiment of the present application can be executed Step in the method for operation, it is thereby achieved that the method institute of any multisystem operation provided by the embodiment of the present application The beneficial effect being able to achieve is detailed in the embodiment of front, and details are not described herein.
It is situated between above to a kind of method, apparatus of the operation of multisystem provided by the embodiment of the present application, electronic equipment and storage Matter is described in detail, and specific examples are used herein to illustrate the principle and implementation manner of the present application, above The explanation of embodiment is merely used to help understand the present processes and its core concept;Meanwhile for those skilled in the art Member, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion this explanation Book content should not be construed as the limitation to the application.

Claims (11)

1. a kind of method of multisystem operation, is applied to electronic equipment, the electronic equipment includes multiple central processing units, described Multisystem is separately operable in the multiple central processing unit, which is characterized in that the described method includes:
Operating instruction is received, corresponding system is run on multiple central processing units according to the operating instruction;
The progress information for obtaining multisystem distributes the data that each system needs to transmit according to the progress information;
Judge among the data for needing to transmit with the presence or absence of shared data;
If so, the shared data is transmitted in the multisystem by shared bus.
2. the method for multisystem according to claim 1 operation, which is characterized in that it is described will be described total by shared bus It is transmitted in the multisystem with data, comprising:
The corresponding multiple goal systems of the shared data are selected according to the progress information;
The shared data is transmitted among the goal systems by the shared bus.
3. the method for multisystem according to claim 1 operation, which is characterized in that it is described will be described total by shared bus It is transmitted in the multisystem with data, comprising:
It obtains the shared data and stores to the public storage area of memory;
The shared data is transmitted in the multisystem by shared bus.
4. the method for multisystem operation according to claim 1, which is characterized in that judging the data for needing to transmit Among with the presence or absence of before shared data, the method also includes:
The operating status of the multisystem is determined according to the progress information of the multisystem;
The sensing data for needing to transmit is obtained according to the operating status of the multisystem;
Need the sensor data transmission transmitted into the multisystem for described by intersystem communications.
5. the method for multisystem according to claim 1 operation, which is characterized in that it is described will be described by shared bus After shared data is transmitted in the multiple system, which comprises
The priority of each system in the multisystem is set according to the progress information of the multisystem;
Non-common data are transmitted separately among each system according to the priority.
6. a kind of device of multisystem operation, which is characterized in that described device includes:
It runs module and runs correspondence on multiple central processing units according to the operating instruction for receiving operating instruction System;
Module is obtained, for obtaining the progress information of multisystem, distributes what each system needed to transmit according to the progress information Data;
Judgment module, for judging among the data for needing to transmit with the presence or absence of shared data;
First transmission module, for needing among the data transmitted described there are when shared data, by shared bus by institute Shared data is stated to be transmitted in the multisystem.
7. the device of multisystem operation according to claim 6, which is characterized in that first transmission module, comprising:
Selected submodule, for selecting the corresponding multiple goal systems of the shared data according to the progress information;
Submodule is called, for obtaining the shared data and storing to the public storage area of memory;
First transmission submodule, for the shared data to be transmitted among the goal systems by the shared bus.
8. the device of multisystem operation according to claim 6, which is characterized in that the acquisition module, comprising:
Submodule is determined, for determining the operating status of the multisystem according to the progress information of the multisystem;
Acquisition submodule, for obtaining the sensing data for needing to transmit according to the operating status of the multisystem.
9. the device of multisystem operation according to claim 6, which is characterized in that described device further include:
Priority block, for the priority of each system in the multisystem to be arranged according to the progress information of the multisystem;
Second transmission module, for passing through intersystem communications for the sensor data transmission for needing to transmit to the multisystem In;
Third transmission module, for non-common data to be transmitted separately among each system according to the priority.
10. a kind of electronic equipment characterized by comprising
The memory for being stored with executable program code, the processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes as claim 1 to 5 is any Step in the method for multisystem operation described in.
11. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, the step in the method for 1 to 5 described in any item multisystem operations is required with perform claim.
CN201910749975.7A 2019-08-14 2019-08-14 Multi-system operation method and device, electronic equipment and storage medium Active CN110471870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910749975.7A CN110471870B (en) 2019-08-14 2019-08-14 Multi-system operation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910749975.7A CN110471870B (en) 2019-08-14 2019-08-14 Multi-system operation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110471870A true CN110471870A (en) 2019-11-19
CN110471870B CN110471870B (en) 2022-01-07

Family

ID=68510801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910749975.7A Active CN110471870B (en) 2019-08-14 2019-08-14 Multi-system operation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110471870B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114579193A (en) * 2022-03-08 2022-06-03 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium
CN115334197A (en) * 2022-08-09 2022-11-11 青岛海信移动通信技术股份有限公司 Communication function changing method, multi-system terminal and medium
TWI824847B (en) * 2022-11-24 2023-12-01 新唐科技股份有限公司 Method and apparatus for controlling shared memory, shareable memory and electrical device using the same

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04238566A (en) * 1991-01-23 1992-08-26 Nec Commun Syst Ltd Inter-multi-processor bus communication system
US20050196124A1 (en) * 2004-02-12 2005-09-08 International Business Machines Corporation Automated topology detection in a data processing system
CN101216814A (en) * 2007-12-26 2008-07-09 杭州华三通信技术有限公司 Communication method and system of multi-nuclear multi-operating system
CN101477511A (en) * 2008-12-31 2009-07-08 杭州华三通信技术有限公司 Method and apparatus for sharing memory medium between multiple operating systems
CN103034616A (en) * 2012-12-07 2013-04-10 中国科学院声学研究所 Method and computer for multiple operating systems to access storage medium
CN104427105A (en) * 2013-08-28 2015-03-18 中兴通讯股份有限公司 Data synchronism method, device, and terminal in dual system
CN104618601A (en) * 2015-02-05 2015-05-13 深圳酷派技术有限公司 Data sharing method and multisystem terminal
CN105511970A (en) * 2015-12-11 2016-04-20 北京元心科技有限公司 Intelligent terminal and sensor control method thereof
CN106990993A (en) * 2017-04-18 2017-07-28 北京元心科技有限公司 Multi-system basic library file loading method and device
CN108536783A (en) * 2018-03-29 2018-09-14 广东欧珀移动通信有限公司 Data processing method and device, terminal, computer readable storage medium
CN108829453A (en) * 2018-03-13 2018-11-16 广东欧珀移动通信有限公司 Configuration method, device, terminal and the storage medium of sensor

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04238566A (en) * 1991-01-23 1992-08-26 Nec Commun Syst Ltd Inter-multi-processor bus communication system
US20050196124A1 (en) * 2004-02-12 2005-09-08 International Business Machines Corporation Automated topology detection in a data processing system
CN101216814A (en) * 2007-12-26 2008-07-09 杭州华三通信技术有限公司 Communication method and system of multi-nuclear multi-operating system
CN101477511A (en) * 2008-12-31 2009-07-08 杭州华三通信技术有限公司 Method and apparatus for sharing memory medium between multiple operating systems
CN103034616A (en) * 2012-12-07 2013-04-10 中国科学院声学研究所 Method and computer for multiple operating systems to access storage medium
CN104427105A (en) * 2013-08-28 2015-03-18 中兴通讯股份有限公司 Data synchronism method, device, and terminal in dual system
CN104618601A (en) * 2015-02-05 2015-05-13 深圳酷派技术有限公司 Data sharing method and multisystem terminal
CN105511970A (en) * 2015-12-11 2016-04-20 北京元心科技有限公司 Intelligent terminal and sensor control method thereof
CN106990993A (en) * 2017-04-18 2017-07-28 北京元心科技有限公司 Multi-system basic library file loading method and device
CN108829453A (en) * 2018-03-13 2018-11-16 广东欧珀移动通信有限公司 Configuration method, device, terminal and the storage medium of sensor
CN108536783A (en) * 2018-03-29 2018-09-14 广东欧珀移动通信有限公司 Data processing method and device, terminal, computer readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
KAN ZHAO;: "Study on Lane Changing Characteristics of Double-Articulated Bus Based on ADAMS", 《RIED: REVISTA IBEROAMERICANA DE EDUCACIÓN A DISTANCIA》 *
汤小丹,梁红兵,哲凤屏等编著: "《计算机操作系统 第4版》", 31 May 2014 *
翟建勇: "多系统卫星导航接收设备设计与研究", 《现代导航》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114579193A (en) * 2022-03-08 2022-06-03 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium
CN114579193B (en) * 2022-03-08 2024-01-12 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium
CN115334197A (en) * 2022-08-09 2022-11-11 青岛海信移动通信技术股份有限公司 Communication function changing method, multi-system terminal and medium
CN115334197B (en) * 2022-08-09 2024-05-10 青岛海信移动通信技术有限公司 Communication function changing method, multi-system terminal and medium
TWI824847B (en) * 2022-11-24 2023-12-01 新唐科技股份有限公司 Method and apparatus for controlling shared memory, shareable memory and electrical device using the same

Also Published As

Publication number Publication date
CN110471870B (en) 2022-01-07

Similar Documents

Publication Publication Date Title
CN109840061A (en) The method and electronic equipment that control screen is shown
RU2632153C2 (en) Method, device and terminal for displaying virtual keyboard
CN110841285B (en) Interface element display method and device, computer equipment and storage medium
CN112256425B (en) Load balancing method and system, computer cluster, information editing method and terminal
CN111045931B (en) Application program testing method, device, equipment and storage medium
CN110471870A (en) Method, apparatus, electronic equipment and the storage medium of multisystem operation
CN110231897A (en) A kind of object processing method and terminal device
EP3842106A1 (en) Method and device for processing control information, electronic equipment, and storage medium
CN109379484A (en) A kind of information processing method and terminal
CN109871246A (en) A kind of message display method and terminal device
CN109614061A (en) Display methods and terminal
CN108681427A (en) A kind of method and terminal device of access privilege control
CN109358931A (en) A kind of interface display method and terminal
CN110147186A (en) A kind of control method and terminal device of application
CN109816679A (en) A kind of image processing method and terminal device
CN108920040A (en) A kind of application icon method for sorting and mobile terminal
CN108196781A (en) The display methods and mobile terminal at interface
CN109828915B (en) Method, device, equipment and storage medium for debugging application program
CN104102560B (en) The method and device of system performance testing
CN110531908A (en) A kind of shortcut operation method and mobile terminal
CN110083588A (en) A kind of dissemination method, dispositions method and the relevant device of Redis management system
CN109117037A (en) A kind of method and terminal device of image procossing
WO2021008287A1 (en) Character recommending method and apparatus, and computer device and storage medium
CN108898000A (en) A kind of method and terminal solving lock screen
CN110569064B (en) Interface identifier generation method, device, equipment 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
GR01 Patent grant
GR01 Patent grant