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

Method for designing micro-kernel architecture by utilizing event bus technology

An event bus and design method technology, applied in program control design, calculation, multi-program device, etc., can solve problems such as difficult to fully utilize multi (core) CPU resources, increase memory management burden, lose type safety, etc. The effect of increasing convenience, reducing overhead, and increasing flexibility

Inactive Publication Date: 2019-08-02
EAST CHINA NORMAL UNIV +1
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, there are some defects in the traditional IPC communication mechanism adopted in the current microkernel operating system: messages (events) in traditional IPC need to be copied, which will bring additional system overhead to the operating system; messages (events) need to be edited before and after sending. The decoding operation will lose type safety at the same time, and it will also bring additional complexity; the call of the event handle only carries event (message) information, and additional heap objects need to be allocated to share data between handles, which increases memory The burden of management; event-driven is often a single-threaded loop, and it is not easy to make full use of multi-core (core) CPU resources

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
  • Method for designing micro-kernel architecture by utilizing event bus technology
  • Method for designing micro-kernel architecture by utilizing event bus technology
  • Method for designing micro-kernel architecture by utilizing event bus technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0091] Such as figure 1 Shown is a schematic diagram of the structure of the microkernel design utilizing the event bus of the present invention, and the present invention comprises the following steps:

[0092] Step 1: Check the initialization code of the microkernel operating system to find out how the thread is established, marked as ready, and added to the ready queue to wait to run. Use this as a reference to create a thread for the event bus and start the thread to prepare for the event insertion in step 2. .

[0093] Step 2: According to the thread of the event bus created in step 1, re-define the event queue and its corresponding operations of inserting, deleting, traversing and obtaining the head node to realize the insertion of events. At the same time, when defining the queue node, the node structure The body should contain the event structure pointer. Such as image 3 As shown, the service call interface (Service CallStub) and event-driven interface (Signal Driv...

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 a method for designing a micro-kernel architecture by utilizing event bus technology, which comprises the following steps of: operating an application program and a system service in a limited user state, and communicating or exchanging data through an event bus; defining an event bus and a corresponding IPC communication primitive in a micro-kernel architecture, and achieving data interaction between user mode processes by calling the IPC primitive to be trapped into a kernel mode by a user mode processes; at the IPC layer, sending events to corresponding event buses, and distributing the events to corresponding user state processes by the event bus scheduler; according to the choice of a caller, applying a service calling interface or an event driving interface,and generating and sending the events through an IPC communication primitive; and after the service is executed, returning the result event to the application program through the IPC primitive. By introducing event bus technology, a novel, efficient and universal IPC mechanism is realized in a zero-copy manner on the basis of abstracting any type of communication data objects into a unified event, and the key performance problem in the design of a micro-kernel operating system is solved.

Description

technical field [0001] The invention relates to the technical field of microkernel operating systems, in particular to a design method of a microkernel architecture using event bus technology. Background technique [0002] The popularity of embedded devices puts forward increasing requirements for the scalability, portability, and compatibility of the operating system. Therefore, only a simplified version of the kernel that provides the core functions of the operating system, that is, the microkernel operating system is becoming more and more popular. Such as NOVA, zephyr and other open source systems. The main feature of the microkernel operating system is that only the most basic functions are provided in the core, and most of the functions in the core of the traditional macrokernel operating system are placed outside the core. Compared with the macro-kernel operating system, although the performance of the micro-kernel operating system has a certain decline, because most...

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
IPC IPC(8): G06F9/54
CPCG06F9/54G06F9/547G06F9/546
Inventor 冯省委周正辉郭建蒲戈光
Owner EAST CHINA NORMAL UNIV
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