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

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

Pending Publication Date: 2021-03-09
CSIC WUHAN LINCOM ELECTRONICS
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the case of high software complexity and strict requirements on running timing, these constraints may affect the normal operation of multi-core multi-processor parallel systems. Therefore, it is necessary to solve critical resource allocation, shared resource contention, and dependencies between threads. Issues such as thread synchronization and mutual exclusion in the running order of time

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
  • 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
no application Login to View More
IPC IPC(8): G06F15/177G06F9/52G06F9/54G06F13/24
CPCG06F15/177G06F9/544G06F9/526G06F13/24G06F2209/548Y02D10/00
Inventor 舒红霞胡舒婷常轩
Owner CSIC WUHAN LINCOM ELECTRONICS
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