The invention relates to the technical field of communication, in particular to a method and
system for achieving
data sharing and storage through a multi-process
command line interface and a command interface. The
command line interface process synchronizes the shared data and the first integer variable identifier to a
data access layer data module of the
command line interface process before configuration, and copies the shared data and the first integer variable identifier to a first
data cache and a second
data cache respectively; newly adding and / or deleting and / or modifying data in the
data access layer data module, recording newly adding and / or deleting and / or modifying configuration by the first
data cache, and comparing to obtain newly added, deleted and modified data sets; and submitting the
data set and the second integer variable identifier corresponding to the
data set to the
shared memory, comparing the second integer variable identifier with the first integer variable identifier by the
shared memory, and if the second integer variable identifier is consistent with the first integer variable identifier, writing the
data set into the
shared memory. According to the method, the problem of configuration conflict caused by simultaneous configuration submission of the multiple command line interface processes can be solved, and simultaneous configuration of the multiple command line interface processes is supported.