Unlock instant, AI-driven research and patent intelligence for your innovation.

Shared resource access method and real-time processing system in real-time processing system

A technology for real-time processing and shared resources, applied in the field of shared resource access methods and real-time processing systems, can solve problems such as system hangs, achieve the effect of enhancing stability and reliability, and solving system hangs

Active Publication Date: 2017-04-12
ZTE CORP
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a method for accessing shared resources in a real-time processing system and a real-time processing system to at least solve the problem that the above-mentioned semaphore locking method is likely to cause the system to hang

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
  • Shared resource access method and real-time processing system in real-time processing system
  • Shared resource access method and real-time processing system in real-time processing system
  • Shared resource access method and real-time processing system in real-time processing system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] This embodiment provides a method for accessing shared resources in a real-time processing system, see figure 1 , the method comprises the following steps (steps S102-106):

[0032] Step S102, start the thread of the real-time processing system;

[0033] Wherein, the real-time processing system of this embodiment includes a plurality of independent processing units (Independent ProcessUnit, IPU), and each IPU includes: configuration command processing (Config Process, CP) thread and real-time information collection and operation (Information Collection and Operation, ICO ) thread, the priority relationship of the thread in the IPU is: the priority of the CP thread>the priority of the ICO thread;

[0034] In actual implementation, one CP thread and one ICO thread can be set in one IPU, and the CP thread and ICO thread in one IPU can share resources. When there are multiple real-time information collection and operation commands, all need to access the shared resources,...

Embodiment 2

[0085] This embodiment provides a real-time processing system, see Figure 7 , the system includes the following modules:

[0086]Thread starting module 72, for starting the thread of real-time processing system; Wherein, real-time processing system comprises a plurality of IPUs, and each IPU comprises: CP thread and ICO thread, and the priority relation of the thread in IPU is: the priority of CP thread >ICO thread priority;

[0087] Configuration command cache module 74, is connected with thread start module 72, is used to receive the configuration command that user inputs, and configuration command is buffered in CDB; Wherein, the priority of the thread priority of CDB

[0088] The resource access module 76 is connected with the configuration command cache module 74, and is used for accessing shared resources according to the priority of each thread in each IPU.

[0089] This embodiment accesses shared resources according to the priority of threads, avoids acc...

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

Disclosed are a shared resource accessing method in a real-time processing system, and a real-time processing system. The method includes: starting up a thread of a real-time processing system, wherein the real-time processing system includes a plurality of IPUs, each IPU including: a CP thread and an ICO thread, the priority relationship of the threads in the IPU being that the priority of the CP thread is higher than that of the ICO thread; receiving a configuration command inputted by a user and buffering the configuration command into a CDB, wherein the thread priority of the CDB is lower than the priority of the ICO thread; and accessing shared resources according to the priority of each thread within each IPU. The present invention solves the problem that the system is easily suspended due to semaphore locking, enhancing the stability and reliability of the system.

Description

technical field [0001] The present invention relates to the communication field, in particular to a method for accessing shared resources in a real-time processing system and a real-time processing system. Background technique [0002] For real-time processing systems, real-time data processing is an important consideration for the system. In order to improve the parallel processing efficiency of data, multi-thread processing mechanism is often adopted. During multi-thread processing, it may happen that two or more threads access the same data at the same time, so it is necessary to consider the problem of access to shared resources in the system. At present, when multiple threads access shared data, it is common practice to introduce semaphore locks to ensure mutually exclusive access to resources. [0003] However, this method of semaphore locking is often prone to problems such as missing locks or deadlocks, making it easy to experience abnormal hangs (that is, crashes)...

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/52
CPCG06F9/52
Inventor 吴青
Owner ZTE CORP