CN107247578A - Configuration parameter storage method and device - Google Patents

Configuration parameter storage method and device Download PDF

Info

Publication number
CN107247578A
CN107247578A CN201710438848.6A CN201710438848A CN107247578A CN 107247578 A CN107247578 A CN 107247578A CN 201710438848 A CN201710438848 A CN 201710438848A CN 107247578 A CN107247578 A CN 107247578A
Authority
CN
China
Prior art keywords
configuration parameter
shared
storage
system memory
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710438848.6A
Other languages
Chinese (zh)
Inventor
王春雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201710438848.6A priority Critical patent/CN107247578A/en
Publication of CN107247578A publication Critical patent/CN107247578A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3824Operand accessing
    • G06F9/3834Maintaining memory consistency
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of configuration parameter storage method and device, it is related to areas of information technology, main purpose, which is to ensure that between different processes, to be kept synchronous and can avoid the occurrence of various abnormal conditions.Methods described includes:Acquisition needs multiple processes of storage configuration parameter;According to the corresponding shared mechanism of the multiple process of the multiple process creation;The configuration parameter stored is needed to store into Installed System Memory the multiple process using the shared mechanism.The present invention is applied to configuration parameter storage.

Description

Configuration parameter storage method and device
Technical field
The present invention relates to message area, more particularly to a kind of configuration parameter storage method and device.
Background technology
With continuing to develop and progressive for information technology, various terminal devices occur therewith.In actual applications, It is generally necessary to store the configuration parameter of some application programs or system in the operating system of terminal device, application program or The process of system can be by configuration parameter storage into the corresponding Installed System Memory region of process, specifically, can be with memory file Form storage configuration parameter, region of memory and memory file are corresponding.
At present, when carrying out configuration parameter storage, each process generally is arrived into the corresponding configuration parameter storage of each process In each self-corresponding Installed System Memory region.However, each region of memory of Installed System Memory is independent mutually, at a memory field The numerical value of configuration parameter is changed on domain, the numerical value for not interfering with the same configuration parameter on other region of memorys changes, and leads to Aforesaid way storage configuration parameter is crossed, the configuration parameter numerical value for the different process operations of same configuration parameter can be caused different, So as to cause different states of a process asynchronous and various abnormal conditions easily occur.
The content of the invention
In view of this, the present invention provides a kind of configuration parameter storage method and device, and main purpose is to ensure that not With keeping synchronous between process and abnormal conditions can be avoided the occurrence of.
According to first aspect present invention there is provided a kind of configuration parameter storage method, including:
Acquisition needs multiple processes of storage configuration parameter;
According to the corresponding shared mechanism of the multiple process of the multiple process creation;
The configuration parameter stored is needed to store into Installed System Memory the multiple process using the shared mechanism.
According to second aspect of the present invention there is provided a kind of configuration parameter storage device, including:
Acquiring unit, multiple processes of storage configuration parameter are needed for obtaining;
Creating unit, the multiple process of the multiple process creation for being obtained according to the acquiring unit is corresponding Shared mechanism;
Memory cell, the shared mechanism for being created using the creating unit needs the multiple process to store Configuration parameter store into Installed System Memory.
According to third aspect present invention there is provided a kind of computer-readable recording medium, computer program is stored thereon with, The program realizes following steps when being executed by processor:
Acquisition needs multiple processes of storage configuration parameter;
According to the corresponding shared mechanism of the multiple process of the multiple process creation;
The configuration parameter stored is needed to store into Installed System Memory the multiple process using the shared mechanism.
According to fourth aspect present invention there is provided a kind of terminal device, including memory, processor and it is stored in memory Computer program that is upper and can running on a processor, following steps are realized during the computing device described program:
Acquisition needs multiple processes of storage configuration parameter;
According to the corresponding shared mechanism of the multiple process of the multiple process creation;
The configuration parameter stored is needed to store into Installed System Memory the multiple process using the shared mechanism.
The present invention provides a kind of configuration parameter storage method and device, with present depositing the corresponding configuration parameter of each process Store up and compared in each self-corresponding Installed System Memory region of each process, the present invention is by more according to the multiple process creation The corresponding shared mechanism of individual process;And need the configuration parameter storage stored to arrive the multiple process using the shared mechanism In Installed System Memory, it can realize that the configuration parameter of each process is shared, in a process storage or modification configuration parameter numerical value When, the configuration parameter numerical value of other processes can also change therewith, so as to ensure to keep synchronization and energy between different processes Enough avoid the occurrence of various abnormal conditions.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of configuration parameter storage method flow chart provided in an embodiment of the present invention;
Fig. 2 shows another configuration parameter storage method flow chart provided in an embodiment of the present invention;
Fig. 3 shows another configuration parameter storage method flow chart provided in an embodiment of the present invention;
Fig. 4 shows a kind of structural representation of configuration parameter storage device provided in an embodiment of the present invention;
Fig. 5 shows the structural representation of another configuration parameter storage device provided in an embodiment of the present invention;
Fig. 6 shows a kind of structural representation of terminal device provided in an embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Those skilled in the art of the present technique be appreciated that " terminal " used herein above, " terminal device ", " mobile terminal " both Equipment including wireless signal receiver, it only possesses the equipment of the wireless signal receiver of non-emissive ability, includes receiving again With the equipment of transmitting hardware, it, which has, on bidirectional communication link, can perform the reception of two-way communication and setting for transmitting hardware It is standby.This equipment can include:Honeycomb or other communication equipments, it has single line display or multi-line display or not had The honeycomb of multi-line display or other communication equipments;PCS (Personal Communications Service, personal communication System), it can be with combine voice, data processing, fax and/or its communication ability;PDA(Personal Digital Assistant, personal digital assistant), it can be accessed including radio frequency receiver, pager, the Internet/intranet, network is clear Look at device, notepad, calendar and/or GPS (Global Positioning System, global positioning system) receiver;Conventional knee Mo(u)ld top half and/or palmtop computer or other equipment, it has and/or conventional laptop and/or the palm including radio frequency receiver Laptop computer or other equipment." terminal " used herein above, " terminal device " can be portable, can transport, be arranged on In the vehicles (aviation, sea-freight and/or land), or it is suitable for and/or is configured in local runtime, and/or to be distributed Form, operates in any other position operation in the earth and/or space." terminal " used herein above, " terminal device " may be used also To be communication terminal, access terminals, music/video playback terminal, for example, can be PDA, MID (Mobile Internet Device, mobile internet device) and/or mobile phone or intelligent television with music/video playing function, The equipment such as set top box.
At present, in order to ensure the normal operation of terminal device, some can be stored in the operating system of terminal device should With the configuration parameter of program or system.The system memory interface of terminal device can support the corresponding configuration parameter of each process Store in each self-corresponding Installed System Memory region of each process, but for the configuration ginseng of the different process operations of same configuration parameter Number numerical value are different, it is impossible to ensure to keep asynchronous between different processes and various abnormal conditions easily occur, therefore propose a kind of New configuration parameter storage method solves the above problems turns into technical problem urgently to be resolved hurrily.
The embodiments of the invention provide a kind of configuration parameter storage method, as shown in figure 1, methods described includes:
101st, obtaining needs multiple processes of storage configuration parameter.
Wherein, the multiple process can be different application process, can also same application it is multiple enter Journey, the embodiment of the present invention is not limited.For example, process can be clock process, localization, wireless network process etc..
102nd, according to the corresponding shared mechanism of the multiple processes of multiple process creations.
Wherein, the shared mechanism can be to store the configuration parameter that multiple processes need to store by shared region.It is described Shared region can be the corresponding Installed System Memory region of host process chosen from multiple processes, or in multiple processes at first The process of establishment opens up the shared region of establishment in Installed System Memory shared region, and the embodiment of the present invention is not limited.
103rd, the configuration parameter storage stored is needed to arrive system multiple processes using the corresponding shared mechanism of multiple processes In internal memory.
It should be noted that configuration parameter can be stored in Installed System Memory with document form, and specifically, Ke Yitong Cross extensible markup language (Extentsible Markup Language, XML) file storage configuration parameter.For the present invention Embodiment, the corresponding configuration parameter of multiple processes is stored by shared mechanism, can realize that the configuration parameter of each process is shared, In a process storage or modification configuration parameter numerical value, the configuration parameter numerical value of other processes can also change therewith, for example, Process 1 store configuration parameter be configuration parameter A and A=1, process 2 store configuration parameter be configuration parameter A and A=2, then By shared mechanism, the corresponding configuration parameter A of process 1 changes into A=2 therewith, in process 1 or process 2 to configuration parameter A When being read, the numerical value for reading configuration parameter A is 2, so as to keep synchronization between ensure that different processes and keep away The various abnormal conditions of appearance are exempted from.
A kind of configuration parameter storage method provided in an embodiment of the present invention, and at present by the corresponding configuration parameter of each process Store and compared in each self-corresponding Installed System Memory region of each process, the embodiment of the present invention according to the multiple process by creating Build the corresponding shared mechanism of the multiple process;And need the configuration stored to join the multiple process using the shared mechanism Number storage can realize that the configuration parameter of each process is shared into Installed System Memory, in a process storage or modification configuration During parameter values, the configuration parameter numerical value of other processes can also change therewith, so as to ensure to keep same between different processes Walk and various abnormal conditions can be avoided the occurrence of.
The embodiments of the invention provide another configuration parameter storage method, as shown in Fig. 2 methods described includes:
201st, obtaining needs multiple processes of storage configuration parameter.
202nd, a process is selected to be used as host process from multiple processes.
It should be noted that can an optional process is as host process from multiple processes, then by other processes It is used as secondary process.
For the embodiment of the present invention, in order to ensure that configuration parameter can store Installed System Memory exactly, step 202 is specific Can be:A Resident Process is selected from the multiple process, and the Resident Process of selection is defined as host process.Wherein, The Resident Process can be the process resided in Installed System Memory, in order to ensure the normal operation of system and be user service, often It will not be killed in process.For example, in an operating system in order to realize screen locking function, receiving the seeding of screen locking needs to reside In Installed System Memory.In another example, some instant messaging class application programs, in order to safeguard one long link in system background, are also needed Corresponding process is resided in Installed System Memory.
203rd, the corresponding Installed System Memory region of host process is defined as the corresponding shared region of multiple processes.
204th, the first configuration parameter is transferred to host process.
Wherein, first configuration parameter is the configuration parameter that other host processes need to store.
For the embodiment of the present invention, in order to ensure it is reliable and secure transmit the first configuration parameter, 204 step specifically may be used Think:The first configuration parameter is transferred to the host process by default inter-process communication mechanisms.The default interprocess communication Mechanism can be binder mechanism, and binder belongs to a driving, operates in kernel state.Binder mechanism supports readjustment, can Ensure that other processes know the transmission situation of first configuration parameter in time.
205th, the first configuration parameter and the second configuration parameter are stored into shared region by host process.
Wherein, second configuration parameter is the configuration parameter that the host process needs to store.
For the embodiment of the present invention, can also by host process using predetermined system memory interface by the first configuration parameter and Second configuration parameter is stored into shared region.Wherein, predetermined system memory interface can connect for SharedPreferences storages Mouthful, SharedPreferences memory interfaces are a kind of very light memory interface, by creating shared region, can be realized The predetermined system memory interface supports multi-process to share storage configuration parameter.
Another configuration parameter storage method provided in an embodiment of the present invention, with present joining corresponding configure of each process Number storage is compared into each self-corresponding Installed System Memory region of each process, and the embodiment of the present invention passes through according to the multiple process Create the corresponding shared mechanism of the multiple process;And the configuration for needing to store by the multiple process using the shared mechanism Parameter is stored into Installed System Memory, can realize that the configuration parameter of each process is shared, and is matched somebody with somebody in a process storage or modification When putting parameter values, the configuration parameter numerical value of other processes can also change therewith, so as to ensure holding between different processes It is synchronous and various abnormal conditions can be avoided the occurrence of.Further, by by the corresponding Installed System Memory region of the host process It is defined as the corresponding shared region of the multiple process, can realizes and be responsible for storage or reading by host process is unified, so as to ensure The process of configuration parameter storage is relatively simple, lifts configuration parameter storage efficiency.
The embodiments of the invention provide another configuration parameter storage method, as shown in figure 3, methods described includes:
301st, obtaining needs multiple processes of storage configuration parameter.
302nd, the process created at first in multiple processes is determined.
For the embodiment of the present invention, the process created at first can be determined according to the process creation time.It is multiple by determining The process created at first in process, can realize that the progress for first creating operation first creates shared region.
303rd, the corresponding shared region of multiple processes is created in Installed System Memory shared region by the process created at first.
For the embodiment of the present invention, in order to lift configuration parameter storage efficiency, the step 303 can specifically include:It is logical Cross the process created at first and default bottom share realization mechanism created in Installed System Memory shared region it is the multiple enter The corresponding shared region of journey.The default bottom shares the mmap mechanism that realization mechanism can be the operating system bottom, described Mmap mechanism can be realized Installed System Memory File Mapping to virtual memory, be that can realize configuration ginseng without kernel transfer is carried out Several storages.
304th, the 3rd configuration parameter is stored in shared region by the process created at first, and will by other processes 4th configuration parameter is stored in shared region.
Wherein, the configuration parameter that the 3rd configuration parameter needs to store for the process created at first, the described 4th Configuration parameter is the configuration parameter that other described processes need to store.
, can also be using predetermined system memory interface and by the process that creates at first by the 3rd for the embodiment of the present invention Configuration parameter is stored in the shared region, and the 4th configuration parameter is stored in the shared region by other processes. Wherein, predetermined system memory interface can be SharedPreferences memory interfaces, and SharedPreferences storages connect Mouthful for a kind of very light memory interface, by creating shared region, it can realize that the predetermined system memory interface is supported many Process shares storage configuration parameter.
For the embodiment of the present invention, in order to avoid creating many parts of shared regions in Installed System Memory, in the configuration parameter of storage When data volume is larger, lifting configuration parameter storage speed and efficiency additionally provide informing function, including:By presetting process Communication mechanism stores the announcement information completed to each process send configuration parameter.The default Interprocess Communication Mechanism can be Socket mechanism, the socket mechanism can one process of unique mark, ensure that by socket mechanism so that other Process accurately determines the process for creating shared region.For example, when process 1 needs storage configuration parameter, detecting system internal memory first In shared region is not present, then carry out the establishment of shared region, and the storage configuration parameter in shared region, when process 2 needs storage to match somebody with somebody When putting parameter, there is shared region in detecting system internal memory, then direct storage configuration parameter, and notify other processes it has been stored Configuration parameter, the like.
Another configuration parameter storage method provided in an embodiment of the present invention, with present joining corresponding configure of each process Number storage is compared into each self-corresponding Installed System Memory region of each process, and the embodiment of the present invention passes through according to the multiple process Create the corresponding shared mechanism of the multiple process;And the configuration for needing to store by the multiple process using the shared mechanism Parameter is stored into Installed System Memory, can realize that the configuration parameter of each process is shared, and is matched somebody with somebody in a process storage or modification When putting parameter values, the configuration parameter numerical value of other processes can also change therewith, so as to ensure holding between different processes It is synchronous and various abnormal conditions can be avoided the occurrence of.Further, it is common in Installed System Memory by the process created at first Enjoy and the corresponding shared region of the multiple process is created in region, the direct storage configuration parameter of multiple processes can be realized and direct Region of memory is operated, the accuracy of configuration parameter storage is ensure that.And by presetting Interprocess Communication Mechanism to each process The announcement information that the storage of send configuration parameter is completed, can avoid creating many parts of shared regions in Installed System Memory, in matching somebody with somebody for storage Put supplemental characteristic amount it is larger when, lifting configuration parameter storage speed and efficiency.
Further, implementing as Fig. 1, the embodiments of the invention provide a kind of configuration parameter storage device, such as Shown in Fig. 4, described device includes:Acquiring unit 41, creating unit 42 and memory cell 43.
The acquiring unit 41, can be used for obtaining the multiple processes for needing storage configuration parameter.
The creating unit 42, can be used for many according to the multiple process creation of the acquiring unit 41 acquisition The corresponding shared mechanism of individual process.
The memory cell 43, can be used for will be the multiple using the shared mechanism that the creating unit 42 is created Process needs the configuration parameter stored to store into Installed System Memory.
It should be noted that each functional module involved by a kind of configuration parameter storage device provided in an embodiment of the present invention Other are accordingly described, and be may be referred to the correspondence description of method shown in Fig. 1, be will not be repeated here.
A kind of configuration parameter storage device provided in an embodiment of the present invention, described device can configure acquiring unit, establishment Unit and memory cell.With the storage of each process corresponding configuration parameter is arrived into each self-corresponding Installed System Memory of each process at present Compared in region, the embodiment of the present invention passes through according to the corresponding shared mechanism of the multiple process of the multiple process creation;And Need the configuration parameter stored to store into Installed System Memory the multiple process using the shared mechanism, each can be realized The configuration parameter of process is shared, in a process storage or modification configuration parameter numerical value, the configuration parameter number of other processes Value can also change therewith, so as to ensure to keep synchronous between different processes and can avoid the occurrence of various abnormal conditions.
Further, implementing as Fig. 2 and Fig. 3, the embodiments of the invention provide the storage of another configuration parameter Device, as shown in figure 5, described device includes:Acquiring unit 51, creating unit 52 and memory cell 53.
The acquiring unit 51, can be used for obtaining the multiple processes for needing storage configuration parameter.
The creating unit 52, can be used for many according to the multiple process creation of the acquiring unit 51 acquisition The corresponding shared mechanism of individual process.
The memory cell 53, can be used for will be the multiple using the shared mechanism that the creating unit 52 is created Process needs the configuration parameter stored to store into Installed System Memory.
The selecting module 521, can be used for selecting a process from the multiple process as host process.
First determining module 522, it is the multiple for the corresponding Installed System Memory region of the host process to be defined as The corresponding shared region of process.
For the embodiment of the present invention, the memory cell 53 includes:Transport module 531 and memory module 532.
The transport module 531, can be used for the first configuration parameter being transferred to the host process, the first configuration ginseng The configuration parameter that number needs to store for other host processes.
The memory module 532, can be used for joining first configuration parameter and the second configuration by the host process Number storage is into the shared region, and second configuration parameter is the configuration parameter that the host process needs to store.
For the embodiment of the present invention, the creating unit 52 includes:Second determining module 523 and creation module 524.
Second determining module 523, is determined for the process created at first in the multiple process.
The creation module 524, can be used for creating in Installed System Memory shared region by the process created at first Build the corresponding shared region of the multiple process.
The memory cell 53, it is described specifically for being stored in the 3rd configuration parameter by the process created at first In shared region, and by other processes the 4th configuration parameter is stored in the shared region, the 3rd configuration parameter is The process created at first needs the configuration parameter stored, and the 4th configuration parameter is that other described processes need what is stored Configuration parameter.
The creating unit 52, specifically can be used for will be described more using the shared mechanism and predetermined system memory interface Individual process needs the configuration parameter stored to store into Installed System Memory.Predetermined system memory interface can be SharedPreferences memory interfaces.
The selecting module 521, specifically can be used for selecting a Resident Process from the multiple process, and will choose Resident Process be defined as host process.Wherein, the Resident Process can be the process resided in Installed System Memory, in order to ensure System is normally run and is user service, and Resident Process will not be killed.
The transport module 531, specifically can be used for transmitting the first configuration parameter by default inter-process communication mechanisms To the host process.The default inter-process communication mechanisms can be binder mechanism, and ensure that by binder mechanism can By safely transmitting the first configuration parameter.
The creation module 524, specifically can be used for realizing by the way that the process created at first and default bottom are shared Mechanism creates the corresponding shared region of the multiple process in Installed System Memory shared region.The default bottom shares realization mechanism Can be the mmap mechanism of the operating system bottom.
For the embodiment of the present invention, in order to avoid creating many parts of shared regions in Installed System Memory, in the configuration parameter of storage When data volume is larger, lifting configuration parameter storage speed and efficiency, described device also include:Transmitting element 54.
The transmitting element 54, can be used for storing to each process send configuration parameter by default Interprocess Communication Mechanism The announcement information of completion.The default Interprocess Communication Mechanism can be socket mechanism.Predetermined system memory interface can be SharedPreferences memory interfaces
It should be noted that each functional module involved by another configuration parameter storage device provided in an embodiment of the present invention Other corresponding correspondence descriptions for describing, may be referred to method shown in Fig. 2 and Fig. 3, will not be repeated here.
Another configuration parameter storage device provided in an embodiment of the present invention, described device can configure acquiring unit, wound Unit and memory cell are built, and at present by each process corresponding configuration parameter storage to each self-corresponding system of each process Deposit in region and compare, the embodiment of the present invention passes through according to the corresponding shared mechanism of the multiple process of the multiple process creation; And need the configuration parameter stored to store into Installed System Memory the multiple process using the shared mechanism, it can realize each The configuration parameter of individual process is shared, in a process storage or modification configuration parameter numerical value, the configuration parameter of other processes Numerical value can also change therewith, so as to ensure to keep synchronous between different processes and can avoid the occurrence of various abnormal feelings Condition.Further, by the way that the corresponding Installed System Memory region of the host process is defined as into the corresponding shared region of the multiple process, It can realize and be responsible for storage or reading by host process is unified, so that ensure that the process of configuration parameter storage is relatively simple, lifting Configuration parameter storage efficiency.In addition, creating the multiple in Installed System Memory shared region by the process created at first The corresponding shared region of process, can realize the direct storage configuration parameter of multiple processes and directly operate region of memory, Neng Goubao Demonstrate,prove the accuracy of configuration parameter storage.And stored and completed to each process send configuration parameter by default Interprocess Communication Mechanism Announcement information, can avoid creating many parts of shared regions in Installed System Memory, when the configuration parameter data amount of storage is larger, carry Rise configuration parameter storage speed and efficiency.
In order to realize that the configuration parameter of each above-mentioned process is shared, in a process storage or modification configuration parameter numerical value When, the configuration parameter numerical value of other processes can also change therewith, so as to ensure to keep synchronization and energy between different processes The purpose of various abnormal conditions is enough avoided the occurrence of, the embodiments of the invention provide another computer-readable recording medium, thereon Be stored with computer program, and the program realizes following steps when being executed by processor:Acquisition needs the multiple of storage configuration parameter Process;According to the corresponding shared mechanism of the multiple process of the multiple process creation;Will be described many using the shared mechanism Individual process needs the configuration parameter stored to store into Installed System Memory.
In order to realize that the configuration parameter of each above-mentioned process is shared, in a process storage or modification configuration parameter numerical value When, the configuration parameter numerical value of other processes can also change therewith, so as to ensure to keep synchronization and energy between different processes The purpose of various abnormal conditions is enough avoided the occurrence of, can be with as shown in fig. 6, bag the embodiments of the invention provide a kind of terminal device Include memory 61, processor 62 and be stored in the computer program that can be run on memory 61 and on the processor 62, the place Reason device realizes following steps when performing described program:Acquisition needs multiple processes of storage configuration parameter;According to it is the multiple enter Journey creates the corresponding shared mechanism of the multiple process;The configuration for needing to store by the multiple process using the shared mechanism Parameter is stored into Installed System Memory.
The embodiment of the present invention also provides following technical scheme:
A1, a kind of configuration parameter storage method, including:
Acquisition needs multiple processes of storage configuration parameter;
According to the corresponding shared mechanism of the multiple process of the multiple process creation;
The configuration parameter stored is needed to store into Installed System Memory the multiple process using the shared mechanism.
A2, the method as described in A1, the shared mechanism are to store the configuration that multiple processes need to store by shared region Parameter, it is described to be included according to the corresponding shared mechanism of the multiple process of the multiple process creation:
A process is selected to be used as host process from the multiple process;
The corresponding Installed System Memory region of the host process is defined as the corresponding shared region of the multiple process;
It is described to need the configuration parameter stored to store into Installed System Memory the multiple process using the shared mechanism Including:
First configuration parameter is transferred to the host process, first configuration parameter is that other host processes need what is stored Configuration parameter;
First configuration parameter and the second configuration parameter are stored into the shared region by the host process, it is described Second configuration parameter is the configuration parameter that the host process needs to store.
A3, the method as described in A1 or A2, it is described to determine that the multiple process is corresponding shared according to the multiple process Mechanism includes:
Determine the process created at first in the multiple process;
The multiple process is created in Installed System Memory shared region by the process created at first corresponding shared Area;
It is described to be included the corresponding configuration parameter storage of the multiple process to Installed System Memory using the shared mechanism:
The 3rd configuration parameter is stored in the shared region by the process created at first, and entered by other 4th configuration parameter is stored in the shared region by journey, and the 3rd configuration parameter needs to deposit for the process created at first The configuration parameter of storage, the 4th configuration parameter is the configuration parameter that other described processes need to store.
A4, the method as described in A1, it is described to need the configuration stored to join the multiple process using the shared mechanism Number storage includes to Installed System Memory:
The configuration parameter stored is needed to deposit the multiple process using the shared mechanism and predetermined system memory interface Store up in Installed System Memory.
A5, the method as described in A2, it is described to select a process to include as host process from the multiple process:
A Resident Process is selected from the multiple process, and the Resident Process of selection is defined as host process.
A6, the method as described in A2, it is described second configuration parameter is transferred to the host process to include:
The first configuration parameter is transferred to the host process by default inter-process communication mechanisms.
A7, the method as described in A3, it is described to be created by the process created at first in Installed System Memory shared region The corresponding shared region of the multiple process includes:
Realization mechanism is shared by the process created at first and default bottom to create in Installed System Memory shared region The corresponding shared region of the multiple process.
A8, the method as described in A3, it is described that the 4th configuration parameter is stored in it in the shared region by other processes Afterwards, methods described also includes:
The announcement information of completion is stored to each process send configuration parameter by presetting Interprocess Communication Mechanism.
B9, a kind of configuration parameter storage device, including:
Acquiring unit, multiple processes of storage configuration parameter are needed for obtaining;
Creating unit, the multiple process of the multiple process creation for being obtained according to the acquiring unit is corresponding Shared mechanism;
Memory cell, the shared mechanism for being created using the creating unit needs the multiple process to store Configuration parameter store into Installed System Memory.
B10, the device as described in B9, the creating unit include:
Selecting module, for selecting a process to be used as host process from the multiple process;
First determining module, for the corresponding Installed System Memory region of the host process to be defined as into the multiple process correspondence Shared region;
The memory cell includes:
Transport module, for the first configuration parameter to be transferred into the host process, first configuration parameter is led for other Process needs the configuration parameter stored;
Memory module, for first configuration parameter and the storage of the second configuration parameter to be arrived into described by the host process In shared region, second configuration parameter is the configuration parameter that the host process needs to store.
B11, the device as described in B9 or B10, the shared mechanism are to store multiple processes by shared region to need storage Configuration parameter, the creating unit includes:
Second determining module, for the process for determining to create at first in the multiple process;
Creation module, for by the process created at first created in Installed System Memory shared region it is the multiple enter The corresponding shared region of journey;
The memory cell, it is described common specifically for being stored in the 3rd configuration parameter by the process created at first Enjoy in area, and the 4th configuration parameter is stored in the shared region by other processes, the 3rd configuration parameter is institute The configuration parameter that the process created at first needs to store is stated, the 4th configuration parameter is that other described processes need what is stored to match somebody with somebody Put parameter.
B12, the device as described in B9,
The creating unit, specifically for utilizing the shared mechanism and predetermined system memory interface by the multiple process The configuration parameter of storage is needed to store into Installed System Memory.
B13, the device as described in B10,
The selecting module, specifically for selecting a Resident Process, and residing selection from the multiple process Process is defined as host process.
B14, the device as described in B10,
The transport module, specifically for the first configuration parameter is transferred into the master by default inter-process communication mechanisms Process.
B15, the device as described in B11,
The creation module, be specifically for sharing realization mechanism by the process created at first and default bottom System memory sharing creates the corresponding shared region of the multiple process in region.
B16, the device as described in B11, described device also include:
Transmitting element, the notice for storing completion to each process send configuration parameter by presetting Interprocess Communication Mechanism Information.
C17, a kind of computer-readable recording medium, are stored thereon with computer program, when the program is executed by processor Realize following steps:
Acquisition needs multiple processes of storage configuration parameter;
According to the corresponding shared mechanism of the multiple process of the multiple process creation;
The configuration parameter stored is needed to store into Installed System Memory the multiple process using the shared mechanism.
D18, a kind of terminal device, including memory, processor and storing can be run on a memory and on a processor Computer program, realize following steps during the computing device described program:
Acquisition needs multiple processes of storage configuration parameter;
According to the corresponding shared mechanism of the multiple process of the multiple process creation;
The configuration parameter stored is needed to store into Installed System Memory the multiple process using the shared mechanism.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be to be used to distinguish each embodiment, and do not represent the quality of each embodiment.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself All as the separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention Within the scope of and form different embodiments.For example, in the following claims, times of embodiment claimed One of meaning mode can be used in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) realize configuration parameter storage device according to embodiments of the present invention and system In some or all parts some or all functions.The present invention is also implemented as described herein for performing The some or all equipment or program of device (for example, computer program and computer program product) of method.So Realization the present invention program can store on a computer-readable medium, or can have one or more signal shape Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal Formula is provided.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (10)

1. a kind of configuration parameter storage method, it is characterised in that including:
Acquisition needs multiple processes of storage configuration parameter;
According to the corresponding shared mechanism of the multiple process of the multiple process creation;
The configuration parameter stored is needed to store into Installed System Memory the multiple process using the shared mechanism.
2. according to the method described in claim 1, it is characterised in that the shared mechanism is to store multiple processes by shared region The configuration parameter of storage is needed, it is described to be included according to the corresponding shared mechanism of the multiple process of the multiple process creation:
A process is selected to be used as host process from the multiple process;
The corresponding Installed System Memory region of the host process is defined as the corresponding shared region of the multiple process;
It is described to need the configuration parameter stored storage to include to Installed System Memory the multiple process using the shared mechanism:
First configuration parameter is transferred to the host process, first configuration parameter is the configuration that other host processes need to store Parameter;
First configuration parameter and the second configuration parameter are stored into the shared region by the host process, described second Configuration parameter is the configuration parameter that the host process needs to store.
3. method according to claim 1 or 2, it is characterised in that it is described determined according to the multiple process it is the multiple The corresponding shared mechanism of process includes:
Determine the process created at first in the multiple process;
The corresponding shared region of the multiple process is created in Installed System Memory shared region by the process created at first;
It is described to be included the corresponding configuration parameter storage of the multiple process to Installed System Memory using the shared mechanism:
The 3rd configuration parameter is stored in the shared region by the process created at first, and will by other processes 4th configuration parameter is stored in the shared region, and the 3rd configuration parameter needs what is stored for the process created at first Configuration parameter, the 4th configuration parameter is the configuration parameter that other described processes need to store.
4. according to the method described in claim 1, it is characterised in that described to be needed the multiple process using the shared mechanism The configuration parameter to be stored storage includes to Installed System Memory:
The configuration parameter storage stored is needed to arrive the multiple process using the shared mechanism and predetermined system memory interface In Installed System Memory.
5. a kind of configuration parameter storage device, it is characterised in that including:
Acquiring unit, multiple processes of storage configuration parameter are needed for obtaining;
Creating unit, the multiple process of the multiple process creation for being obtained according to the acquiring unit is corresponding shared Mechanism;
Memory cell, for the shared mechanism the matching somebody with somebody the needs storage of the multiple process created using the creating unit Parameter storage is put into Installed System Memory.
6. device according to claim 5, it is characterised in that the creating unit includes:
Selecting module, for selecting a process to be used as host process from the multiple process;
First determining module, it is corresponding common for the corresponding Installed System Memory region of the host process to be defined as into the multiple process Enjoy area;
The memory cell includes:
Transport module, for the first configuration parameter to be transferred into the host process, first configuration parameter is other host processes Need the configuration parameter of storage;
Memory module, for being shared first configuration parameter and the storage of the second configuration parameter to described by the host process Qu Zhong, second configuration parameter is the configuration parameter that the host process needs to store.
7. the device according to claim 5 or 6, it is characterised in that the shared mechanism is to store multiple by shared region Process needs the configuration parameter stored, and the creating unit includes:
Second determining module, for the process for determining to create at first in the multiple process;
Creation module, for creating the multiple process pair in Installed System Memory shared region by the process created at first The shared region answered;
The memory cell, specifically for the 3rd configuration parameter is stored in into the shared region by the process created at first In, and by other processes the 4th configuration parameter is stored in the shared region, the 3rd configuration parameter for it is described most The process first created needs the configuration parameter stored, and the 4th configuration parameter is the configuration ginseng that other described processes need to store Number.
8. device according to claim 5, it is characterised in that
The creating unit, specifically for being needed the multiple process using the shared mechanism and predetermined system memory interface The configuration parameter of storage is stored into Installed System Memory.
9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor Following steps are realized during row:
Acquisition needs multiple processes of storage configuration parameter;
According to the corresponding shared mechanism of the multiple process of the multiple process creation;
The configuration parameter stored is needed to store into Installed System Memory the multiple process using the shared mechanism.
10. a kind of terminal device, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that realize following steps during the computing device described program:
Acquisition needs multiple processes of storage configuration parameter;
According to the corresponding shared mechanism of the multiple process of the multiple process creation;
The configuration parameter stored is needed to store into Installed System Memory the multiple process using the shared mechanism.
CN201710438848.6A 2017-06-12 2017-06-12 Configuration parameter storage method and device Pending CN107247578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710438848.6A CN107247578A (en) 2017-06-12 2017-06-12 Configuration parameter storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710438848.6A CN107247578A (en) 2017-06-12 2017-06-12 Configuration parameter storage method and device

Publications (1)

Publication Number Publication Date
CN107247578A true CN107247578A (en) 2017-10-13

Family

ID=60018055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710438848.6A Pending CN107247578A (en) 2017-06-12 2017-06-12 Configuration parameter storage method and device

Country Status (1)

Country Link
CN (1) CN107247578A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI783034B (en) * 2017-11-06 2022-11-11 香港商阿里巴巴集團服務有限公司 System and method for implementing drive

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320515A (en) * 2014-07-31 2016-02-10 腾讯科技(深圳)有限公司 Configuration method, device and system in flow computing system
CN105446841A (en) * 2015-11-24 2016-03-30 无锡江南计算技术研究所 Cache consistency test method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320515A (en) * 2014-07-31 2016-02-10 腾讯科技(深圳)有限公司 Configuration method, device and system in flow computing system
CN105446841A (en) * 2015-11-24 2016-03-30 无锡江南计算技术研究所 Cache consistency test method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI783034B (en) * 2017-11-06 2022-11-11 香港商阿里巴巴集團服務有限公司 System and method for implementing drive

Similar Documents

Publication Publication Date Title
US11599663B2 (en) Computer-implemented methods, systems comprising computer-readable media, and electronic devices for completing queries propagated across a plurality of datasources
US8214409B2 (en) Adapter architecture for mobile data system
AU2005246392B2 (en) Occasionally-connected application server
US8560713B2 (en) Method and system for mediating enterprise service access for smart devices
CN102223736B (en) The server communicated is carried out with using the multi-mode equipment of multi-mode application
US20040224675A1 (en) Collaborative data and intelligent synchronization for mobile devices
US8732652B2 (en) System and method for creating multi-mode applications
US20060235928A1 (en) System and method for creating a mapping document for binding messages between an application and an associated backend server
CN105550003A (en) Application updating system and method
US8707329B2 (en) Open framework system for heterogeneous computing and service integration
CN104102489A (en) Third-party database APP (Application) construction system and construction method
CN100495983C (en) Digital household information management system
CN104408086A (en) System and method for overall processing of data
CN107247578A (en) Configuration parameter storage method and device
US20140019515A1 (en) Adaptive business logic configurator
EP2003843B1 (en) Device for communicating in multiple modes using multi-mode applications
CN104133678A (en) Method and device for constructing and operating interactive seismic interpretation system
US8843440B2 (en) Synchronizing database projects with partner projects
CN101414260B (en) System and method for creating multi-mode applications
US9425988B2 (en) Device for communicating in multiple modes using multi-mode applications
CN109614089A (en) Automatic generation method, device, equipment and the storage medium of data access code
CN102438021A (en) Processing method and device for telecommunications service development
Soldatos et al. The Internet-of-Things Open Source Ecosystem in 2021
CN113743807B (en) Scheduling information generation method, device, electronic equipment and computer readable medium
WO2024010567A1 (en) Method and apparatus for management and validation of data

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171013