Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

An application running method and application architecture

A technology of application program and operation method, applied in the computer field, which can solve problems such as being unable to be loaded correctly

Active Publication Date: 2020-03-03
SUZHOU METABRAIN INTELLIGENT TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But if there is a system call in the dynamic library, even if this function is not used, the library cannot be loaded correctly before the kernel starts

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An application running method and application architecture
  • An application running method and application architecture
  • An application running method and application architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] This embodiment provides a method for running an application program, such as figure 1 As shown, the method is applied to an application program including a kernel initialization module, a kernel communication module and a business module, and the method includes a S11 communication channel establishment process and an S12 kernel communication process;

[0034] S11. The communication channel establishment process includes: loading a kernel initialization module, a kernel communication module and a service module according to a preset policy;

[0035] S12. The kernel communication process includes: the kernel communication module receives the request from the service module, calls a kernel function to process the request, and returns a processing result to the service module.

[0036] In the embodiment of the present invention, a method for running an application program is proposed, which supports communication between multiple service modules and the kernel.

[0037] ...

Embodiment 2

[0051] This embodiment specifically describes the method in the above embodiment, and the description in the above method embodiment is also applicable to this embodiment. The application program of this embodiment mainly includes the following features:

[0052] (1) Modular design is adopted;

[0053] The application program includes a kernel initialization module, a kernel communication module and a plurality of business modules;

[0054] Such as figure 2 As shown, the kernel communication technology mainly relies on the kernel initialization module and the kernel communication module. During the loading process, these two modules are loaded in order. If any module fails to load, the program exits abnormally.

[0055] After the two modules are loaded successfully, the kernel communication channel is established, and the business modules such as business module 1 and business module 2 that need to communicate with the kernel are started according to the preset order. Failu...

Embodiment 3

[0070] This embodiment provides an application program architecture, and the descriptions in the above method embodiments are also applicable to this embodiment, such as image 3 As shown, the application program includes a kernel initialization module 31, a kernel communication module 31 and a business module 31, wherein:

[0071] The kernel initialization module 31 is used for kernel initialization and kernel startup;

[0072] The kernel communication module 31 is used to establish a kernel communication interface and a registration interface; wherein, the kernel communication interface is used for active communication between the application program and the kernel; and the registration interface is used for active communication between the kernel and the application program.

[0073] In an exemplary embodiment, the kernel multiplexes codes in the service module 31; wherein, the multiplexed codes are implemented in the service module 31 through predefined macros.

[0074] I...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an application program running method and an application program architecture, which can realize the communication between an application program and a kernel. The method is applied to an application program comprising a kernel initialization module, a kernel communication module and a service module, and comprises a communication channel establishment process characterizedby loading the kernel initialization module, the kernel communication module and the service module according to a preset strategy; and a kernel communication process characterized in that the kernelcommunication module receives the request of the service module, calls a kernel function to process the request, and returns a processing result to the service module. By adopting the embodiment of the invention, the communication between a plurality of service modules and the kernel is supported, the service modules are independent of one another and do not influence one another, and the loadingof other service modules is not influenced if the loading of any one service module fails. The system calling ensures the kernel communication, the modular design ensures the service independence, and the compiling configuration ensures the code reuse.

Description

technical field [0001] The invention relates to computer technology, in particular to an application program running method and an application program framework. Background technique [0002] In the prior art, the kernel layer and the application layer can communicate through system calls, virtual file systems and ioctl interfaces: [0003] The system call transmits the request of the application program to the kernel, calls the corresponding kernel function to complete the required processing, and returns the processing result to the business module. [0004] In the file system, we can read and write virtual files as a means of communicating with entities in the kernel, through which virtual files can communicate between the kernel layer and the application layer. Unlike ordinary files, the contents of these virtual files are created dynamically. [0005] If new functions need to be extended, the communication between the kernel layer and the application layer is usually ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/4401G06F9/54
CPCG06F9/4403G06F9/545
Inventor 吴振刚沈忠立
Owner SUZHOU METABRAIN INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products