CN114374684A - Shell command optimization method and system - Google Patents

Shell command optimization method and system Download PDF

Info

Publication number
CN114374684A
CN114374684A CN202111616733.4A CN202111616733A CN114374684A CN 114374684 A CN114374684 A CN 114374684A CN 202111616733 A CN202111616733 A CN 202111616733A CN 114374684 A CN114374684 A CN 114374684A
Authority
CN
China
Prior art keywords
processing
command
message
shell command
shell
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111616733.4A
Other languages
Chinese (zh)
Other versions
CN114374684B (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.)
Inspur Communication Technology Co Ltd
Original Assignee
Shandong Inspur Scientific Research Institute 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 Shandong Inspur Scientific Research Institute Co Ltd filed Critical Shandong Inspur Scientific Research Institute Co Ltd
Priority to CN202111616733.4A priority Critical patent/CN114374684B/en
Publication of CN114374684A publication Critical patent/CN114374684A/en
Application granted granted Critical
Publication of CN114374684B publication Critical patent/CN114374684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/321Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a shell command optimization method and a shell command optimization system, wherein the shell command optimization method comprises the following steps: when a new air interface NR system is started, a shell command is sent to a command processing queue thread by an NR main process; acquiring a new task message, and starting a receiving command processing queue to receive the new task message; and executing preset processing by the message analysis processing queue according to the type of the new task message, and returning a processing result to the NR main process. The invention solves the problem of synchronization failure of the original base station MAC layer and PHY through a shell command execution interface, an uploading and downloading interface and a real-time state writing file interface, changes the process-level blocking of the interface calling process into interprocess communication, transfers a time-consuming task to a subprocess for processing, and simultaneously adds a buffer queue to the stable and repeatedly called command for processing so as to reduce the time-consuming interface calling to the minimum.

Description

Shell command optimization method and system
Technical Field
The invention relates to the technical field of wireless communication, in particular to a shell command optimization method and system.
Background
In a general NR (New Radio, New air interface) single-process system, for executing a shell command, a mode of creating a sub-process such as fork (), clone () and the like is adopted, and the management of the execution process of the command is realized in a mode of synchronizing the sub-processes, where the execution process of the mode is as follows:
calling fork () to create a sub-process and recording the pid of the sub-process; calling commands such as execlp, pop, system and the like in the subprocess to realize the execution of the shell command; starting an overtime timer to detect the execution state of the subtask; and judging the execution state of the pid in the timer execution function, and reading the return state and the command return value.
In the NR single-process system, process-level wait is caused in the process of creating sub-threads using system-level commands, so that the very time-sensitive MAC layer task waits for a long time, which exceeds the synchronization time with the PHY, resulting in the problem of desynchronization of the MAC and PHY.
Disclosure of Invention
The invention provides a shell command optimization method and a shell command optimization system, which are used for solving the defect that the time consumption of an MAC layer is overlarge due to the fact that a system level command is called in an NR (noise reduction) system in the prior art.
In a first aspect, the present invention provides a method for optimizing a shell command, including:
when a new air interface NR system is started, a shell command is sent to a command processing queue thread by an NR main process;
acquiring a new task message, and starting a receiving command processing queue to receive the new task message;
and executing preset processing by the message analysis processing queue according to the type of the new task message, and returning a processing result to the NR main process.
According to the shell command optimization method provided by the invention, when the NR system to be newly started is started, the NR host process sends a shell command to a command processing queue thread, and the method further includes:
and starting a system call processing queue thread and a return result receiving thread, and calling a shell command execution interface by the NR main process.
According to the shell command optimization method provided by the present invention, the message parsing processing queue executes preset processing according to the type of the new task message, and returns a processing result to the NR main process, and then the method further includes:
and sending the processing result to the return result receiving thread.
According to the shell command optimization method provided by the invention, the step of acquiring the new task message and starting the receiving command processing queue to receive the new task message comprises the following steps:
calling the shell command execution interface to package the message type and assembling a message ID;
and sending the message type and the message ID to a sub-process processing command pipeline.
According to the shell command optimization method provided by the invention, the message analysis processing queue executes preset processing according to the type of the new task message and returns a processing result to the NR main process, and the method comprises the following steps:
determining shell command execution processing, uploading and downloading task processing and real-time state writing file processing to obtain a processing result;
and packaging the processing result into a message format and sending the message format to the NR main process.
According to the shell command optimization method provided by the invention, the step of sending the processing result to the returned result receiving thread comprises the following steps:
analyzing the processing result in the returned result receiving thread, and calling other thread interfaces to return an analysis result;
and sending the analysis result to a command processing queue in a command processing queue thread.
In a second aspect, the present invention further provides a shell command optimization system, including:
the starting module is used for sending a shell command to a command processing queue thread by an NR main process when a new air interface NR system is started;
the processing module is used for acquiring a new task message and starting a receiving command processing queue to receive the new task message;
and the return module is used for executing preset processing by the message analysis processing queue according to the type of the new task message and returning a processing result to the NR main process.
In a third aspect, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the shell command optimization method according to any one of the above methods when executing the computer program.
In a fourth aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the shell command optimization method as described in any of the above.
In a fifth aspect, the present invention also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the shell command optimization method according to any one of the above.
According to the shell command optimization method and system, the problem of synchronization failure of an original base station MAC layer and a PHY is solved through a shell command execution interface, an uploading and downloading interface and a real-time state writing file interface, the process-level blocking of an interface calling process is changed into inter-process communication, a time-consuming task is transferred to a sub-process for processing, meanwhile, a stable and repeatedly called command is added with a cache queue for processing, and the time-consuming of interface calling is reduced to the minimum.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for 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 those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a shell command optimization method provided by the present invention;
FIG. 2 is a second schematic flow chart of the shell command optimization method provided in the present invention;
FIG. 3 is a schematic structural diagram of a shell command optimization system provided by the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, 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.
For the problem of too large time consumption of the MAC layer caused by invoking a system level command in the existing NR system, fig. 1 is one of the flow diagrams of the shell command optimization method provided by the present invention, as shown in fig. 1, including:
step S1, when a new air interface NR system is started, the NR main process sends a shell command to a command processing queue thread;
step S2, acquiring a new task message, and starting a receiving command processing queue to receive the new task message;
and step S3, executing preset processing by the message analysis processing queue according to the type of the new task message, and returning a processing result to the NR main process.
Specifically, as shown in the flowchart of fig. 2, when the NR system is started, that is, the base station is started, the command processing queue thread is started, the shell command execution interface is called in the NR main process, the shell command is sent to the system call processing queue thread, if a new task is found in the task queue, the shell command interface is called to encapsulate a message type, a message ID is assembled and sent to the sub-process processing command pipeline, the message receiving module in the sub-process receives the message and enters the message parsing processing queue, the message parsing processing queue enters corresponding processing according to the message type, a processing result is returned after the processing is completed and sent to the NR main process, and the NR main process return result receiving thread receives a return message and matches the command processing result according to the message type and the message ID and sends the return message to the thread requesting the command.
The method comprises the steps of adopting a sub-process mode outside an NR system, executing time-consuming tasks such as shell commands, performance monitoring tasks, uploading and downloading tasks, system real-time states and the like in the NR system in the sub-process, establishing a pipeline communication mode between the sub-process and the NR system, and adopting an extensible data format to realize execution of various tasks.
The invention solves the problem of synchronization failure of the original base station MAC layer and PHY through a shell command execution interface, an uploading and downloading interface and a real-time state writing file interface, changes the process-level blocking of the interface calling process into interprocess communication, transfers a time-consuming task to a subprocess for processing, and simultaneously adds a buffer queue to the stable and repeatedly called command for processing so as to reduce the time-consuming interface calling to the minimum.
Based on the above embodiment, step S1 is preceded by:
and starting a system call processing queue thread and a return result receiving thread, and calling a shell command execution interface by the NR main process.
Specifically, before the NR main process calls the shell command execution interface, when the NR system is started, a system call processing queue thread and a return result receiving thread are started, so that the sub-process is started.
When the system is started, the invention starts the calling processing queue thread and the returning result receiving thread, which is convenient for sending and receiving instructions, and the special thread processes the shell command, thereby reducing the system load.
Based on any of the above embodiments, step S3 is followed by:
and sending the processing result to the return result receiving thread.
Specifically, after the command processing result is returned, the result is returned to the NR system according to the encapsulated message format, received by the command processing result receiving queue, and the returned result is analyzed and then is sent to the command processing queue by calling the interface by another thread.
After the task is finished, the command processing result receiving queue processes the analysis result, and process resources are effectively saved.
Based on any of the above embodiments, step S2 includes:
calling the shell command execution interface to package the message type and assembling a message ID;
and sending the message type and the message ID to a sub-process processing command pipeline.
Specifically, when a new task is inquired, a shell command interface is called to encapsulate a message type, a message ID is assembled and sent to a sub-process processing command pipeline, a message analysis processing queue enters corresponding processing according to the message type, and a processing result is returned after the processing is completed and sent to the NR main process.
Here, the commands that are stable and repeatedly called are buffered, while the base station takes time and tasks, processes in sub-processes and can save files, etc.
Because the requirement on the execution efficiency of time in the NR system is particularly high, when the NR system normally runs, any time-consuming task can cause the overtime of a scheduling task of an MAC layer, thereby causing the influence on the service of an access user, and causing the disconnection of the user and serious errors when the service is serious; in the invention, the resource scheduling of the system is detected by adopting a mode of starting the agent subprocess first, so that the operation of the NR system is ensured to be stable and reliable.
Based on any of the above embodiments, step S3 includes:
determining shell command execution processing, uploading and downloading task processing and real-time state writing file processing to obtain a processing result;
and packaging the processing result into a message format and sending the message format to the NR main process.
Specifically, in the command parsing processing queue, processing is performed according to a message type, where the message type includes shell command execution processing, upload and download task processing, and real-time state write file processing, and a data interaction format here is as follows:
sending command format:
message type Request message ID Message length Message content
And returning a result format:
Figure BDA0003436417260000061
Figure BDA0003436417260000071
the shell command execution interface, the uploading and downloading interface and the real-time state writing file interface provided by the invention solve the problem of synchronization failure of the original base station MAC layer and PHY.
Based on any of the above embodiments, the sending the processing result to the returned result receiving thread includes:
analyzing the processing result in the returned result receiving thread, and calling other thread interfaces to return an analysis result;
and sending the analysis result to a command processing queue in a command processing queue thread.
Specifically, the NR main process return result receiving thread receives the return message, matches the command processing result according to the message type and the message ID, and sends the result to the thread requesting the command.
The processing mode enables the whole thread processing flow to form a closed loop, and can improve the processing efficiency of the main process of the NR system.
The solution of the invention is illustrated below by means of specific examples, the application examples being as follows:
the first embodiment is as follows:
when a base station user accesses, the AMF sends a PDSnession request to the base station, the base station needs to obtain a local IP of the UPF through a routing table of the base station according to the obtained UPF address, and a system command 'IP route get 192.168. xxx.xxx' is called at the moment to obtain a local corresponding network port source address; when the system () function is adopted for calling, the MAC layer and the PHY are out of synchronization; the scheme adopted by the invention comprises the following steps:
the first step is as follows: when the L3 establishes the link, calling the acquisition source IP interface function, and firstly searching the acquisition source IP interface function in a routing cache table; if no corresponding result is found, calling a do _ system () interface function, and transmitting an 'ip route get 192.168. xxx.xxx' command; if the required result is found, directly returning the result in the cache;
the second step is that: sending the command to a message processing queue in a do system () interface, filling and sending the message format content to a subprocess according to the command type, and waiting for a return result;
the third step: after receiving the command, the sub-process executes the shell script according to the message type to obtain a return result and then sends the return result to the NR main process;
the fourth step: the NR main process receives the return value comparison message ID and sends the return value comparison message ID to a do _ system () corresponding calling interface, the source IP interface module obtains a return result of the do _ system () received by the source IP interface module, the correct result is returned to L3, and the correct result is updated to a cache table;
the fifth step: and after the updating of the system network card and the routing table is triggered, the cache is updated at the same time, so that the routing query result is ensured to be the latest value.
Example two:
when the base station uploads the log file to the OMC at regular time, a file uploading task needs to be started, and the time for starting the file uploading task in the NR main process is long, and the method provided by the invention comprises the following steps:
the first step is as follows: calling a do _ upload interface, transmitting a URL (uniform resource locator) address, a file name, a user name and a password and the like, and opening a file uploading progress query timer;
the second step is that: the do _ upload interface sends the command to a message processing queue, assembles a message format according to the command type and sends the message format to a sub-process;
the third step: after receiving the command, the sub-process analyzes an uploading URL address, a file name and a user name password parameter creating thread to pull up an uploading file task according to the message type, and updates the uploading file transmission progress percentage to the progress parameter;
the fourth step: repeatedly calling the do _ upload inquiry and uploading file progress interface, assembling inquiry progress information, and determining whether the file is completely transmitted according to the inquired progress percentage;
the fifth step: and after the file transmission is finished, calling a transmission file completion notification interface and sending the transmission file completion notification interface to the OMC for notification.
The execution of the shell command is realized in a sub-agent mode in the main process on the linux server in the NR base station, the stable and repeatedly called command is processed by adding a cache, the base station time-consuming task is processed in the sub-process, and the file can be saved.
The shell command optimization system provided by the invention is described below, and the shell command optimization system described below and the shell command optimization method described above can be referred to correspondingly.
Fig. 3 is a schematic structural diagram of a shell command optimization system provided in the present invention, as shown in fig. 3, including: a start module 31, a processing module 32 and a return module 33, wherein:
the starting module 31 is configured to send a shell command to a command processing queue thread by an NR main process when a new air interface NR system is started; the processing module 32 is configured to obtain a new task message, and start a receive command processing queue to receive the new task message; the returning module 33 is configured to execute preset processing by the message parsing processing queue according to the type of the new task message, and return a processing result to the NR main process.
The invention solves the problem of synchronization failure of the original base station MAC layer and PHY through a shell command execution interface, an uploading and downloading interface and a real-time state writing file interface, changes the process-level blocking of the interface calling process into interprocess communication, transfers a time-consuming task to a subprocess for processing, and simultaneously adds a buffer queue to the stable and repeatedly called command for processing so as to reduce the time-consuming interface calling to the minimum.
Based on the above embodiment, the system further includes a calling module 34, where the calling module 34 is configured to:
and starting a system call processing queue thread and a return result receiving thread, and calling a shell command execution interface by the NR main process.
When the system is started, the invention starts the calling processing queue thread and the returning result receiving thread, which is convenient for sending and receiving instructions, and the special thread processes the shell command, thereby reducing the system load.
Based on any of the above embodiments, the system further includes a sending module 35, where the sending module 35 is configured to:
and sending the processing result to the return result receiving thread.
After the task is finished, the command processing result receiving queue processes the analysis result, and process resources are effectively saved.
Based on any of the above embodiments, the processing module 32 is specifically configured to:
calling the shell command execution interface to package the message type and assembling a message ID;
and sending the message type and the message ID to a sub-process processing command pipeline.
Based on any of the above embodiments, the return module 33 is specifically configured to:
determining shell command execution processing, uploading and downloading task processing and real-time state writing file processing to obtain a processing result;
and packaging the processing result into a message format and sending the message format to the NR main process.
The shell command execution interface, the uploading and downloading interface and the real-time state writing file interface provided by the invention solve the problem of synchronization failure of the original base station MAC layer and PHY.
Based on any of the above embodiments, the sending module 35 is specifically configured to:
analyzing the processing result in the returned result receiving thread, and calling other thread interfaces to return an analysis result;
and sending the analysis result to a command processing queue in a command processing queue thread.
The processing mode of the invention enables the whole thread processing flow to form a closed loop, and can improve the processing efficiency of the main process of the NR system.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may call logical instructions in the memory 430 to perform a shell command optimization method comprising: when a new air interface NR system is started, a shell command is sent to a command processing queue thread by an NR main process; acquiring a new task message, and starting a receiving command processing queue to receive the new task message; and executing preset processing by the message analysis processing queue according to the type of the new task message, and returning a processing result to the NR main process.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is capable of executing the method for shell command optimization provided by the above methods, the method comprising: when a new air interface NR system is started, a shell command is sent to a command processing queue thread by an NR main process; acquiring a new task message, and starting a receiving command processing queue to receive the new task message; and executing preset processing by the message analysis processing queue according to the type of the new task message, and returning a processing result to the NR main process.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements a method for shell command optimization provided by the above methods, the method comprising: when a new air interface NR system is started, a shell command is sent to a command processing queue thread by an NR main process; acquiring a new task message, and starting a receiving command processing queue to receive the new task message; and executing preset processing by the message analysis processing queue according to the type of the new task message, and returning a processing result to the NR main process.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
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 shell command optimization method is characterized by comprising the following steps:
when a new air interface NR system is started, a shell command is sent to a command processing queue thread by an NR main process;
acquiring a new task message, and starting a receiving command processing queue to receive the new task message;
and executing preset processing by the message analysis processing queue according to the type of the new task message, and returning a processing result to the NR main process.
2. The method for optimizing a shell command according to claim 1, wherein the NR system to be newly started sends the shell command to the command processing queue thread by the NR main process, and wherein the method further comprises:
and starting a system call processing queue thread and a return result receiving thread, and calling a shell command execution interface by the NR main process.
3. The shell command optimization method according to claim 2, wherein the message parsing processing queue executes a preset process according to the type of the new task message, and returns a processing result to the NR main process, and thereafter further comprising:
and sending the processing result to the return result receiving thread.
4. The shell command optimization method of claim 2, wherein the obtaining a new task message, starting a receive command processing queue to receive the new task message, comprises:
calling the shell command execution interface to package the message type and assembling a message ID;
and sending the message type and the message ID to a sub-process processing command pipeline.
5. The shell command optimization method according to claim 2, wherein the performing, by the message parsing processing queue, a preset process according to the type of the new task message and returning a processing result to the NR main process includes:
determining shell command execution processing, uploading and downloading task processing and real-time state writing file processing to obtain a processing result;
and packaging the processing result into a message format and sending the message format to the NR main process.
6. The shell command optimization method of claim 3, wherein sending the processing result to the return result receiving thread comprises:
analyzing the processing result in the returned result receiving thread, and calling other thread interfaces to return an analysis result;
and sending the analysis result to a command processing queue in a command processing queue thread.
7. A shell command optimization system, comprising:
the starting module is used for sending a shell command to a command processing queue thread by an NR main process when a new air interface NR system is started;
the processing module is used for acquiring a new task message and starting a receiving command processing queue to receive the new task message;
and the return module is used for executing preset processing by the message analysis processing queue according to the type of the new task message and returning a processing result to the NR main process.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the shell command optimization method according to any of claims 1 to 6.
9. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the steps of the shell command optimization method according to any of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program when executed by a processor implements the steps of the shell command optimization method according to any of claims 1 to 6.
CN202111616733.4A 2021-12-27 2021-12-27 Shell command optimization method and system Active CN114374684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111616733.4A CN114374684B (en) 2021-12-27 2021-12-27 Shell command optimization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111616733.4A CN114374684B (en) 2021-12-27 2021-12-27 Shell command optimization method and system

Publications (2)

Publication Number Publication Date
CN114374684A true CN114374684A (en) 2022-04-19
CN114374684B CN114374684B (en) 2023-05-16

Family

ID=81142813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111616733.4A Active CN114374684B (en) 2021-12-27 2021-12-27 Shell command optimization method and system

Country Status (1)

Country Link
CN (1) CN114374684B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718307A (en) * 2014-12-01 2016-06-29 北京神州泰岳软件股份有限公司 Process management method and process management device
CN107370667A (en) * 2017-07-31 2017-11-21 北京北信源软件股份有限公司 Multi-threading parallel process method and apparatus, computer-readable recording medium and storage control
CN109740342A (en) * 2018-12-20 2019-05-10 深圳市网心科技有限公司 Obtain method, system, computer installation and storage medium that shell executes permission
CN112130972A (en) * 2020-08-24 2020-12-25 北京思特奇信息技术股份有限公司 Task processing method and system
CN113254240A (en) * 2021-06-21 2021-08-13 苏州浪潮智能科技有限公司 Method, system, device and medium for managing control device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718307A (en) * 2014-12-01 2016-06-29 北京神州泰岳软件股份有限公司 Process management method and process management device
CN107370667A (en) * 2017-07-31 2017-11-21 北京北信源软件股份有限公司 Multi-threading parallel process method and apparatus, computer-readable recording medium and storage control
CN109740342A (en) * 2018-12-20 2019-05-10 深圳市网心科技有限公司 Obtain method, system, computer installation and storage medium that shell executes permission
CN112130972A (en) * 2020-08-24 2020-12-25 北京思特奇信息技术股份有限公司 Task processing method and system
CN113254240A (en) * 2021-06-21 2021-08-13 苏州浪潮智能科技有限公司 Method, system, device and medium for managing control device

Also Published As

Publication number Publication date
CN114374684B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
WO2016184175A1 (en) Database processing method and apparatus
CN110557284B (en) Data aggregation method and device based on client gateway
US9730037B2 (en) Cellular data communication for mobile devices
US20140258891A1 (en) Electronic device, storage medium and method for processing information
CN114124451A (en) Internet of things equipment data processing method and system and computer storage medium
WO2020248375A1 (en) Method and system for synchronizing data between databases, computer device and storage medium
CN115004673A (en) Message pushing method and device, electronic equipment and computer readable medium
WO2017185615A1 (en) Method for determining service status of service processing device and scheduling device
CN110442506B (en) Log acquisition method, device, service server, system and storage medium
CN111371585A (en) Configuration method and device for CDN node
CN111526046A (en) Method, device, equipment and storage medium for setting BMC (baseboard management controller) time
CN111698275B (en) Data processing method, device and equipment
CN115268949A (en) Mirror preheating method, device, equipment and storage medium
CN113342503B (en) Real-time progress feedback method, device, equipment and storage medium
CN107862040B (en) Method and device for updating data in cache of application instance and cluster
WO2020077765A1 (en) Webpage loading method, intermediate server, and webpage loading system
CN112511595B (en) Message pushing method and message service system
CN114374684A (en) Shell command optimization method and system
CN111901395A (en) Multi-cluster switching method and device
CN112532664A (en) Data upgrading method and device
CN113326056B (en) Data processing method, data processing device, storage medium and processor
CN115268909A (en) Method, system and terminal for establishing and running construction task at web front end
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
CN106453573A (en) Method and system for processing CGI request in HTTP server
CN112416641A (en) Controlled end node restart detection method in master-slave architecture and master control end node

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231027

Address after: 266107 No. 2, Xiangtan Road, Danshan Industrial Park, Chengyang District, Qingdao, Shandong

Patentee after: Inspur Communication Technology Co.,Ltd.

Address before: 250101 Inspur science and Technology Park, 1036 Inspur Road, hi tech Zone, Jinan City, Shandong Province

Patentee before: Shandong Inspur Scientific Research Institute Co.,Ltd.

TR01 Transfer of patent right