Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

6 results about "Critical section" patented technology

In concurrent programming, concurrent accesses to shared resources can lead to unexpected or erroneous behavior, so parts of the program where the shared resource is accessed are protected. This protected section is the critical section or critical region. It cannot be executed by more than one process at a time. Typically, the critical section accesses a shared resource, such as a data structure, a peripheral device, or a network connection, that would not operate correctly in the context of multiple concurrent accesses.

Spring Session performance optimization method based on partition cache

The invention provides a Spring Session performance optimization method based on partition cache, and relates to the technical field of session management and cache optimization in a distributed system, and the method comprises the steps: storing a mapping relation between a session ID and a final access timestamp by designing concurrent hash mapping caches C1 and C2 which are alternately used, and identifying an active cache by using a current cache label; configuring a timed task to periodically scan the cache, judging a session state according to the critical zone time, and dynamically updating or cleaning cache data; a session object obtained by a thread local variable cache Redis is introduced in Http request processing, so that repeated access is avoided; and a Spring session filter and a warehouse are rewritten to reconstruct session access logic, so that the dependence on Redis is effectively reduced, and the concurrency performance and response efficiency of the system are improved.
Owner:INSPUR GENERSOFT CO LTD

Method and device for reading and writing data

PendingCN122072625ADatabase updatingSoftware engineeringCritical section
The invention provides a method for reading and writing data. The method comprises the steps of judging whether first data in a critical zone resource has an atomic mark or not based on a read instruction for the first data in the critical zone resource; if the first data in the critical zone resource has the atomic mark, copying the locked first data in the critical zone resource so as to generate second data in a non-critical zone resource aiming at the first data, and reading the second data in the non-critical zone resource; or if the first data in the critical zone resource does not have the atomic mark, reading the second data in the non-critical zone resource.
Owner:ROBERT BOSCH GMBH

Task starvation prevention method and system

This application provides a method and system for preventing task starvation. The method includes: acquiring a set of tasks in kernel mode that hold critical section resources awaiting high-priority tasks; performing execution flow truncation on the tasks in the task set, including: dynamically counting based on the length of the critical section release instruction, determining the address of the core execution instruction for critical section release corresponding to the task, constructing the minimum kernel stack of the task, and modifying the program counter pointer and stack pointer of the task to interrupt the original execution flow of the task; and performing targeted release of critical section resources of the task after execution flow truncation based on the dynamic counting of the length of the critical section release instruction. By separating the task execution flow from the resource release operation, this application enables low-priority tasks to release critical section resources without being dependent on the advancement of their own complete business logic, thus achieving batch release of resources for multiple low-priority tasks holding different critical section resources.
Owner:联通云数据有限公司 +1

Real-time performance bottleneck information acquisition method and device, terminal and storage medium

The application discloses a kind of real-time performance bottleneck information acquisition method, device, terminal and storage medium, belong to real-time performance technical field, the method includes: using the kernel probe of being hung on each kernel critical section protection operation function to obtain abnormal event basic information;With resource kernel probe is hung on preset resource tracking function, event resource information is extracted using resource kernel probe;For abnormal event basic information and event resource information establish association;Using the abnormal event basic information and event resource information generates process relationship topological graph.It is convenient for developer to quickly understand the complex interactive state of system through topological graph, and locate the center point of abnormal cluster. It can comprehensively capture the related information of delay exception, and it is convenient for developer to quickly and accurately locate the real-time performance bottleneck point.
Owner:KYLIN CORP

A multi-core system atomic instruction scheduling method, system and device

The present specification relates to the technical field of integrated circuits, and particularly relates to a multi-core system atomic instruction scheduling method, system and device, the method comprising: determining an atomic instruction near-end execution reliability index according to the number of times of successful near-end execution of the atomic instruction in a historical period; scheduling an execution position of the atomic instruction in a hierarchical cache according to the hit condition of to-be-processed data in the hierarchical cache, the data exclusive state of the to-be-processed data and the atomic instruction near-end execution reliability index, to obtain a scheduling execution result; and updating the atomic instruction near-end execution reliability index according to the scheduling execution result. The application can perceive the competition degree of access to a critical section in a multi-core scenario, dynamically adjust atomic instruction near-end execution and remote execution according to the system atomic instruction execution state, and improve the atomic instruction execution efficiency.
Owner:CHENGDU QUNXIN MICROELECTRONICS TECHNOLOGY CO LTD

A method for selecting critical sections of a power grid based on source-load coupling.

PendingCN122315651APower flowPower grid
This invention discloses a method for selecting critical sections of a power grid based on source-load coupling, relating to the field of power grid system dispatching technology. The method includes: calculating the source-load coupling strength based on regional output and regional load; performing power flow calculations on N-1 and N-2 fault sets to obtain fault power flow values, and calculating preset section parameters and fault propagation correlation matrices; selecting preliminary sections based on preset section parameters and preset state screening rules; calculating the disconnection criticality score of the preliminary selected sections based on the source-load coupling strength, preset section parameters, and section fault propagation correlation matrix, and then selecting critical sections of the power grid. This invention addresses the problems in existing technologies that fail to consider the dynamic coupling relationship between source-load fluctuations and fault power flow, and that rely solely on a single load rate during the critical section selection and evaluation process, resulting in severely insufficient risk coverage.
Owner:ECONOMIC TECH RES INST OF STATE GRID ANHUI ELECTRIC POWER