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

Accessing method for real-time processing shared resource in system and 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: 2012-12-19
ZTE CORP
View PDF3 Cites 6 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
  • Accessing method for real-time processing shared resource in system and real-time processing system
  • Accessing method for real-time processing shared resource in system and real-time processing system
  • Accessing method for real-time processing shared resource in system and 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 Process Unit, 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 relation of thread in IPU is: the priority of CP thread > the priority of 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, you can set these...

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 starting 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 ...

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 an accessing method for real-time processing a shared resource in a system and a real-time processing system. The method comprises the following steps: starting a thread of the real-time processing system, wherein the real-time processing system comprises a plurality of input preparation units (IPU), every IPU comprises a content provider (CP) thread and an icon file (ICO) thread; the relative priorities between the threads in the IPU is that the priority level of the CP thread is greater than that of the ICO thread; receiving a configuring order of a user input and buffering the configuring order in a command descriptor block (CDB), the priority level of the CDB thread is less than that of the ICO thread; and in every IPU, the shared resource can be accessed according to the priority level of every thread. Through the invention, the problem that the system hanging is easy to be caused by semaphore locking method is resolved, the stability and the reliability of the system are enhanced.

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
IPC IPC(8): G06F9/46G06F9/48H04L12/56
CPCH04L12/56G06F9/46G06F9/48G06F9/52
Inventor 吴青
Owner ZTE CORP
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