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

Interprocess critical zone processing method

A processing method and critical section technology, applied in the direction of electrical digital data processing, program synchronization, multi-program device, etc., can solve problems such as the inability to guarantee the real-time and high efficiency of the b process, so as to ensure mutually exclusive access and realize simple Effect

Pending Publication Date: 2022-05-27
北京君正集成电路股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In another case, if process a uses critical resources for a long time, process b, which needs to use critical resources, can only wait, and the real-time and high efficiency of process b cannot be guaranteed

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
  • Interprocess critical zone processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to understand the technical content and advantages of the present invention more clearly, the present invention will now be further described in detail with reference to the accompanying drawings.

[0033] like figure 1 As shown, the present application relates to a method for processing an inter-process critical section, the method comprising the following steps:

[0034] S1, before using the critical resource, the nth process judges whether the critical resource is occupied, where n is a positive integer greater than or equal to 2, if the critical resource is occupied, find an effective process that is using the critical resource;

[0035] S2, suspend using the effective process that is using the critical resource, and then the nth process enters the critical area to access the critical resource to perform related operations;

[0036] S3, the operation of the effective process is resumed after the nth process exits the critical area.

[0037] Further, in a ...

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 provides an inter-process critical zone processing method, which comprises the following steps that S1, before an nth process uses a critical resource, whether the critical resource is occupied is judged, n is a positive integer greater than or equal to 2, and if the critical resource is occupied, an effective process using the critical resource is found; s2, suspending the use of the effective process which is using the critical resource, and then enabling the nth process to enter a critical area to access the critical resource to execute related operation; and S3, after the nth process exits from the critical region, recovering the operation of the effective process. The method is easy to implement, mutual exclusion access of the critical resources can be effectively guaranteed, and meanwhile the problems that one process occupies the critical resources for a long time, and other processes using the critical resources are poor in running real-time performance and low in efficiency are solved.

Description

technical field [0001] The invention relates to the technical field of print processing, in particular to a method for processing an inter-process critical section. Background technique [0002] Critical resources are only allowed to be used by one process at a time. Hardware that belongs to critical resources includes printers, tape drives, etc., and software includes message buffer queues, variables, arrays, buffers, and so on. Mutual exclusion should be adopted among the processes to realize the sharing of such resources. [0003] The piece of code in each process that accesses critical resources is called the critical section. Obviously, if each process can be guaranteed to enter its own critical area mutually exclusive, the mutually exclusive access of each process to the critical resource can be realized. For this reason, before each process enters the critical section, it should first check the critical resource to be accessed to see if it is being accessed. If the...

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/46G06F9/52
CPCG06F9/468G06F9/526
Inventor 邱东升赵冉
Owner 北京君正集成电路股份有限公司
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