Supercharge Your Innovation With Domain-Expert AI Agents!

Thread active quitting method and device

A kind of thread and active technology, applied in the computer field, can solve the problem of not realizing the active exit of the thread, and achieve the effect of solving the crash

Pending Publication Date: 2021-04-06
BEIJING HOLLYSYS
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The microkernel only provides five extremely primitive functions of thread management, inter-process communication (IPC), virtual memory space, handle space, and device basic unit (interrupt object) in the kernel space, and does not implement the active thread exit function.

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
  • Thread active quitting method and device
  • Thread active quitting method and device
  • Thread active quitting method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0062]The embodiments of the present disclosure will be described in detail below with reference to the drawings. It should be noted that the features in the embodiments and embodiments in the present application may be any combination with each other in the case of an unable conflict.

[0063]figure 1 A schematic diagram of a thread active exit method for the present disclosure embodiment, such asfigure 1 As shown, the thread active exit method of the present embodiment includes:

[0064]S11, when the thread will be activated, the inlet address of the thread in the kernel is set to the address of the first entrance function.

[0065]S12, the thread is activated starting from the address of the first inlet function, the first inlet function acquires the address of the second entrance function corresponding to the user program, and jumps to the second portal function.

[0066]S13, when returning from the second entrance function to the first entrance function, the first entry function deletes th...

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 thread active quitting method and device, and the method comprises the steps: setting an entry address of a thread in a kernel as the address of a first entry function when the thread is about to be activated; wherein the thread is activated to run from the address of the first entry function, and the first entry function acquires the address of a second entry function corresponding to a user program and skips to the second entry function to be executed; enabling the first entry function to delete the thread when returned from the second entry function to the first entry function. According to the method and the device provided by the invention, a thread active quitting function is realized in a user space.

Description

Technical field[0001]The present disclosure relates to the field of computer technology, and more particularly to thread active exit methods and apparatus.Background technique[0002]The PLC controller is widely used in the field of process control, and the safety of the PLC controller is significant. And the company has developed a highly secure micro-core operating system core (referred to as micro-kernel) based on the domestic MIPS architecture processor. The micro-core is running in the kernel space of the operating system. And the company has developed a PLC controller software based on the microcomplicen, which operates user space in the operating system.[0003]According to the PLC controller software requirements, PLC must provide a defense mechanism that the defense mechanism ensures that the micro-core operating system does not collapse when the user's IEC thread is unexpected. The essence of this demand is that the thread active exit function must ensure that the thread is ac...

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 Applications(China)
IPC IPC(8): G06F9/48G06F9/54
CPCG06F9/4843G06F9/542
Inventor 董广谱时乐李蒙
Owner BEIJING HOLLYSYS
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More