CN107844385B - Variable read-write method and device based on shared memory - Google Patents

Variable read-write method and device based on shared memory Download PDF

Info

Publication number
CN107844385B
CN107844385B CN201711091744.9A CN201711091744A CN107844385B CN 107844385 B CN107844385 B CN 107844385B CN 201711091744 A CN201711091744 A CN 201711091744A CN 107844385 B CN107844385 B CN 107844385B
Authority
CN
China
Prior art keywords
configuration information
variable
information
shared memory
reading
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.)
Active
Application number
CN201711091744.9A
Other languages
Chinese (zh)
Other versions
CN107844385A (en
Inventor
许瑞亮
张菊元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing longzhixin Technology Co.,Ltd.
Original Assignee
Beijing Longzhixin 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 Longzhixin Technology Co ltd filed Critical Beijing Longzhixin Technology Co ltd
Priority to CN201711091744.9A priority Critical patent/CN107844385B/en
Publication of CN107844385A publication Critical patent/CN107844385A/en
Application granted granted Critical
Publication of CN107844385B publication Critical patent/CN107844385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding 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/1048Adding 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/1056Updating check bits on partial write, i.e. read/modify/write

Abstract

The embodiment of the invention provides a variable read-write method and device based on a shared memory. The method comprises the following steps: reading configuration information and verification information of variables from a shared memory; judging whether the configuration information is correct or not according to the verification information; and if not, sending a reading request to the proxy unit, and reading the configuration information and the verification information of the variables from the shared memory again after the proxy unit responds until the correct configuration information is read. The embodiment of the invention can improve the reading accuracy of the process from the shared memory.

Description

Variable read-write method and device based on shared memory
Technical Field
The invention relates to the technical field of internet, in particular to a variable reading and writing method and device based on a shared memory.
Background
Since it is likely that multiple processes running on one device will access the same variable, in the prior art, to avoid copying data from a memory space to a user space back and forth, configuration information of the variable is written into a shared memory, so that the multiple processes on the device can read the configuration information of the variable from the shared memory.
However, when multiple processes read and write configuration information of variables in the shared memory back and forth, a read error is easily generated, for example: when the process a reads half of the variable a from the shared memory, the variable a is updated by the process B, which inevitably causes the variable a read by the process a to be error data, thereby affecting the subsequent operation of the process.
Disclosure of Invention
The invention provides a variable reading and writing method and device based on a shared memory, and aims to improve the reading accuracy of a process from the shared memory.
In order to solve the above technical problem, the present invention provides a variable read-write method based on a shared memory, including: reading configuration information and verification information of variables from a shared memory; judging whether the configuration information is correct or not according to the verification information; and if not, sending a reading request to the proxy unit, and reading the configuration information and the verification information of the variables from the shared memory again after the proxy unit responds until the correct configuration information is read.
Optionally, the method further includes: receiving an update notification of the variable sent by a remote server; sending an update request to the agent unit according to the update notification; and after the proxy unit responds, updating the configuration information of the variables in the shared memory.
Optionally, the method further includes: and updating the verification information of the variable after updating the configuration information of the variable in the shared memory.
Optionally, the method further includes: and after receiving the reading request or the updating request, the agent unit inputs the reading request or the updating request into a message queue and responds to the reading request or the updating request according to a queuing sequence.
Optionally, the verification information is a first cyclic redundancy check code; and judging whether the configuration information is correct according to the verification information, including: determining a second cyclic redundancy check code according to the read configuration information; comparing the first cyclic redundancy check code with the second cyclic redundancy check code; and if the first cyclic redundancy check code is the same as the second cyclic redundancy check code, judging that the configuration information is correct configuration information.
Optionally, the method further includes: responding to an access request of a process to the variable, and acquiring third version information of the variable in the process and fourth version information of the variable in the shared memory; comparing the third version information with the fourth version information; and if the third version information is different from the fourth version information, reading configuration information and verification information corresponding to the variable from the shared memory.
In order to solve the technical problem, the invention also provides a variable read-write device based on the shared memory. The device, comprising: the first reading module is used for reading the configuration information and the verification information of the variables from the shared memory; the judging module is used for judging whether the configuration information is correct or not according to the verification information; and the second reading module is used for sending a reading request to the proxy unit if the variable is incorrect, and reading the configuration information and the verification information of the variable from the shared memory again until the correct configuration information is read after the proxy unit responds.
In the technical scheme provided by the embodiment of the invention, whether the variable is updated by other processes in the reading process can be judged according to the read verification information of the variable, and if the variable is not updated, the reading is correct; if the variable is updated, the reading is incorrect, and a reading request is sent to the agent unit to request to re-read the configuration information and the verification information of the variable until the correct configuration information is read. Therefore, the method and the device can improve the reading accuracy of the process from the shared memory.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a variable read-write method based on a shared memory according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a variable read-write method based on a shared memory according to another embodiment of the present invention;
fig. 3 is a block diagram of a variable read/write apparatus based on a shared memory according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe XXX in embodiments of the present invention, these XXX should not be limited to these terms. These terms are only used to distinguish XXX from each other. For example, a first XXX may also be referred to as a second XXX, and similarly, a second XXX may also be referred to as a first XXX, without departing from the scope of embodiments of the present invention.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a monitoring", depending on the context. Similarly, the phrase "if it is determined" or "if it is monitored (a stated condition or event)" may be interpreted as "when determining" or "in response to determining" or "when monitoring (a stated condition or event)" or "in response to monitoring (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
Fig. 1 is a flowchart illustrating a variable read-write method based on a shared memory according to an embodiment of the present invention. The method comprises the following steps:
101. and reading the configuration information and the verification information of the variables from the shared memory.
102. And judging whether the configuration information is correct or not according to the verification information.
103. And if not, sending a reading request to the proxy unit, and reading the configuration information and the verification information of the variables from the shared memory again after the proxy unit responds until the correct configuration information is read.
In step 101, the configuration information of the variables includes: variable names and variable values. And storing the configuration information of the variable into the shared memory, so that a plurality of processes on the equipment can acquire the variable value corresponding to the variable from the shared memory through the variable. The configuration information of the variable can be in a Key-Value form, wherein the Key represents the variable and the Value represents the variable assignment. For example: i-database IP address, j-first numerical value, and in the running process of the process, obtaining the database IP address through variable i, and further accessing the corresponding database; and acquiring a first numerical value through the variable j, and further performing subsequent processing according to the first numerical value.
When the configuration information of the variables is stored in the shared memory, a check code and/or version information can be correspondingly stored aiming at the configuration information of each variable; the check code is generated according to the configuration information of the variable and a specific rule, and is updated along with the updating of the configuration information of the variable. The version information is used to identify the number of times the configuration information of the variable is updated, and is updated as the configuration information of the variable is updated. Preferably, the shared memory may be managed by using a fixed-length hash table, where each entry in the fixed-length hash table corresponds to a variable and includes configuration information of the variable and a check code and/or version information corresponding to the variable.
If a check code is correspondingly stored in the shared memory for the configuration information of each variable, the configuration information and the check code of the variable can be read from the shared memory, and the verification information is the check code; if the version information is stored in the shared memory corresponding to the configuration information of each variable, the version information (referred to as first version information for convenience of description) corresponding to the configuration information of the variable may be read from the shared memory, the configuration information of the variable may be read, and after the configuration information of the variable is read, the version information (referred to as second version information) corresponding to the configuration information may be read again, where the verification information includes the first version information and the second version information.
In the step 102, if the verification information is a check code, a reference check code is generated according to the read configuration information and the specific rule. Because the check code in the shared memory is generated according to the configuration information and the same specific rule, if the configuration information and the check code are read correctly, the reference check code and the read check code should be consistent. That is, if the reference check code is consistent with the check code read from the shared memory, it indicates that the read configuration information is correct; if the reference check code is not consistent with the check code read from the shared memory, it is indicated that the read configuration information and/or the check code is wrong.
And if the verification information is the first version information and the second version information, comparing whether the first version information is consistent with the second version information. If the configuration information is not updated by other processes in the reading process, the version information of the configuration information cannot be updated, so that the version information read before and after is consistent; if the configuration information is updated by other processes in the reading process, the version information is also updated, so that the version information read before and after is inconsistent. That is, if the two are consistent, the reading is correct; if not, it indicates a read error.
In an implementation scheme, when the configuration information of the variables is stored in the shared memory, a cyclic Redundancy check (crc) code is added after the configuration information of each variable. The CRC check code is determined according to configuration information of the variables and according to a specific rule (i.e., a coding rule).
The basic principle of the cyclic redundancy check code is as follows: splicing R-bit check code after K-bit information code (i.e. the configuration information of the above-mentioned variables), the whole code length is N bitsThus, this code is also called an (N, K) code. For a given (N, K) code, it can be shown that there is a polynomial g (x) with the highest power N-K-R. According to G (x), a check code of K bits of information can be generated, and G (x) is called a generator polynomial of the CRC code. The specific generation process of the check code (i.e. the above coding rule) is as follows: assuming that the configuration information is represented by the information polynomial C (X), shifting C (x) by R bits to the left can be represented as C (x) xRSo that the right side of C (x) will be free of R bits, which is the position of the check code. Through C (x) xRThe remainder of the division by the generator polynomial g (x) is the check code.
After the configuration information of the variables and the CRC check code are read from the shared memory, whether the read configuration information is correct can be judged by checking the coding rule between the configuration information of the variables and the CRC check code.
Specifically, the method comprises the following steps: the verification information is a first cyclic redundancy check code; and judging whether the configuration information is correct according to the verification information, including: determining a second cyclic redundancy check code according to the read configuration information; comparing the first cyclic redundancy check code with the second cyclic redundancy check code; and if the first cyclic redundancy check code is the same as the second cyclic redundancy check code, judging that the configuration information is correct configuration information.
If the second cyclic redundancy check code obtained after the read configuration information is processed by the coding rule is consistent with the first cyclic redundancy check code, the read configuration information can be determined to be correct; and if not, determining that the read configuration information is wrong.
It should be noted that the CRC check code corresponding to the configuration information of the variable in the shared memory is automatically updated after the configuration information is updated.
In another implementation scheme, when the configuration information of the variables is stored in the shared memory, a piece of version information is added to the configuration information of each variable, and the version information is updated along with the update of the configuration information. For example: and adding 1 to the corresponding version information every time the configuration information of the variable is updated. At this time, the step of reading the configuration information and the verification information of the variables from the shared memory includes: after reading the first version information corresponding to the variable, reading the configuration information corresponding to the variable; after the configuration information corresponding to the variable is read, reading second version information corresponding to the variable again; the verification information includes the first version information and the second version information. That is, when reading the variable from the shared memory, the version information is read first, then the configuration information is read, and finally the version information is read again. If the version information read in two times is consistent, it indicates that the configuration information of the variable is not updated in the process of reading the configuration information of the variable.
In step 103, a proxy unit may be provided on the device running the process. The proxy unit responds according to the sending time sequence of the reading/updating requests of all the processes. The settings can be preset: if the process needs to update the configuration information of the variables in the shared memory, an update request needs to be sent to the proxy unit; if the process needs to read the configuration information of the variables from the shared memory, a read request does not need to be sent to the proxy unit, and only when the read is wrong, the read request needs to be sent to the proxy unit.
When the process reads incorrectly, a read request is sent to the proxy unit, and after the proxy unit responds, the configuration information and the verification information of the variables are read again from the shared memory, that is, the above steps 101 and 102 are repeated until the correct configuration information is read. Generally, a process has a read error mainly because there is another process that is updated, and if the other process finishes updating, the process will be continuously read again, and the read configuration information is still wrong, and process resources are wasted. In the invention, once the agent unit responds to the read request, the update operation of other processes is completed, and at this time, the configuration information which is read again can be ensured to be correct to a great extent.
The agent unit responds according to the sending time sequence of the reading/updating request of each process, and can be realized by adopting the following mode: and after receiving the reading request or the updating request, the agent unit inputs the reading request or the updating request into a message queue and responds to the reading request or the updating request according to a queuing sequence. The message queue is a container for storing messages in the transmission process of the messages, and the messages can be ensured to be processed according to the sending sequence of the messages because the message queue is a first-in first-out queue.
It should be noted that, after the process of sending the read or update request to the proxy unit completes reading or updating, an execution completion signal may be sent to the proxy unit, and after receiving the execution completion signal, the proxy unit responds to the subsequent read or update request.
In the technical scheme provided by the embodiment of the invention, whether the variable is updated by other processes in the reading process can be judged according to the read verification information of the variable, and if the variable is not updated, the reading is correct; if the variable is updated, the reading is incorrect, and a reading request is sent to the agent unit to request to re-read the configuration information and the verification information of the variable until the correct configuration information is read. Therefore, the method and the device can improve the reading accuracy of the process from the shared memory.
In the above embodiment and each of the following embodiments, the method further comprises: receiving an update notification of the variable sent by a remote server; sending an update request to the agent unit according to the update notification; and after the proxy unit responds, updating the configuration information of the variables in the shared memory.
In this embodiment, the configuration information of the variables in the shared memory is updated only when the configuration information of the corresponding variables stored on the remote server is updated. The remote server sends the update notification of the variable to the equipment after the configuration information of the variable stored in the remote server is updated. After receiving the update notification, the device may start an update process, so that the update process sends an update request to the proxy unit according to the update notification. And after the proxy unit responds, updating the configuration information of the variables in the shared memory.
In addition, after the configuration information of the variables in the shared memory is updated, the verification information of the variables is updated, that is, the check codes and/or the version information are updated. If the verification message is a check code, generating a new check code according to the updated configuration information and the specific rule; and if the verification message is the first version information and the second version information, updating the version information of the configuration information of the variable after the configuration information of the variable is updated.
Fig. 2 is a flowchart illustrating a variable read-write method based on a shared memory according to another embodiment of the present invention. As shown in fig. 2, the method includes:
201. and responding to an access request of a process to the variable, and acquiring third version information of the variable in the process and fourth version information of the variable in the shared memory.
202. And comparing the third version information with the fourth version information.
203. And if the third version information is different from the fourth version information, reading configuration information and verification information corresponding to the variable from the shared memory.
204. And judging whether the configuration information is correct or not according to the verification information.
205. And if not, sending a reading request to the proxy unit, and reading the configuration information and the verification information of the variables from the shared memory again after the proxy unit responds until the correct configuration information is read.
During the process running, it is likely that multiple accesses will be made to the same variable. If the reading is performed from the shared memory each time, not only the read-write pressure of the shared memory is increased, but also the waiting time is prolonged due to the reading error. Therefore, in this embodiment, when a process needs to access a variable, first, the third version information of the configuration information of the variable in the process and the fourth version information of the configuration information of the variable in the shared memory are obtained, and if the third version information of the configuration information of the variable in the process and the fourth version information of the configuration information of the variable in the shared memory are consistent, the variable is not updated, so that the previously read configuration information of the variable can be directly used; if the two are not consistent, the explanatory variable is updated, so that the configuration information of the variable of the latest version needs to be read from the shared memory. It should be noted that, if the version information corresponding to the configuration information of the variable in the process is not obtained, the configuration information and the verification information corresponding to the variable may be read from the shared memory.
The above step 204 and the above step 205 can refer to the corresponding contents in the above embodiments, and are not described herein again.
In the technical scheme provided by the embodiment of the invention, whether the variable is updated by other processes in the reading process can be judged according to the read verification information of the variable, and if the variable is not updated, the reading is correct; if the variable is updated, the reading is incorrect, and a reading request is sent to the agent unit to request to re-read the configuration information and the verification information of the variable until the correct configuration information is read. Therefore, the method and the device can improve the reading accuracy of the process from the shared memory.
Fig. 3 is a block diagram of a variable read/write apparatus based on a shared memory according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes: a first reading module 301, a determining module 302 and a second reading module 303. The first reading module 301 is configured to read configuration information and verification information of a variable from a shared memory; a judging module 302, configured to judge whether the configuration information is correct according to the verification information; the second reading module 303 is configured to send a read request to the proxy unit if the configuration information is incorrect, and read the configuration information and the verification information of the variable from the shared memory again after the proxy unit responds until the correct configuration information is read.
Optionally, the apparatus further includes: the receiving module is used for receiving the update notification of the variable sent by the remote server; a sending module, configured to send an update request to the proxy unit according to the update notification; and the first updating module is used for updating the configuration information of the variables in the shared memory after the proxy unit responds.
Optionally, the apparatus further includes:
and the second updating module is used for updating the verification information of the variable after updating the configuration information of the variable in the shared memory.
Optionally, the apparatus further includes:
and the input module is used for inputting the read request or the update request into a message queue after the agent unit receives the read request or the update request, and responding to the read request or the update request according to a queuing sequence.
Optionally, the verification information is a first cyclic redundancy check code; and, the judging module includes: the determining unit is used for determining a second cyclic redundancy check code according to the read configuration information; a comparison unit, configured to compare the first cyclic redundancy check code with the second cyclic redundancy check code; and the judging unit is used for judging that the configuration information is correct configuration information if the first cyclic redundancy check code is the same as the second cyclic redundancy check code.
Optionally, the apparatus further includes: an obtaining module, configured to obtain, in response to an access request of a process for the variable, third version information of the variable in the process and fourth version information of the variable in the shared memory; the comparison module is used for comparing the third version information with the fourth version information; the first reading module is specifically configured to read configuration information and verification information corresponding to the variable from the shared memory if the third version information is different from the fourth version information.
In the technical scheme provided by the embodiment of the invention, whether the variable is updated by other processes in the reading process can be judged according to the read verification information of the variable, and if the variable is not updated, the reading is correct; if the variable is updated, the reading is incorrect, and a reading request is sent to the agent unit to request to re-read the configuration information and the verification information of the variable until the correct configuration information is read. Therefore, the method and the device can improve the reading accuracy of the process from the shared memory.
The device corresponds to the description of the method flow, and the description of the method flow is referred for the deficiency, and is not repeated.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A variable read-write method based on a shared memory is characterized by comprising the following steps:
reading configuration information and verification information of variables from a shared memory;
judging whether the configuration information is correct or not according to the verification information;
and if not, sending a reading request to the proxy unit, and reading the configuration information and the verification information of the variables from the shared memory again after the proxy unit responds until the correct configuration information is read.
2. The method of claim 1, further comprising:
receiving an update notification of the variable sent by a remote server;
sending an update request to the agent unit according to the update notification;
and after the proxy unit responds, updating the configuration information of the variables in the shared memory.
3. The method of claim 2, further comprising:
and updating the verification information of the variable after updating the configuration information of the variable in the shared memory.
4. The method of claim 2, further comprising:
and after receiving the reading request or the updating request, the agent unit inputs the reading request or the updating request into a message queue and responds to the reading request or the updating request according to a queuing sequence.
5. The method according to any of claims 1-4, wherein the validation information is a first cyclic redundancy check code;
and judging whether the configuration information is correct according to the verification information, including:
determining a second cyclic redundancy check code according to the read configuration information;
comparing the first cyclic redundancy check code with the second cyclic redundancy check code;
and if the first cyclic redundancy check code is the same as the second cyclic redundancy check code, judging that the configuration information is correct configuration information.
6. The method according to any one of claims 1-4, further comprising: responding to an access request of a process to the variable, and acquiring third version information of the configuration information of the variable in the process and fourth version information of the configuration information of the variable in the shared memory;
comparing the third version information with the fourth version information;
and if the third version information is different from the fourth version information, reading configuration information and verification information corresponding to the variable from the shared memory.
7. A variable read-write device based on shared memory is characterized by comprising:
the first reading module is used for reading the configuration information and the verification information of the variables from the shared memory;
the judging module is used for judging whether the configuration information is correct or not according to the verification information;
and the second reading module is used for sending a reading request to the proxy unit if the variable is incorrect, and reading the configuration information and the verification information of the variable from the shared memory again until the correct configuration information is read after the proxy unit responds.
8. The apparatus of claim 7, further comprising:
the receiving module is used for receiving the update notification of the variable sent by the remote server;
a sending module, configured to send an update request to the proxy unit according to the update notification;
and the first updating module is used for updating the configuration information of the variables in the shared memory after the proxy unit responds.
9. The apparatus of claim 8, further comprising:
and the second updating module is used for updating the verification information of the variable after updating the configuration information of the variable in the shared memory.
10. The apparatus of claim 8, further comprising:
and the input module is used for inputting the read request or the update request into a message queue after the agent unit receives the read request or the update request, and responding to the read request or the update request according to a queuing sequence.
CN201711091744.9A 2017-11-08 2017-11-08 Variable read-write method and device based on shared memory Active CN107844385B (en)

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 CN107844385A (en) 2018-03-27
CN107844385B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN113342805B (en) * 2021-04-21 2023-04-11 湖北微源卓越科技有限公司 System and method for sharing data by multiple processes
CN115563628B (en) * 2022-01-17 2023-09-22 荣耀终端有限公司 Variable reading and writing method and variable reading and writing device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042646A (en) * 2007-04-10 2007-09-26 中兴通讯股份有限公司 Method for recording version information in embedded software
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004017050A1 (en) * 2004-04-07 2005-10-27 Robert Bosch Gmbh Data consistency in data processing systems
US7669015B2 (en) * 2006-02-22 2010-02-23 Sun Microsystems Inc. Methods and apparatus to implement parallel transactions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN107844385A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN107844385B (en) Variable read-write method and device based on shared memory
JP4809477B2 (en) Email address verification
CN107516038B (en) Method and device for determining device fingerprint
CN107943949B (en) Method and server for determining web crawler
US20060156129A1 (en) System for maintaining data
CN110442473B (en) Nonvolatile data storage method and device, electronic equipment and medium
US20200026427A1 (en) System and method for handling data storage on storage devices
CN110971571A (en) Website domain name verification method and related device
CN109299205B (en) Method and device for warehousing spatial data used by planning industry
CN111309506A (en) Method, equipment, server and readable storage medium for positioning compiling errors
CN110633092A (en) Server for OTA (over the air) upgrading and embedded equipment upgrading method and device
CN112087530B (en) Method, device, equipment and medium for uploading data to block chain system
CN110806971A (en) Version testing method and device and electronic equipment
CN109600254B (en) Method for generating full-link log and related system
CN108196975B (en) Data verification method and device based on multiple checksums and storage medium
WO2019169771A1 (en) Electronic device, access instruction information acquisition method and storage medium
CN112306568A (en) Service instance configuration method and device, electronic equipment and storage medium
CN109871294B (en) Method and device for checking data and processing request
CN111752797A (en) Terminal log processing method and device, terminal and storage medium
CN112242177A (en) Memory testing method and device, computer readable storage medium and electronic equipment
CN113568398B (en) Configuration deleting method and system for distributed control system
CN110362464B (en) Software analysis method and equipment
CN111950232B (en) Method and device for automatically switching number segments
CN111460436A (en) Unstructured data operation method and system based on block chain
CN111475400A (en) Verification method of service platform and related equipment

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