Patents
Literature
Hiro is an intelligent assistant for R&D personnel, combined with Patent DNA, to facilitate innovative research.
Hiro

47 results about "Readers–writer lock" patented technology

In computer science, a readers–writer (single-writer lock, a multi-reader lock, a push lock, or an MRSW lock) is a synchronization primitive that solves one of the readers–writers problems. An RW lock allows concurrent access for read-only operations, while write operations require exclusive access. This means that multiple threads can read the data in parallel but an exclusive lock is needed for writing or modifying data. When a writer is writing the data, all other writers or readers will be blocked until the writer is finished writing. A common use might be to control access to a data structure in memory that cannot be updated atomically and is invalid (and should not be read by another thread) until the update is complete.

Method and system for optimizing reader-writer lock based on Linux

ActiveCN105224251AReduce starvationReduce or avoid starvationInput/output to record carriersResource utilizationGNU/Linux
The invention discloses a method and a system for optimizing reader-writer locks based on the Linux. The method comprises: receiving a reader lock adding application or a writer lock adding application, and determining whether reader-writer locks are in an applied state before; if the reader-writer locks are not in the applied state, directly processing the reader lock adding application or the writer lock adding application; if the reader-writer locks are in the applied state and are occupied, adding the reader lock adding application in a preset read-write waiting queue, and upgrading read highest priority-first or write highest priority-first recorded in a rwlock structural body; when the occupied reader-writer lock is released, determining whether reader-writer lock adding applications wait in the read-write waiting queue; according to a determination result, and the read highest priority-first and the write highest priority-first, processing the reader lock adding application in the read waiting queue and the writer lock adding application in the write waiting queue. Through the scheme, situation that a reader or a writer starves can be reduced or prevented, so as to improve resource utilization rate of the system and system parallel processing performance.
Owner:INSPUR BEIJING ELECTRONICS INFORMATION IND

Data read-write priority balancing method, system and device and storage medium

PendingCN112416556ASolve the problem of deadlock easily caused by read and write starvationImprove read concurrency performanceProgram initiation/switchingProgram synchronisationEngineeringConcurrency
The invention discloses a data read-write priority balancing method, system and device and a storage medium. The method comprises the steps of: locking a data read-write request through a mutual exclusion lock; judging a read-write priority type mark of the current data according to a reference counter of the current data, wherein the read-write priority type mark comprises no read-write priority,read priority and write priority; judging read-write lock occupation conditions according to reference counters of variables corresponding to the read-write priority type marks, wherein the read-write lock occupation conditions include read lock occupation, write lock exclusive occupation and no lock occupation; obtaining a read-write priority type mark of the data according to the read-write lock occupation condition and the read-write lock maximum allowable number counter residual value; and unlocking the read-write operation of the request data through the mutual exclusion lock. Accordingto the method, the concurrency performance of data reading operation is improved, the system can run stably for a long time, the data high concurrency access performance is excellent, and a good economic effect is achieved in server software product application.
Owner:西安西热电站信息技术有限公司

Certificate information parallel entry method, device and system based on read-write lock mechanism

The invention discloses a certificate information parallel input method, device and system based on a read-write lock mechanism, and the method comprises the steps: enabling a client to input the certificate information of a first pair of public persons in a mode of machine reading, transmitting the certificate information to a background server for automatic auditing, and returning a first automatic auditing result; after the certificate information is added with the updating lock, sending the certificate information and the first automatic auditing result to a cache and synchronization service device, and synchronizing thethe certificate information and the first automatic auditing result to a teller side by the cache and synchronization service device; enabling the teller terminal to take a picture to obtain certificate image information of a second pair of public users, send the certificate image information to the background server for automatic auditing, return a second automaticauditing result, and perform character recognition on the certificate image information to obtain certificate information; and sending the certificate image information with the updating lock, the certificate information of the second pair of public user personnel and a second automatic auditing result to a cache and synchronization service device, and synchronizing the certificate image information, the certificate information of the second pair of public user personnel and the second automatic auditing result to the client by the cache and synchronization service device. According to the invention, the time of the whole process of public users can be shortened.
Owner:BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products