CN115373717B - Method for realizing process plug-in by user-defined microkernel - Google Patents

Method for realizing process plug-in by user-defined microkernel Download PDF

Info

Publication number
CN115373717B
CN115373717B CN202211306204.9A CN202211306204A CN115373717B CN 115373717 B CN115373717 B CN 115373717B CN 202211306204 A CN202211306204 A CN 202211306204A CN 115373717 B CN115373717 B CN 115373717B
Authority
CN
China
Prior art keywords
task process
processing
microkernel
application program
task
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
CN202211306204.9A
Other languages
Chinese (zh)
Other versions
CN115373717A (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.)
Chengdu Zhongke Hexun Technology Co ltd
Original Assignee
Chengdu Zhongke Hexun 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 Chengdu Zhongke Hexun Technology Co ltd filed Critical Chengdu Zhongke Hexun Technology Co ltd
Priority to CN202211306204.9A priority Critical patent/CN115373717B/en
Publication of CN115373717A publication Critical patent/CN115373717A/en
Application granted granted Critical
Publication of CN115373717B publication Critical patent/CN115373717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method for realizing process plug-in by a user-defined microkernel, belonging to the technical field of computer information processing. The method comprises the steps of establishing a task process-application program mapping relation table, determining matched application programs for each task process by the aid of the task process-application program mapping relation table, enabling microkernels to accurately switch and update different application programs when processing different task processes, ensuring accurate processing of the task processes, and also enabling plug-in loading processing of the application programs to ensure compatibility of the application programs to the task processes; and after the processing result of the task process is verified, the microkernel is instructed to perform different task process processing operations, so that the task process queue is correctly and completely processed, and the task processing reliability of the microkernel is improved.

Description

Method for realizing process plug-in by user-defined microkernel
Technical Field
The invention relates to the technical field of computer information processing, in particular to a method for realizing process plug-in by a user-defined microkernel.
Background
In the running process of the server, the microkernel in the server is matched with the operating system to process the task processes from different user terminals, and the processed result is returned to the corresponding user terminal. When the server receives the task processes sent by the plurality of user terminals, all the task processes are arranged to form a task integrated queue, and then each task process in the task process queue is processed correspondingly in sequence. Different application programs need to be operated when different task processes in the task process queue are processed, and the microkernel is inevitably required to switch different application programs in the working process, so that the microkernel can possibly have the condition of disordered task process processing, each task process cannot be ensured to be reliably processed, even the condition of wrong task process processing can occur, and the task processing reliability of the microkernel is reduced.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method for realizing process plug-in by a user-defined microkernel, which comprises the steps of constructing a task process-application program mapping relation table according to attribute information of each task process contained in a task process queue in the microkernel, and determining an application program matched with a task process currently executed by the microkernel by combining the current kernel execution environment type of the microkernel; then, plug-in loading processing is carried out on the application program, and a processing result of the application program on the currently executed task process is obtained; if the processing result has no processing error, indicating the microkernel to process the next task process on the task process queue; if the processing result has a processing error, the microkernel is instructed to re-execute the processing of the current task process, and a task process-application program mapping relation table is established to determine a matched application program for each task process, so that the microkernel can accurately switch and update different application programs when processing different task processes, the task process can be accurately processed in a targeted manner, and the application program can be loaded and processed in a plug-in manner, and the compatibility of the application program to the task process can be ensured; and after the processing result of the task process is verified, the microkernel is instructed to perform different task process processing operations, so that the task process queue is correctly and completely processed, and the task processing reliability of the microkernel is improved.
The invention provides a method for realizing process plug-in by a user-defined microkernel, which comprises the following steps:
the method comprises the following steps of S1, acquiring current task process state information of a microkernel, and forming a task process queue by all current task processes of the microkernel according to the task process state information; acquiring attribute information of each task process contained in the task process queue, and constructing a task process-application program mapping relation table according to the attribute information;
s2, judging whether the microkernel needs to change a kernel execution environment or not according to the current processing state information of the microkernel to the task process queue; determining an application program matched with the task process currently executed by the microkernel according to the current kernel execution environment type and the task process-application program mapping relation table, and updating the application program;
s3, after plug-in loading processing is carried out on the application program, a processing result of the application program on the currently executed task process is obtained; verifying the processing result, and determining whether the processing result has a processing error;
s4, if the processing result has no processing error, indicating the microkernel to perform next task process processing on the task process queue; and if the processing result has a processing error, indicating the microkernel to re-execute the processing of the current task process.
In an embodiment disclosed in the present application, in step S1, current task process state information of a microkernel is obtained, and according to the task process state information, all current task processes of the microkernel are combined into a task process queue, which specifically includes:
acquiring terminal identity information of all user terminals currently connected with an operating system corresponding to the microkernel; acquiring a user terminal task process request processing log information matched with the terminal identity information from a log database of the operating system;
analyzing and processing the user terminal task process request processing log information, and determining whether an illegal task process request processing behavior exists in the corresponding user terminal; if yes, marking the corresponding user terminal as an abnormal user terminal; if not, calibrating the corresponding user terminal as a normal user terminal;
and forming a task process queue by the task processes from all the normal user terminals according to the first-come-to-last sequence information of the task process requests sent to the operating system by all the normal user terminals.
In an embodiment disclosed in the present application, in step S1, attribute information of each task process included in the task process queue is obtained, and a task process-application mapping relationship table is constructed according to the attribute information, specifically including:
acquiring process file suffix information of each task process contained in the task process queue, and taking the process file suffix information as attribute information of the task process;
positioning an application program matched with the task process in the operating system according to the process file suffix information;
and according to the name information of the task process, the program name information and the program storage path information of the matched application program, constructing a task process-application program mapping relation table between the task process and the matched application program.
In an embodiment disclosed in the present application, in step S2, determining, according to the processing state information of the microkernel to the task process queue, whether the microkernel needs to change a kernel execution environment includes:
positioning the task process which is currently processed by the microkernel in the task process queue in real time, acquiring a real-time processing progress value of the positioned task process, and if the real-time processing progress value is greater than or equal to a preset progress threshold value, judging that the microkernel does not need to change a kernel execution environment; and if the real-time processing progress value is smaller than a preset progress threshold value, judging that the microkernel needs to change the kernel execution environment.
In an embodiment disclosed in the present application, in the step S2, after it is determined that the microkernel needs to change the kernel execution environment, the method further includes:
acquiring kernel execution environment parameters matched with the positioned task process, wherein the kernel execution environment parameters comprise a kernel frame type and a kernel drive type corresponding to the kernel execution environment;
and constructing and forming a virtual kernel frame consistent with the kernel frame type and a virtual kernel driver consistent with the kernel driver type on the microkernel according to the kernel frame type and the kernel driver type.
In an embodiment disclosed in the present application, in step S2, determining, according to the current kernel execution environment type and the task process-application mapping relationship table, an application program that matches the task process currently executed by the microkernel, and performing update processing on the application program, specifically including:
searching an application program matched with the positioned task process from the operating system according to the task process-application program mapping relation table;
judging whether the application program is compatible with the kernel frame type and the kernel drive type of the current kernel execution environment; if the application programs are compatible with the application programs, updating the application programs; and if the application program is not compatible with the application program, performing patching updating processing on the application program.
In an embodiment disclosed in the present application, in step S3, after performing plug-in loading processing on the application program, acquiring a processing result of the application program on the currently executed task process, specifically including:
according to the task data type of the positioned task process, selecting a matched plug-in from a plug-in library of the operating system, and loading the application program by the selected plug-in through a program interface of the microkernel;
and after the plug-in loading processing of the application program is finished, acquiring a processing result of the application program on the positioned task process, and packaging the processing result to obtain a processing result data packet.
In an embodiment disclosed in the present application, in step S3, performing verification processing on the processing result, and determining whether the processing result has a processing error, specifically includes:
extracting a plurality of data fragments from the processing result data packet, performing data content identification processing on the data fragments, and judging whether the data fragments contain messy code data or not;
if the data segments exceeding the preset number threshold value in all the extracted data segments contain messy code data, determining that the processing result has processing errors; otherwise, determining that the processing result has no processing error.
In an embodiment disclosed in the present application, in the step S4, if there is no processing error in the processing result, instructing the microkernel to perform the next task process processing on the task process queue, specifically including:
and if the processing result has no processing error, returning the corresponding processing result data packet to the corresponding user terminal, simultaneously indicating the microkernel to delete the currently executed task process, and processing the next task process in the task process queue, which is adjacent to the currently executed task process.
In an embodiment disclosed in the present application, in step S4, if there is a processing error in the processing result, instructing the microkernel to re-execute the processing on the current task process, specifically including:
and if the processing result has a processing error, discarding the corresponding processing result data packet, simultaneously instructing the microkernel to reserve the currently executed task process, and instructing the microkernel to re-execute the processing of the current task process.
Compared with the prior art, the method for realizing the process plug-in of the user-defined microkernel constructs a task process-application program mapping relation table according to the attribute information of each task process contained in the task process queue in the microkernel, and determines the application program matched with the task process currently executed by the microkernel by combining the current kernel execution environment type of the microkernel; then, plug-in loading processing is carried out on the application program, and a processing result of the application program on the currently executed task process is obtained; if the processing result has no processing error, indicating the microkernel to process the next task process on the task process queue; if the processing result has a processing error, the microkernel is instructed to re-execute the processing of the current task process, and a task process-application program mapping relation table is established to determine a matched application program for each task process, so that the microkernel can accurately switch and update different application programs when processing different task processes, the task process can be accurately processed in a targeted manner, the application program can be loaded and processed, and the compatibility of the application program to the task process can be ensured; and after the processing result of the task process is verified, the microkernel is instructed to perform different task process processing operations, so that the task process queue is correctly and completely processed, and the task processing reliability of the microkernel is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow diagram of a method for implementing process plug-in by a custom microkernel provided by the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for implementing process plug-in by a custom microkernel according to an embodiment of the present invention. The method for realizing the process plug-in by the user-defined microkernel comprises the following steps:
step S1, acquiring the current task process state information of a microkernel, and forming a task process queue by all current task processes of the microkernel according to the task process state information; acquiring attribute information of each task process contained in the task process queue, and constructing a task process-application program mapping relation table according to the attribute information;
s2, judging whether the microkernel needs to change the kernel execution environment or not according to the current processing state information of the microkernel to the task process queue; determining an application program matched with the task process currently executed by the microkernel according to the type of the current kernel execution environment and the task process-application program mapping relation table, and updating the application program;
s3, after plug-in loading processing is carried out on the application program, a processing result of the application program on the currently executed task process is obtained; verifying the processing result and determining whether the processing result has processing errors;
step S4, if the processing result has no processing error, the microkernel is instructed to process the next task process of the task process queue; and if the processing result has a processing error, indicating the microkernel to re-execute the processing of the current task process.
The beneficial effects of the above technical scheme are: the method for realizing process plug-in of the user-defined microkernel comprises the steps of constructing a task process-application program mapping relation table according to attribute information of each task process contained in a task process queue in the microkernel, and determining an application program matched with a task process currently executed by the microkernel by combining the type of the current kernel execution environment of the microkernel; then, plug-in loading processing is carried out on the application program, and a processing result of the application program on the currently executed task process is obtained; if the processing result has no processing error, the microkernel is instructed to process the next task process to the task process queue; if the processing result has a processing error, the microkernel is instructed to re-execute the processing of the current task process, and a task process-application program mapping relation table is established to determine a matched application program for each task process, so that the microkernel can accurately switch and update different application programs when processing different task processes, the task process can be accurately processed in a targeted manner, the application program can be loaded and processed, and the compatibility of the application program to the task process can be ensured; and after the processing result of the task process is verified, the microkernel is instructed to perform different task process processing operations, so that the task process queue is correctly and completely processed, and the task processing reliability of the microkernel is improved.
Preferably, in step S1, obtaining the current task process state information of the microkernel, and forming a task process queue by all current task processes of the microkernel according to the task process state information, specifically including:
acquiring terminal identity information of all user terminals currently connected with an operating system corresponding to the microkernel; acquiring a user terminal task process request processing log information matched with the terminal identity information from a log database of the operating system;
analyzing and processing the log information of the task process request processing of the user terminal, and determining whether an illegal task process request processing behavior exists in the corresponding user terminal; if yes, marking the corresponding user terminal as an abnormal user terminal; if not, calibrating the corresponding user terminal as a normal user terminal;
and forming a task process queue by the task processes from all the normal user terminals according to the first-to-last sequence information of the task process requests sent to the operating system by all the normal user terminals.
The beneficial effects of the above technical scheme are: by the mode, identity information authentication and task process request processing log information analysis can be performed on all user terminals connected with the server corresponding to the microkernel, so that abnormal user terminals and normal user terminals can be distinguished, the task process queue formed by the microkernel only when the task process from the normal user terminal is formed is ensured, and the information security of the task process in the task process queue is ensured.
Preferably, in step S1, attribute information of each task process included in the task process queue is obtained, and a task process-application mapping relationship table is constructed according to the attribute information, which specifically includes:
acquiring process file suffix information of each task process contained in the task process queue, and taking the process file suffix information as attribute information of the task process;
positioning an application program matched with the task process in the operating system according to the process file suffix information;
and according to the name information of the task process, the program name information and the program storage path information of the matched application program, constructing a task process-application program mapping relation table between the task process and the matched application program.
The beneficial effects of the above technical scheme are: by the method, the process file suffix information of each task process contained in the task process queue is used as a reference, the matched application program is selected, the selected application program can be ensured to normally process the task process, and the information correctness of the task process-application program mapping relation table is ensured, so that the microkernel can be accurately indicated to switch the proper application program subsequently by using the mapping relation table as a basis.
Preferably, in step S2, determining whether the microkernel needs to change the kernel execution environment according to the processing state information of the microkernel to the task process queue, specifically including:
positioning the task process of the microkernel currently processing the task process in the task process queue in real time, acquiring a real-time processing progress value of the positioned task process, and if the real-time processing progress value is greater than or equal to a preset progress threshold value, judging that the microkernel does not need to change a kernel execution environment; and if the real-time processing progress value is smaller than a preset progress threshold value, judging that the microkernel needs to change the kernel execution environment.
The beneficial effects of the above technical scheme are: by the method, the real-time processing progress value of the task process processed by the current microkernel in the task process queue in real time is taken as a reference, if the real-time processing progress value is greater than or equal to the preset progress threshold, it is indicated that the current kernel execution environment of the microkernel is compatible with the task progress, and if the real-time processing progress value is smaller than the preset progress threshold, it is indicated that the current kernel execution environment of the microkernel is not compatible with the task progress, at the moment, the kernel execution environment needs to be changed on the microkernel, so that the microkernel can provide a compatible operation environment for task progress processing.
Preferably, in step S2, after determining that the microkernel needs to change the kernel execution environment, the method further includes:
acquiring kernel execution environment parameters matched with the positioned task process, wherein the kernel execution environment parameters comprise a kernel frame type and a kernel drive type corresponding to the kernel execution environment;
and constructing and forming a virtual kernel frame which is consistent with the kernel frame type and a virtual kernel driver which is consistent with the kernel driver type on the microkernel according to the kernel frame type and the kernel driver type.
The beneficial effects of the above technical scheme are: by the mode, when the microkernel needs to change the kernel execution environment, the microkernel can be compatible with the task process by constructing the virtual kernel frame which is consistent with the kernel frame type and the virtual kernel driver which is consistent with the kernel driver type on the microkernel by taking the kernel execution environment parameters such as the kernel frame type and the kernel driver type which are matched with the task process as the reference.
Preferably, in step S2, determining an application program matched with the task process currently executed by the microkernel according to the current kernel execution environment type and the task process-application program mapping relationship table, and performing update processing on the application program, specifically including:
searching an application program matched with the positioned task process from the operating system according to the task process-application program mapping relation table;
judging whether the application program is compatible with the kernel frame type and the kernel drive type of the current kernel execution environment; if the application program is compatible with the application program, the application program is not updated; and if the application program is not compatible with the application program, performing patching updating processing on the application program.
The beneficial effects of the above technical scheme are: by the method, the task process-application program mapping relation table is used as a reference, a proper application program is selected, and when the application program is incompatible with the kernel framework type and the kernel drive type of the current kernel execution environment, the application program is subjected to patching upgrading processing, so that the data processing performance of the application program is improved.
Preferably, in step S3, after performing plug-in loading processing on the application program, acquiring a processing result of the application program on the currently executed task process, specifically including:
selecting a matched plug-in from a plug-in library of the operating system according to the task data type of the positioned task process, and loading the application program by the selected plug-in through a program interface of the microkernel;
and after the plug-in loading processing of the application program is finished, acquiring a processing result of the application program on the positioned task process, and packaging the processing result to obtain a processing result data packet.
The beneficial effects of the above technical scheme are: by the method, the task data type of the task process is used as a reference, the matched plug-in is selected to load the application program, and the application degree can accurately perform task process calculation processing.
Preferably, in step S3, performing verification processing on the processing result, and determining whether the processing result has a processing error, specifically including:
extracting a plurality of data fragments from the processing result data packet, carrying out data content identification processing on the data fragments, and judging whether the data fragments contain messy code data or not;
if the data segments exceeding the preset number threshold value in all the extracted data segments contain messy code data, determining that a processing error exists in the processing result; otherwise, determining that the processing result has no processing error.
The beneficial effects of the above technical scheme are: through the method, the condition of the messy code data of the data segment is judged in a data segment sampling analysis mode, so that whether the processing error exists in the processing result is judged efficiently.
Preferably, in the step S4, if there is no processing error in the processing result, the method indicates the microkernel to perform the next task process processing on the task process queue, which specifically includes:
and if the processing result has no processing error, returning the corresponding processing result data packet to the corresponding user terminal, simultaneously indicating the microkernel to delete the currently executed task process, and processing the next task process in the task process queue, which is adjacent to the currently executed task process.
The beneficial effects of the above technical scheme are: by the mode, when the processing result has no processing error, the processing result data packet is returned to the user terminal in time, the currently executed task progress is deleted, and the microkernel can rapidly and comprehensively process the task progress queue.
Preferably, in step S4, if there is a processing error in the processing result, instructing the microkernel to re-execute the processing on the current task process, which specifically includes:
and if the processing result has a processing error, discarding the corresponding processing result data packet, and simultaneously instructing the microkernel to reserve the currently executed task process and instruct the microkernel to re-execute the processing of the current task process.
The beneficial effects of the above technical scheme are: through the mode, when the processing result has the processing error, the currently executed task process is processed again until the processing result obtained again has no processing error, and accurate calculation of the task process queue is ensured.
According to the content of the embodiment, the method for realizing the process plug-in by the user-defined microkernel constructs a task process-application program mapping relation table according to the attribute information of each task process contained in the task process queue in the microkernel, and determines the application program matched with the task process currently executed by the microkernel by combining the current kernel execution environment type of the microkernel; then, plug-in loading processing is carried out on the application program, and a processing result of the application program on the currently executed task process is obtained; if the processing result has no processing error, indicating the microkernel to process the next task process on the task process queue; if the processing result has a processing error, the microkernel is instructed to re-execute the processing of the current task process, and a task process-application program mapping relation table is established to determine a matched application program for each task process, so that the microkernel can accurately switch and update different application programs when processing different task processes, the task process can be accurately processed in a targeted manner, and the application program can be loaded and processed in a plug-in manner, and the compatibility of the application program to the task process can be ensured; and after the processing result of the task process is verified, the microkernel is instructed to perform different task process processing operations, so that the task process queue is correctly and completely processed, and the task processing reliability of the microkernel is improved.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. The method for realizing process plug-in by the user-defined microkernel is characterized by comprising the following steps of:
the method comprises the following steps of S1, acquiring current task process state information of a microkernel, and forming a task process queue by all current task processes of the microkernel according to the task process state information; acquiring attribute information of each task process contained in the task process queue, and constructing a task process-application program mapping relation table according to the attribute information;
s2, judging whether the microkernel needs to change a kernel execution environment or not according to the current processing state information of the microkernel to the task process queue; determining an application program matched with the task process currently executed by the microkernel according to the current kernel execution environment type and the task process-application program mapping relation table, and updating the application program;
s3, after plug-in loading processing is carried out on the application program, a processing result of the application program on the currently executed task process is obtained; verifying the processing result, and determining whether the processing result has a processing error;
s4, if the processing result has no processing error, indicating the microkernel to perform next task process processing on the task process queue; and if the processing result has a processing error, indicating the microkernel to re-execute the processing of the current task process.
2. The method for implementing process plug-in by custom microkernel according to claim 1, characterized by:
in step S1, acquiring current task process state information of a microkernel, and forming a task process queue by all current task processes of the microkernel according to the task process state information, specifically including:
acquiring terminal identity information of all user terminals currently connected with an operating system corresponding to the microkernel; acquiring a user terminal task process request processing log information matched with the terminal identity information from a log database of the operating system;
analyzing and processing the log information of the task process request processing of the user terminal, and determining whether an illegal task process request processing behavior exists in the corresponding user terminal; if yes, marking the corresponding user terminal as an abnormal user terminal; if not, calibrating the corresponding user terminal as a normal user terminal;
and forming a task process queue by the task processes from all the normal user terminals according to the first-to-last sequence information of the task process requests sent to the operating system by all the normal user terminals.
3. The method for realizing process plug-in by the custom microkernel as claimed in claim 2, wherein:
in step S1, obtaining attribute information of each task process included in the task process queue, and constructing a task process-application program mapping relationship table according to the attribute information, specifically including:
acquiring process file suffix information of each task process contained in the task process queue as attribute information of the task process;
positioning an application program matched with the task process in the operating system according to the process file suffix information;
and according to the name information of the task process, the program name information and the program storage path information of the matched application program, constructing a task process-application program mapping relation table between the task process and the matched application program.
4. The method for realizing the process plug-in by the custom microkernel as claimed in claim 3, wherein:
in step S2, determining whether the microkernel needs to change a kernel execution environment according to the processing state information of the microkernel to the task process queue, specifically including:
positioning the task process which is currently processed by the microkernel in the task process queue in real time, acquiring a real-time processing progress value of the positioned task process, and if the real-time processing progress value is greater than or equal to a preset progress threshold value, judging that the microkernel does not need to change a kernel execution environment; and if the real-time processing progress value is smaller than a preset progress threshold value, judging that the microkernel needs to change the kernel execution environment.
5. The method for realizing process plug-in by the custom microkernel as claimed in claim 4, wherein:
in step S2, after determining that the microkernel needs to change the kernel execution environment, the method further includes:
acquiring kernel execution environment parameters matched with the positioned task process, wherein the kernel execution environment parameters comprise a kernel frame type and a kernel drive type corresponding to a kernel execution environment;
and constructing and forming a virtual kernel frame consistent with the kernel frame type and a virtual kernel driver consistent with the kernel driver type on the microkernel according to the kernel frame type and the kernel driver type.
6. The method for realizing process plug-in by the custom microkernel as claimed in claim 5, wherein:
in step S2, determining an application program matched with the task process currently executed by the microkernel according to the current kernel execution environment type and the task process-application program mapping relationship table, and performing update processing on the application program, specifically including:
searching an application program matched with the positioned task process from the operating system according to the task process-application program mapping relation table;
judging whether the application program is compatible with the kernel frame type and the kernel drive type of the current kernel execution environment; if the application program is compatible with the application program, the application program is not updated; and if the application programs are not compatible with the application programs, performing patching updating processing on the application programs.
7. The method for implementing process plug-in by custom microkernel according to claim 6, characterized by:
in step S3, after performing plug-in loading processing on the application program, obtaining a processing result of the application program on the currently executed task process, specifically including:
selecting a matched plug-in from a plug-in library of the operating system according to the task data type of the positioned task process, and loading the application program by the selected plug-in through a program interface of the microkernel;
and after the plug-in loading processing of the application program is finished, acquiring a processing result of the application program on the positioned task process, and packaging the processing result to obtain a processing result data packet.
8. The method for implementing process plug-in by custom microkernel according to claim 7, characterized by:
in step S3, performing verification processing on the processing result, and determining whether the processing result has a processing error, specifically including:
extracting a plurality of data fragments from the processing result data packet, carrying out data content identification processing on the data fragments, and judging whether the data fragments contain messy code data or not;
if the data segments exceeding the preset number threshold value in all the extracted data segments contain messy code data, determining that the processing result has processing errors; otherwise, determining that the processing result has no processing error.
9. The method for implementing process plug-in by custom microkernel according to claim 8, characterized by:
in the step S4, if there is no processing error in the processing result, the microkernel is instructed to perform the next task process processing on the task process queue, which specifically includes:
and if the processing result has no processing error, returning the corresponding processing result data packet to the corresponding user terminal, simultaneously instructing the microkernel to delete the currently executed task process, and processing the next task process which is adjacent to the currently executed task process in the task process queue.
10. The method of claim 9, wherein the step of implementing process plug-ins by custom microkernels comprises the steps of:
in step S4, if the processing result has a processing error, the microkernel is instructed to re-execute the processing of the current task process, which specifically includes:
and if the processing result has a processing error, discarding the corresponding processing result data packet, and simultaneously instructing the microkernel to reserve the currently executed task process and instructing the microkernel to re-execute the processing of the current task process.
CN202211306204.9A 2022-10-25 2022-10-25 Method for realizing process plug-in by user-defined microkernel Active CN115373717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211306204.9A CN115373717B (en) 2022-10-25 2022-10-25 Method for realizing process plug-in by user-defined microkernel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211306204.9A CN115373717B (en) 2022-10-25 2022-10-25 Method for realizing process plug-in by user-defined microkernel

Publications (2)

Publication Number Publication Date
CN115373717A CN115373717A (en) 2022-11-22
CN115373717B true CN115373717B (en) 2022-12-16

Family

ID=84074168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211306204.9A Active CN115373717B (en) 2022-10-25 2022-10-25 Method for realizing process plug-in by user-defined microkernel

Country Status (1)

Country Link
CN (1) CN115373717B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657142A (en) * 2015-02-12 2015-05-27 中国科学院计算机网络信息中心 CCFD (China Computational Fluid Dynamics) system based on OSGi (Open Service Gateway Initiative) technology
CN109240758A (en) * 2018-07-25 2019-01-18 武汉精测电子集团股份有限公司 A kind of method and microkernel architecture for supporting card i/f synchronous asynchronous unified call
CN111427548A (en) * 2020-03-18 2020-07-17 成都中科合迅科技有限公司 Plug-in development method and system based on process
CN111596969A (en) * 2020-05-09 2020-08-28 中国电子科技集团公司第二十八研究所 Software architecture method based on microkernel plus plug-in

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080148277A1 (en) * 2006-12-18 2008-06-19 Nokia Corporation Optimizing calls from a managed runtime environment to microkernel extended functionality

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657142A (en) * 2015-02-12 2015-05-27 中国科学院计算机网络信息中心 CCFD (China Computational Fluid Dynamics) system based on OSGi (Open Service Gateway Initiative) technology
CN109240758A (en) * 2018-07-25 2019-01-18 武汉精测电子集团股份有限公司 A kind of method and microkernel architecture for supporting card i/f synchronous asynchronous unified call
CN111427548A (en) * 2020-03-18 2020-07-17 成都中科合迅科技有限公司 Plug-in development method and system based on process
CN111596969A (en) * 2020-05-09 2020-08-28 中国电子科技集团公司第二十八研究所 Software architecture method based on microkernel plus plug-in

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于微内核结构智能测控系统软件设计方法研究;潘锐;《中国优秀硕士学位论文全文数据库信息科技辑》;20120515(第05期);I140-613 *

Also Published As

Publication number Publication date
CN115373717A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN109375945B (en) Firmware version detection method and vulnerability repair rate evaluation method for Internet of things equipment
CN110166543B (en) Application program processing method and device and computer equipment
CN109246163B (en) Terminal information identification method and device
CN110730107A (en) Test data generation method and device, computer equipment and storage medium
CN108491321B (en) Method and device for determining test case range and storage medium
CN107223257B (en) Test method, test server and test system
CN110781070A (en) Big data test verification method and device, computer equipment and storage medium
CN111475494A (en) Mass data processing method, system, terminal and storage medium
CN109067605B (en) Storage subsystem fault diagnosis method and device, terminal and storage medium
CN115373717B (en) Method for realizing process plug-in by user-defined microkernel
CN112433935A (en) Test method, test device, electronic equipment and storage medium
US20140298002A1 (en) Method and device for identifying a disk boot sector virus, and storage medium
CN109298928B (en) Service processing method and device
CN111444208A (en) Data updating method and related equipment
CN116561818A (en) Industrial control system internal logic analysis method, system, equipment and medium
CN115904978A (en) Redfish interface testing method, computing device and storage medium
CN111538542B (en) System configuration method and related device
CN113609178A (en) Data pushing method, device, equipment and storage medium
CN111666471A (en) Information acquisition method and device, computer equipment and storage medium
CN112817816A (en) Embedded point processing method and device, computer equipment and storage medium
CN111338677A (en) Component and drive association validity verification method, system, terminal and storage medium
CN110659504A (en) Vulnerability attack verification method, vulnerability attack verification system and storage medium
JPWO2020065778A1 (en) Information processing equipment, control methods, and programs
CN112433743B (en) File updating method and device, electronic equipment and storage medium
CN114880157B (en) Fault injection method and device

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Customized Microkernel Implementation Method for Process Plugging

Granted publication date: 20221216

Pledgee: Chengdu Rural Commercial Bank Co.,Ltd. Juqiao sub branch

Pledgor: Chengdu Zhongke Hexun Technology Co.,Ltd.

Registration number: Y2024980009484

PE01 Entry into force of the registration of the contract for pledge of patent right