CN107844385A - A kind of variable read-write method and device based on shared drive - Google Patents
A kind of variable read-write method and device based on shared drive Download PDFInfo
- Publication number
- CN107844385A CN107844385A CN201711091744.9A CN201711091744A CN107844385A CN 107844385 A CN107844385 A CN 107844385A CN 201711091744 A CN201711091744 A CN 201711091744A CN 107844385 A CN107844385 A CN 107844385A
- Authority
- CN
- China
- Prior art keywords
- variable
- information
- configuration information
- read
- shared drive
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1008—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
- G06F11/1048—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using arrangements adapted for a specific error detection or correction feature
- G06F11/1056—Updating check bits on partial write, i.e. read/modify/write
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present invention provides a kind of variable read-write method and device based on shared drive.Wherein, method includes:The configuration information and checking information of variable are read from shared drive;Judge whether the configuration information is correct according to the checking information;If incorrect, to agent unit send read requests, and the agent unit response after, read again from the shared drive variable configuration information and checking information up to reading correct configuration information.The embodiment of the present invention can improve process from the reading accuracy in shared drive.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of variable read-write method and dress based on shared drive
Put.
Background technology
Because the multiple processes run in an equipment are likely to access identical variable, therefore, in the prior art, in order to
Avoid data from carrying out copies back from memory headroom to user's space, the configuration information of variable is write into shared drive, so
Multiple processes in the equipment can read the configuration information of variable from the shared drive.
But multi-process is when the configuration information of variable in shared drive is read and write back and forth, it is easy to reads
The situation of mistake, such as:When process A reads variables A from shared drive and reads half, variables A is by process B to renewal
, it is wrong data that this, which inevitably results in the variables A that process A is read, and then has influence on the follow-up operation of process.
The content of the invention
The invention provides a kind of variable read-write method and device based on shared drive, it is therefore intended that improves process from altogether
Enjoy the reading accuracy in internal memory.
In order to solve the above-mentioned technical problem, the present invention provides a kind of variable read-write method based on shared drive, including:From
The configuration information and checking information of variable are read in shared drive;Judge the configuration information whether just according to the checking information
Really;If incorrect, read requests are sent to agent unit, and after agent unit response, again from described shared interior
The middle configuration information for reading the variable and checking information are deposited until reading correct configuration information.
Alternatively, the above method, in addition to:Receive the update notification for the variable that far-end server is sent;According to institute
State update notification and send renewal request to the agent unit;After agent unit response, update in the shared drive
The configuration information of the variable.
Alternatively, the above method, in addition to:Update described in the shared drive after the configuration information of variable, update institute
State the checking information of variable.
Alternatively, the above method, in addition to:, will after the agent unit receives the read requests or renewal request
The read requests or the renewal request are input in message queue, and according to read requests described in ordinal response or the institute of joining the team
State renewal request.
Alternatively, the checking information is first circulation redundancy check code;And according to judging the checking information
Whether configuration information is correct, including:According to the configuration information read, second circulation redundancy check code is determined;Compare institute
State first circulation redundancy check code and the second circulation redundancy check code;If the first circulation redundancy check code and described the
Two CRCs are identical, then it is correct configuration information to judge the configuration information.
Alternatively, the above method, in addition to:Access request in response to process to the variable, is obtained in the process
The fourth edition information of variable described in this information of the third edition of the variable and the shared drive;Compare the third edition
This information and the fourth edition information;If described this information of the third edition is different from the fourth edition information, from described common
Enjoy and configuration information and checking information corresponding to the variable are read in internal memory.
In order to solve the above-mentioned technical problem, present invention also offers a kind of variable read-write device based on shared drive.Should
Device, including:First read module, for reading the configuration information and checking information of variable from shared drive;Judge module,
For judging whether the configuration information is correct according to the checking information;Second read module, if for incorrect, to generation
Manage unit and send read requests, and after agent unit response, read the variable from the shared drive again
Configuration information and checking information are until read correct configuration information.
In technical scheme provided in an embodiment of the present invention, it can determine whether out reading according to the checking information of the variable read
Whether the variable is updated by other processes during taking, and explanation reads correct if not being updated;If being updated, illustrate to read
Take incorrect, then send read requests to agent unit, the configuration information and checking information of the variable are re-read with request
Until reading correct configuration information.It can be seen that the present invention can improve process from the reading accuracy in shared drive.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art on the premise of not paying creative work, can be with root
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet for the variable read-write method based on shared drive that one embodiment of the invention provides;
Fig. 2 is the schematic flow sheet for the variable read-write method based on shared drive that further embodiment of this invention provides;
Fig. 3 is the structured flowchart for the variable read-write device based on shared drive that one embodiment of the invention provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is only merely for the purpose of description specific embodiment, and is not intended to be limiting
The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims
It is also intended to including most forms, unless context clearly shows that other implications, " a variety of " generally comprise at least two, but not
Exclusion includes at least one situation.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent
There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while A and B be present, individualism B these three
Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
It will be appreciated that though XXX may be described using term first, second, third, etc. in embodiments of the present invention, but
These XXX should not necessarily be limited by these terms.These terms are only used for XXX being distinguished from each other out.For example, implementation of the present invention is not being departed from
In the case of example scope, the first XXX can also be referred to as the 2nd XXX, and similarly, the 2nd XXX can also be referred to as the first XXX.
Depending on linguistic context, word as used in this " if ", " if " can be construed to " ... when " or
" when ... " or " in response to determining " or " in response to monitoring ".Similarly, depending on linguistic context, phrase " if it is determined that " or " such as
Fruit monitors (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when monitoring (statement
Condition or event) when " or " in response to monitor (condition or event of statement) ".
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising, so that commodity or system including a series of elements not only include those key elements, but also including without clear and definite
The other element listed, or also include for this commodity or the intrinsic key element of system.In the feelings not limited more
Under condition, the key element that is limited by sentence "including a ...", it is not excluded that in the commodity including the key element or system also
Other identical element be present.
Fig. 1 is the schematic flow sheet for the variable read-write method based on shared drive that one embodiment of the invention provides.The party
Method includes:
101st, the configuration information and checking information of variable are read from shared drive.
102nd, judge whether the configuration information is correct according to the checking information.
If the 103, incorrect, read requests are sent to agent unit, and after agent unit response, again from institute
The configuration information that the variable is read in shared drive and checking information are stated until reading correct configuration information.
In above-mentioned steps 101, the configuration information of variable includes:Variable name and variate-value.The configuration information of variable is stored in
In shared drive, so, multiple processes in equipment can get change corresponding to the variable by variable from shared drive
Value.The configuration information of variable can be Key-Value forms, and what what Key was represented be that variable, Value represent is variable assignments.
Such as:I- databases IP address, the numerical value of j- first, process is during operation, database IP can be got by variable i
Location, and then database corresponding to access;It can get the first numerical value by variable j, and then after being carried out according to first numerical value
Continuous processing.
When the configuration information of variable is stored in shared drive, the corresponding storage one of configuration information of each variable can be directed to
Individual check code and/or version information;Wherein, check code generates for the configuration information according to variable and according to ad hoc rules, and
Updated with the renewal of the configuration information of variable.Version information is used for which time renewal of the configuration information of marking variable, and
Updated with the renewal of the configuration information of variable.Preferably, fixed length hash tables can be used to be managed shared drive, it is fixed
Each single item corresponds to a variable in long hash tables, and include the variable configuration information and its corresponding check code and/or
Version information.
, can be from altogether if the corresponding storage of the configuration information that each variable is directed in shared drive is a check code
The configuration information and check code that variable is read in internal memory are enjoyed, the checking information is the check code;If in shared drive
For each variable configuration information it is corresponding store is version information, then variable can be first read from the shared drive
Version information corresponding to configuration information (is stated, referred to as first version information) for convenience, then reads the configuration information of variable, is read
Version information corresponding to configuration information (being referred to as second edition information), the checking are again read off after taking the configuration information of variable
Information includes first version information and second edition information.
In above-mentioned steps 102, if checking information is check code, according to the configuration information read and according to described specific
Rule generation one refers to check code.Because the check code in shared drive is according to configuration information and according to same ad hoc rules
Generation, therefore, should be consistent with the check code read with reference to check code if configuration information and check code are read correctly.
If that is, consistent with the check code for reading to obtain from shared drive with reference to check code, illustrate to read matches somebody with somebody confidence
Breath is correct;If inconsistent with the check code that is read from shared drive with reference to check code, illustrate the configuration read
Information and/or check code are wrong, are configuration information read error or verification due to that can not determine bottom in this case
Code read error, therefore, the configuration information that can uniformly think to read are wrong.
If checking information is first version information and second edition information, compare first version information and second edition letter
Whether breath is consistent.If in reading process, configuration information is not updated by other processes, and its version information will not also update, therefore
The version information of front and rear reading should be consistent;If in reading process, configuration information is updated by other processes, and its version information also can
This renewal, therefore, the version information of front and rear reading are inconsistent.That is, if both are consistent, illustrate to read correctly;If no
Unanimously, then read error is illustrated.
In a kind of achievable scheme, when the configuration information of variable is stored in shared drive, in matching somebody with somebody for each variable
Increase CRC CRC (Cyclic Redundancy Check) after confidence breath.The CRC check code is according to change
The configuration information of amount and according to ad hoc rules (i.e. coding rule) determine.
The general principle of CRC is:Spelled again after K positions information code (namely configuration information of above-mentioned variable)
The check code of R positions is connect, whole code length is N positions, and therefore, this coding is also (N, K) code.For one given (N, K)
Code, it can prove the multinomial G (x) that a highest power is N-K=R be present.The verification of K positions information can be generated according to G (x)
Code, and G (x) is called the generator polynomial of this CRC code.The specific generating process (namely above-mentioned coding rule) of check code is:
Assuming that configuration information is represented with message polynomial C (X), C (x) is moved to left into R positions, then can be expressed as C (x) × xR, such C (x)
The right will vacate R positions, and here it is the position of check code.Pass through C (x) × xRDivided by the remainder that generator polynomial G (x) is obtained is just
It is check code.
After the configuration information of variable and CRC check code are read from shared drive, the configuration information of variable can be passed through
Whether the configuration information that can judge to read of testing of the coding rule between CRC check code is correct.
Specifically:The checking information is first circulation redundancy check code;And according to judging the checking information
Whether configuration information is correct, including:According to the configuration information read, second circulation redundancy check code is determined;Compare institute
State first circulation redundancy check code and the second circulation redundancy check code;If the first circulation redundancy check code and described the
Two CRCs are identical, then it is correct configuration information to judge the configuration information.
If to the configuration information that reads using the second circulation redundancy check code obtained after the processing of above-mentioned coding rule with
First circulation redundancy check code is consistent, then it is correct for can determine that the configuration information read;It is if inconsistent, it is determined that to read
Configuration information to be wrong.
It should be noted that CRC check code corresponding to the configuration information of variable is after configuration information update in shared drive
It can automatically update.
It is each variable when the configuration information of variable is stored in shared drive in another achievable scheme
Configuration information increases by a version information, and version information updates with the renewal of configuration information.Such as:The configuration information of variable is every
Once, corresponding version information adds 1 for renewal.Now, the configuration information of variable and the step of checking information are read from shared drive
Suddenly include:After first version information corresponding to the variable is read, configuration information corresponding to the variable is read;Reading
After configuration information corresponding to the variable, second edition information corresponding to the variable is again read off;The checking information includes
The first version information and the second edition information.In other words, when variable is read from shared drive, version is first read
Information, then configuration information is read, finally again read off version information.If the version information that front and rear twi-read arrives is consistent, say
It is bright during this reads the configuration information of the variable, the configuration information of the variable is not updated.
In above-mentioned steps 103, an agent unit is set in equipment that can be by operationally stating process.The agent unit root
According to the transmission time order and function ordinal response of reading/renewal request of each process.Predeterminable setting:If process will be in shared drive
The configuration information of variable when being updated, then need to send renewal request to agent unit;If process will be from shared drive
When reading the configuration information of variable, without sending read requests to agent unit, only in read error, just need to agency
Unit sends read requests.
When process read error, to the agent unit send read requests, and the agent unit response after, again from
The configuration information and checking information of variable are read in shared drive, that is, repeat the above steps 101 and step 102 until read just
True configuration information.Generally, process read error, other processes has been primarily due to and have been updated, if the renewal of other processes is completed
Before, just go ceaselessly to re-read, the configuration information read remains mistake, and also wastes process resource.At this
In invention, when agent unit has responded read requests, illustrate that the renewal operation of other processes has been completed, at this moment, can be very big
The configuration information for ensuring to re-read in degree is correct.
The transmission time order and function ordinal response that agent unit is asked according to reading/renewal of each process, such as lower section can be used
Formula is realized:, please by the read requests or the renewal after the agent unit receives the read requests or renewal request
Ask and be input in message queue, and according to read requests described in ordinal response or the renewal request of joining the team.Wherein, message queue
It is the container that message is preserved in the transmitting procedure of message, because message queue is First Input First Output, therefore, it can be ensured that message
It is the sequential processes sent according to them.
It should be noted that the process for reading or updating request is sent to agent unit after the completion of reading or renewal, can
One is sent to agent unit performing and complete signal, agent unit responds follow-up read or more after receiving and performing and complete signal
New request.
In technical scheme provided in an embodiment of the present invention, it can determine whether out reading according to the checking information of the variable read
Whether the variable is updated by other processes during taking, and explanation reads correct if not being updated;If being updated, illustrate to read
Take incorrect, then send read requests to agent unit, the configuration information and checking information of the variable are re-read with request
Until reading correct configuration information.It can be seen that the present invention can improve process from the reading accuracy in shared drive.
In above-described embodiment and following each embodiments, the above method also includes:Receive the described of far-end server transmission
The update notification of variable;Renewal request is sent to the agent unit according to the update notification;Responded in the agent unit
Afterwards, the configuration information of variable described in the shared drive is updated.
In the present embodiment, the relevant variable that the configuration information of variable only stores on far-end server in shared drive
Configuration information can just be updated when updating.Far-end server can be after the configuration information update of the variable of its storage to upper
State the update notification that equipment sends the variable.After equipment receives update notification, a renewal process can be started, to be entered by renewal
Journey sends renewal request according to the update notification to the agent unit.And after agent unit response, then go renewal shared
The configuration information of variable described in internal memory.
In addition, the checking information that the variable after the configuration information of variable, is updated described in the shared drive is updated,
It is renewal check code and/or version information.If checking message is check code, according to the configuration information after renewal and according to institute
State ad hoc rules and generate new check code;If verifying, message is first version information and second edition information, in the variable
Configuration information update after, update the version information of the configuration information of the variable.
Fig. 2 is the schematic flow sheet for the variable read-write method based on shared drive that further embodiment of this invention provides.Such as
Shown in Fig. 2, this method includes:
201st, the access request in response to process to the variable, this letter of the third edition of variable described in the process is obtained
The fourth edition information of variable described in breath and the shared drive.
202nd, described this information of the third edition and the fourth edition information are compared.
If the 203, described this information of the third edition is different from the fourth edition information, institute is read from the shared drive
State configuration information corresponding to variable and checking information.
204th, judge whether the configuration information is correct according to the checking information.
If the 205, incorrect, read requests are sent to agent unit, and after agent unit response, again from institute
The configuration information that the variable is read in shared drive and checking information are stated until reading correct configuration information.
During process is run, it is likely that same variable repeatedly can be accessed.If every time from shared drive
In go to read, can not only increase the read-write pressure of shared drive, also because of read error the stand-by period can be caused to extend.Therefore, exist
In the present embodiment, when process need to conduct interviews to variable, this letter of the third edition of configuration information of variable first in acquisition process
The fourth edition information of the configuration information of variable in breath and shared drive, if both are consistent, explanatory variable is not updated, therefore,
The configuration information of the variable read before can be used directly;If both are inconsistent, explanatory variable is updated, therefore, it is necessary to
The configuration information of the variable of latest edition is read from shared drive.If it should be noted that do not get described in process
Version information corresponding to the configuration information of variable, then configuration information and checking corresponding to the variable can be read from shared drive
Information.
Above-mentioned steps 204 and above-mentioned steps 205 can refer to corresponding contents in the various embodiments described above, will not be repeated here.
In technical scheme provided in an embodiment of the present invention, it can determine whether out reading according to the checking information of the variable read
Whether the variable is updated by other processes during taking, and explanation reads correct if not being updated;If being updated, illustrate to read
Take incorrect, then send read requests to agent unit, the configuration information and checking information of the variable are re-read with request
Until reading correct configuration information.It can be seen that the present invention can improve process from the reading accuracy in shared drive.
Fig. 3 is the structured flowchart for the variable read-write device based on shared drive that one embodiment of the invention provides.Such as Fig. 3 institutes
Show, the device includes:First read module 301, the read module 303 of judge module 302 and second.Wherein, the first read module
301, for reading the configuration information and checking information of variable from shared drive;Judge module 302, for according to the checking
Information judges whether the configuration information is correct;Second read module 303, if for incorrect, send and read to agent unit
Request is taken, and after agent unit response, reads the configuration information of the variable from the shared drive again and tests
Card information is until read correct configuration information.
Alternatively, said apparatus, in addition to:Receiving module, for receiving the variable of far-end server transmission more
New notice;Sending module, for sending renewal request to the agent unit according to the update notification;First update module,
For after agent unit response, updating the configuration information of variable described in the shared drive.
Alternatively, said apparatus, in addition to:
Second update module, for updating described in the shared drive after the configuration information of variable, update the variable
Checking information.
Alternatively, said apparatus, in addition to:
Input module, please by the reading after receiving the read requests or renewal request for the agent unit
Ask or the renewal request is input in message queue, and please according to join the team read requests described in ordinal response or the renewal
Ask.
Alternatively, the checking information is first circulation redundancy check code;And the judge module, including:It is it is determined that single
Member, for according to the configuration information read, determining second circulation redundancy check code;Comparing unit, for described in comparison
First circulation redundancy check code and the second circulation redundancy check code;Identifying unit, if for the first circulation redundancy school
It is identical with the second circulation redundancy check code to test code, then it is correct configuration information to judge the configuration information.
Alternatively, said apparatus, in addition to:Acquisition module, for the access request in response to process to the variable, obtain
Take the fourth edition information of variable described in this information of the third edition of variable described in the process and the shared drive;Than
To module, for comparing described this information of the third edition and the fourth edition information;First read module, if specifically for
Described this information of the third edition is different from the fourth edition information, then reads from the shared drive and match somebody with somebody corresponding to the variable
Confidence ceases and checking information.
In technical scheme provided in an embodiment of the present invention, it can determine whether out reading according to the checking information of the variable read
Whether the variable is updated by other processes during taking, and explanation reads correct if not being updated;If being updated, illustrate to read
Take incorrect, then send read requests to agent unit, the configuration information and checking information of the variable are re-read with request
Until reading correct configuration information.It can be seen that the present invention can improve process from the reading accuracy in shared drive.
Described device is corresponding with foregoing method flow description, and weak point refers to the narration of above method flow, no longer
Repeat one by one.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (10)
- A kind of 1. variable read-write method based on shared drive, it is characterised in that including:The configuration information and checking information of variable are read from shared drive;Judge whether the configuration information is correct according to the checking information;If incorrect, read requests are sent to agent unit, and after agent unit response, again from described shared interior The middle configuration information for reading the variable and checking information are deposited until reading correct configuration information.
- 2. according to the method for claim 1, it is characterised in that also include:Receive the update notification for the variable that far-end server is sent;Renewal request is sent to the agent unit according to the update notification;After agent unit response, the configuration information of variable described in the shared drive is updated.
- 3. according to the method for claim 2, it is characterised in that also include:Update the checking information that the variable after the configuration information of variable, is updated described in the shared drive.
- 4. according to the method for claim 2, it is characterised in that also include:It is after the agent unit receives the read requests or renewal request, the read requests or the renewal request are defeated Enter into message queue, and according to read requests described in ordinal response or the renewal request of joining the team.
- 5. according to the method any one of claim 1-4, it is characterised in that the checking information is first circulation redundancy Check code;And judge whether the configuration information is correct according to the checking information, including:According to the configuration information read, second circulation redundancy check code is determined;Compare the first circulation redundancy check code and the second circulation redundancy check code;If the first circulation redundancy check code is identical with the second circulation redundancy check code, judge that the configuration information is Correct configuration information.
- 6. according to the method any one of claim 1-4, it is characterised in that also include:In response to process to the change The access request of amount, obtain variable described in this information of the third edition of variable described in the process and the shared drive Fourth edition information;Compare described this information of the third edition and the fourth edition information;If described this information of the third edition is different from the fourth edition information, the variable pair is read from the shared drive The configuration information and checking information answered.
- A kind of 7. variable read-write device based on shared drive, it is characterised in that including:First read module, for reading the configuration information and checking information of variable from shared drive;Judge module, for judging whether the configuration information is correct according to the checking information;Second read module, if for incorrect, read requests are sent to agent unit, and respond in the agent unit Afterwards, the configuration information and checking information for reading the variable from the shared drive again correctly match somebody with somebody confidence up to reading Breath.
- 8. device according to claim 7, it is characterised in that also include:Receiving module, the update notification of the variable for receiving far-end server transmission;Sending module, for sending renewal request to the agent unit according to the update notification;First update module, for after agent unit response, update variable described in the shared drive to match somebody with somebody confidence Breath.
- 9. device according to claim 8, it is characterised in that also include:Second update module, for updating described in the shared drive after the configuration information of variable, update testing for the variable Demonstrate,prove information.
- 10. device according to claim 8, it is characterised in that also include:Input module, after receiving the read requests or renewal request for the agent unit, by the read requests or The renewal request is input in message queue, and according to read requests described in ordinal response or the renewal request of joining the team.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711091744.9A CN107844385B (en) | 2017-11-08 | 2017-11-08 | Variable read-write method and device based on shared memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711091744.9A CN107844385B (en) | 2017-11-08 | 2017-11-08 | Variable read-write method and device based on shared memory |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107844385A true CN107844385A (en) | 2018-03-27 |
CN107844385B CN107844385B (en) | 2021-04-23 |
Family
ID=61681367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711091744.9A Active CN107844385B (en) | 2017-11-08 | 2017-11-08 | Variable read-write method and device based on shared memory |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107844385B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108776665A (en) * | 2018-04-20 | 2018-11-09 | 北京奇艺世纪科技有限公司 | A kind of data processing method and device |
CN108920284A (en) * | 2018-06-06 | 2018-11-30 | 亚信科技(中国)有限公司 | Shared drive access method and system |
CN113342805A (en) * | 2021-04-21 | 2021-09-03 | 湖北微源卓越科技有限公司 | System and method for sharing data by multiple processes |
CN114866413A (en) * | 2021-01-18 | 2022-08-05 | 网宿科技股份有限公司 | Method and system for dynamically configuring variables |
CN115563628A (en) * | 2022-01-17 | 2023-01-03 | 荣耀终端有限公司 | Variable reading and writing method and variable reading and writing device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070198979A1 (en) * | 2006-02-22 | 2007-08-23 | David Dice | Methods and apparatus to implement parallel transactions |
CN101042646A (en) * | 2007-04-10 | 2007-09-26 | 中兴通讯股份有限公司 | Method for recording version information in embedded software |
US20090049437A1 (en) * | 2004-04-07 | 2009-02-19 | Udo Woersching | Method for configuring a computer program |
CN103150206A (en) * | 2006-12-28 | 2013-06-12 | 英特尔公司 | Efficient and consistent software transactional memory |
CN103226488A (en) * | 2013-05-06 | 2013-07-31 | 中国农业银行股份有限公司 | Method and device for efficiency control in formalized code generation |
CN106776329A (en) * | 2016-12-23 | 2017-05-31 | 北京天诚同创电气有限公司 | The adjustment method and commissioning device of energy accumulation current converter |
CN107077350A (en) * | 2015-04-07 | 2017-08-18 | 华为技术有限公司 | Method and apparatus for tracking object in the first memory |
-
2017
- 2017-11-08 CN CN201711091744.9A patent/CN107844385B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090049437A1 (en) * | 2004-04-07 | 2009-02-19 | Udo Woersching | Method for configuring a computer program |
US20070198979A1 (en) * | 2006-02-22 | 2007-08-23 | David Dice | Methods and apparatus to implement parallel transactions |
CN103150206A (en) * | 2006-12-28 | 2013-06-12 | 英特尔公司 | Efficient and consistent software transactional memory |
CN101042646A (en) * | 2007-04-10 | 2007-09-26 | 中兴通讯股份有限公司 | Method for recording version information in embedded software |
CN103226488A (en) * | 2013-05-06 | 2013-07-31 | 中国农业银行股份有限公司 | Method and device for efficiency control in formalized code generation |
CN107077350A (en) * | 2015-04-07 | 2017-08-18 | 华为技术有限公司 | Method and apparatus for tracking object in the first memory |
CN106776329A (en) * | 2016-12-23 | 2017-05-31 | 北京天诚同创电气有限公司 | The adjustment method and commissioning device of energy accumulation current converter |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108776665A (en) * | 2018-04-20 | 2018-11-09 | 北京奇艺世纪科技有限公司 | A kind of data processing method and device |
CN108776665B (en) * | 2018-04-20 | 2021-01-12 | 北京奇艺世纪科技有限公司 | Data processing method and device |
CN108920284A (en) * | 2018-06-06 | 2018-11-30 | 亚信科技(中国)有限公司 | Shared drive access method and system |
CN114866413A (en) * | 2021-01-18 | 2022-08-05 | 网宿科技股份有限公司 | Method and system for dynamically configuring variables |
CN113342805A (en) * | 2021-04-21 | 2021-09-03 | 湖北微源卓越科技有限公司 | System and method for sharing data by multiple processes |
CN115563628A (en) * | 2022-01-17 | 2023-01-03 | 荣耀终端有限公司 | Variable reading and writing method and variable reading and writing device |
CN115563628B (en) * | 2022-01-17 | 2023-09-22 | 荣耀终端有限公司 | Variable reading and writing method and variable reading and writing device |
Also Published As
Publication number | Publication date |
---|---|
CN107844385B (en) | 2021-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11386210B2 (en) | Inquiry response mapping for determining a cybersecurity risk level of an entity | |
CN107844385A (en) | A kind of variable read-write method and device based on shared drive | |
JP7026475B2 (en) | Security evaluation system and security evaluation method | |
CN109062809B (en) | Online test case generation method and device and electronic equipment | |
US20200019420A1 (en) | Personalized help using user behavior and information | |
CN107257340A (en) | A kind of authentication method, authentication data processing method and equipment based on block chain | |
US8661412B2 (en) | Managing automated and manual application testing | |
CN110209684A (en) | Tracking, device, system and the medium of database D DL change operation | |
CN106485261A (en) | A kind of method and apparatus of image recognition | |
US11681758B2 (en) | Bot program for monitoring | |
CN110533503B (en) | Data processing method and device | |
US10164990B2 (en) | Security test tool | |
US11438251B1 (en) | System and method for automatic self-resolution of an exception error in a distributed network | |
CN110620788A (en) | Information interaction method, related product and computer readable storage medium | |
CN113852520B (en) | Data processing method and device | |
US11429688B2 (en) | Correcting a URL within a REST API call | |
CN113672514A (en) | Test method, test device, server and storage medium | |
US11892937B2 (en) | Developer test environment with containerization of tightly coupled systems | |
WO2019036040A1 (en) | Computer based learning system for analyzing agreements | |
US20230275800A1 (en) | Self-resolution of exception errors in a distributed network | |
US11640389B2 (en) | Hash-based identification of data corruption issues in time-series data | |
CN117171816B (en) | Data verification method based on industrial identification and related equipment | |
CN114500033B (en) | Method, device, computer equipment and medium for verifying application server | |
US11645252B2 (en) | System and method for efficiently validating time-series data using a hash-based representation of the data | |
US20240161122A1 (en) | Verifying a field replaceable unit before replacement |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210310 Address after: 101300 309, 3rd floor, 60 Fuqian 1st Street, Tianzhu District, Shunyi District, Beijing Applicant after: Beijing longzhixin Technology Co.,Ltd. Address before: 100041 room 120, 4th floor, building 17, yard 30, Shixing street, Shijingshan District, Beijing Applicant before: BEIJING PANDA MUTUAL ENTERTAINMENT TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |