Global semaphore implementation method based on multi-core multi-processor parallel system

A technology of multi-processor and implementation method, applied in the direction of electric digital data processing, instrument, multi-program device, etc., can solve problems affecting the normal operation of multi-core multi-processor parallel system, achieve high speed, high performance, and simplify work Effect

A technology of multi-processor and implementation method, applied in the direction of electric digital data processing, instrument, multi-program device, etc., can solve problems affecting the normal operation of multi-core multi-processor parallel system, achieve high speed, high performance, and simplify work Effect

CN112463716APending Publication Date: 2021-03-09CSIC WUHAN LINCOM ELECTRONICS

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Global semaphore implementation method based on multi-core multi-processor parallel system
  • Global semaphore implementation method based on multi-core multi-processor parallel system
  • Global semaphore implementation method based on multi-core multi-processor parallel system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0064] It should be noted:

[0065] 1) The present embodiment is an embodiment implemented on an embedded multi-core processor;

[0066] 2) The embedded multi-core processor system applied in this embodiment includes two processing cores, and the selected processing core 1 is the main processing core;

[0067] 3) The processors used in this embodiment all support SRIO bus interconnection;

[0068] 4) This embodiment is an SRIO-based multi-core multi-processor parallel system.

[0069] Such as figure 1 Shown, a kind of global semaphore realization method of multi-core multiprocessor parallel system based on SRIO, described global semaphore realization method comprises the following steps:

[0070] S1) Each processing core of the embedded multi-core processor system performs system initialization, and maps a section of shared storage space through SRIO to store the global semaphore, the global semaphore waiting queue and the global semaphore name list.

[0071] S2) Each proc...

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 global semaphore implementation method based on a multi-core multi-processor parallel system. The method comprises the following steps: each processing core performs system initialization and maps a shared storage space through SRIO; each processing core creates a thread, initializes the thread, and establishes a mapping table of the thread and local semaphore; a global semaphore is created from a global semaphore buffer pool corresponding to a processing core to which the thread belongs, and the global semaphore information is filled into a global semaphore name table; and when the thread is suspended on a waiting queue of a global semaphore or is unsuspended, the thread is suspended or unsuspended through a semaphore proxy mechanism. Through a semaphore agent mechanism, the global semaphore is realized by utilizing a software method, the method can be used for occasions of thread synchronization and mutual exclusion among multi-core multiprocessors, and theproblems of thread synchronization and mutual exclusion at the same moment on a multi-core multiprocessor parallel system are solved.

Description

technical field [0001] The invention relates to a method for realizing a global semaphore, in particular to a method for realizing a global semaphore based on a multi-core multiprocessor parallel system, and belongs to the technical field of embedded computers. Background technique [0002] With the development of computer systems and the increasing demand for real-time and parallelism in its application fields, multi-core multi-processor parallel systems have become an important trend in the development of embedded computer systems, and have received close attention from academia and industry. [0003] Generally speaking, in a multi-core multi-processor parallel system, joint work between processor cores and processors is required, and multiple threads running at the same time may need to access or use the same resource; or there is a dependency between threads Relationship, the operation of a thread depends on another thread. In the case of high software complexity and st...

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
09 Mar 2021
Publication
CN112463716A
IPC
G06F15/177; G06F9/52; G06F9/54; G06F13/24
CPC
G06F15/177; G06F9/544; G06F9/526; G06F13/24; G06F2209/548; Y02D10/00
Inventors
舒红霞; 胡舒婷