Multi-user collaborative method and system for SNP genotyping experimental systems
By managing multi-user access requests through a fine-grained resource locking mechanism, the problem of low efficiency in multi-user collaboration in the SNP genotyping experimental system is solved, achieving efficient resource utilization and data consistency, and supporting cross-regional and cross-departmental collaborative work.
Patent Information
- Application Number
- CN202611246267.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-17
- Publication Date
- 2026-11-06
AI Technical Summary
Existing SNP genotyping experimental systems cannot be accessed and operated by multiple people simultaneously, resulting in low collaboration efficiency, high risk of data inconsistency, low resource utilization, poor scalability, and inability to support cross-regional and cross-departmental collaborative work.
A fine-grained resource lock mechanism is adopted, which manages multi-user access requests through lock IDs, enabling parallel processing and conflict detection of fine-grained resource locks. Combined with real-time state synchronization and session state management, data consistency and resource sharing are ensured.
It enables efficient resource utilization under multi-user collaboration, improves collaboration efficiency, ensures data consistency and security, and supports cross-regional and cross-departmental collaborative work.
Smart Images

Figure CN123048244A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of SNP genotyping experimental technology, and in particular to a multi-user collaborative method and system for SNP genotyping experimental systems. Background Technology
[0002] Currently, most SNP genotyping experimental systems on the market adopt a single-user working mode. The characteristics of their technical architecture include: single-user mode: the system only supports login and operation by a single user, and cannot enable multiple users to access it simultaneously; serial operation: experimental design, data processing, result analysis and other steps must be executed in sequence; local storage: experimental data, template files, etc. are stored locally, lacking unified central management; no conflict detection: there is no resource access conflict detection mechanism, which can easily lead to data overwriting when multiple users access it.
[0003] Existing SNP genotyping experimental systems suffer from the following technical deficiencies: 1. Low collaboration efficiency: Multiple researchers cannot participate in the same experimental project simultaneously, leading to wasted time. Coordination is often achieved through document transfer or verbal communication, which is inefficient and prone to errors. Real-time monitoring of other members' progress and status is also impossible. 2. Data consistency risks: The lack of concurrency control mechanisms allows for simultaneous editing by multiple researchers, potentially resulting in data conflicts and overwriting. Version control is absent, making it impossible to track modification history and roll back errors. Data security is compromised, posing a risk of data loss. 3. Low resource utilization: Experimental equipment and analytical tools cannot be effectively shared, hindering the parallel processing of multiple experimental tasks. The system lacks a unified resource scheduling and management mechanism. 4. Poor scalability: As laboratories expand, the single-user model cannot meet growing demands. It cannot support cross-regional and cross-departmental collaborative work, and the system architecture does not support horizontal scaling and load balancing.
[0004] Therefore, a multi-user collaborative method and system for SNP genotyping experiments was developed to solve the above problems. Summary of the Invention
[0005] This invention proposes a multi-user collaborative method and system for SNP genotyping experiments to solve the problem that existing systems cannot achieve simultaneous access and operation by multiple users.
[0006] The present invention achieves the above objectives through the following technical solutions: This invention discloses a multi-user collaborative method for an SNP genotyping experimental system, comprising: Receive and parse user access requests to the experimental resources of the SNP genotyping experimental system. The access request includes the user ID, the unique identifier of the experimental resource, and the access operation type, which is either read or write. Access requests are handled based on a fine-grained resource locking mechanism. The processing flow of the fine-grained resource locking mechanism includes: The resource to be accessed is determined based on a unique identifier, and it is then determined whether a lock exists on the resource to be accessed. If no lock exists, a new lock is created and a unique lock ID is generated. The lock ID is then returned for the user to access the experimental resource. If a lock exists, determine whether to request a write lock based on the access operation type; If a write lock request is made, the system checks whether the current user is the lock owner based on the user ID. If so, the lock is renewed by writing, and the current user successfully writes the lock. If not, the lock owner information is returned, and the current user's write operation fails. If a read lock request is made, it is determined whether the lock is currently in a write lock state. If so, the lock holder information is returned, and the current user's read lock request fails. If not, the read lock is renewed, and the current user's read lock request succeeds.
[0007] Furthermore, before processing access requests based on a fine-grained resource locking mechanism, it is determined whether the number of resources to be accessed exceeds a preset threshold: If the number of resources to be accessed is not greater than the preset threshold, the resources to be accessed will be processed sequentially based on the fine-grained resource locking mechanism. If the number of resources to be accessed exceeds a preset threshold, the batch of experimental resources are grouped according to the unique identifier of each experimental resource, and independent resources that can be processed in parallel are identified. Each independent resource group is processed in parallel based on a fine-grained resource locking mechanism. The unique identifier includes the experimental resource type, experimental resource ID, and the module to which the experimental resource belongs.
[0008] Furthermore, an asynchronous batch cleanup of expired locks is triggered periodically, wherein: The expired lock is configured as follows: each lock maintains a last update timestamp, which is updated to the current time when the lock is created, renewed, or reconnected; when the difference between the current time and the lock's last update timestamp is greater than or equal to a preset resource expiration time threshold, the lock is determined to be an expired lock. The asynchronous batch cleanup of expired locks includes: creating a timer when the SNP genotyping experimental system starts, and periodically triggering cleanup tasks according to the timer's preset cleanup interval; when a cleanup task is triggered, firstly, a snapshot of all resource keys is acquired under global read lock protection, and then the global read lock is released; the snapshots of the resource keys are divided into batches according to a preset batch size, and the resource keys in each batch are processed concurrently using a worker pool; when each worker thread processes a single resource key, it acquires the fine-grained lock corresponding to the resource key, traverses all lock records under the key, and separates the lock records into non-expired lock records and expired lock records based on whether the difference between the current time and the last update timestamp of each lock is greater than or equal to the resource expiration time threshold; After each batch of worker threads completes, the cleanup results are uniformly processed under global write lock protection: the reverse index mapping from lock ID to resource key of all expired locks is deleted, resource key entries with empty lock record lists are deleted, and the reverse index mapping of non-expired locks is updated.
[0009] Furthermore, when the lock is in a write lock state, all state change events within the corresponding 100ms are aggregated and pushed every 100ms.
[0010] Furthermore, based on WebSocket, the lock status, session status of each user, and status of each experimental device are synchronized in real time to each user's front end. The experimental devices include reaction plate preparation equipment, PCR water bath equipment, and fluorescence scanner.
[0011] Furthermore, while receiving and parsing the access request, the system obtains the user's session and determines whether the user's session is online. If the user's session is online, the access request is processed based on a fine-grained resource locking mechanism. If the user's session is offline, the access request is rejected.
[0012] Furthermore, based on heartbeat detection, the session state of the lock holder is continuously received, thus maintaining the lock holder's possession of the lock.
[0013] Furthermore, based on the forward index, the lock holder information is obtained, and it is determined whether the holder's session state has timed out. If it has timed out, all locks held by the user whose session timed out are obtained based on the reverse index, and the user's holding of all locks is forcibly terminated.
[0014] Furthermore, the experimental resource types include experiments, sample plate templates, reagent plate templates, experimental operation columns, reaction plate templates, pipetting protocol templates, well plate templates, classification diagram templates, storage resources, reagent libraries, and historical template libraries.
[0015] The present invention also provides a system for a multi-user collaborative method for an SNP genotyping experimental system, comprising: The receiving module is used to receive and parse the user's access request to the experimental resources of the SNP genotyping experimental system. The access request includes the user ID, the unique identifier of the experimental resource, and the access operation type, which is either read or write. The resource lock management module is used to process access requests based on a fine-grained resource lock mechanism. The processing flow of the fine-grained resource lock mechanism includes: The resource to be accessed is determined based on a unique identifier, and it is then determined whether a lock exists on the resource to be accessed. If no lock exists, a new lock is created and a unique lock ID is generated. The lock ID is then returned for the user to access the experimental resource. If a lock exists, determine whether to request a write lock based on the access operation type; If a write lock request is made, the system checks whether the current user is the lock owner based on the user ID. If so, the lock is renewed by writing, and the current user successfully writes the lock. If not, the lock owner information is returned, and the current user's write operation fails. If a read lock request is made, it is determined whether the lock is currently in a write lock state. If so, the lock holder information is returned, and the current user's read lock request fails. If not, the read lock is renewed, and the current user's read lock request succeeds.
[0016] The beneficial effects of this invention are as follows: The multi-user collaboration method and system proposed in this invention for SNP genotyping experiments achieve the smallest granular control over various resources in SNP genotyping experiments. Compared with traditional global locks or database locks, this mechanism can maximize the system's concurrent processing capability while ensuring data consistency. Attached Figure Description
[0017] Figure 1 This is a flowchart illustrating the fine-grained resource locking mechanism in this embodiment. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0019] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0020] The specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0021] A multi-user collaborative method and system for SNP genotyping experiments, comprising: This invention discloses a multi-user collaborative method for an SNP genotyping experimental system, comprising: Receive and parse user access requests to the experimental resources of the SNP genotyping experimental system. The access request includes the user ID, the unique identifier of the experimental resource, and the access operation type, which is either read or write. Access requests are handled using a fine-grained resource locking mechanism, such as... Figure 1 As shown, the processing flow of the fine-grained resource locking mechanism includes: start; The resource to be accessed is determined based on a unique identifier, and it is then determined whether a lock exists on the resource to be accessed. If no lock exists, a new lock is created and a unique lock ID is generated. The lock ID is then returned for the user to access the experimental resource. If a lock exists, determine whether to request a write lock based on the access operation type; If a write lock request is made, the system checks whether the current user is the lock owner based on the user ID. If so, the lock is renewed by writing, and the current user successfully writes the lock. If not, the lock owner information is returned, and the current user's write operation fails. If a read lock request is made, it is determined whether the lock is currently in a write lock state. If so, the lock holder information is returned, and the current user's read lock request fails. If not, the read lock is renewed, and the current user's read lock request succeeds.
[0022] In one embodiment, before processing access requests based on a fine-grained resource locking mechanism, it is determined whether the number of resources to be accessed exceeds a preset threshold: If the number of resources to be accessed is not greater than the preset threshold, the resources to be accessed will be processed sequentially based on the fine-grained resource locking mechanism. If the number of resources to be accessed exceeds a preset threshold, the batch of experimental resources are grouped according to the unique identifier of each experimental resource, and independent resources that can be processed in parallel are identified. Each independent resource group is processed in parallel based on a fine-grained resource locking mechanism. The unique identifier includes the experimental resource type, experimental resource ID, and the module to which the experimental resource belongs.
[0023] In one embodiment, asynchronous batch cleanup of expired locks is triggered periodically, wherein: The expired lock is configured as follows: each lock maintains a last update timestamp, which is updated to the current time when the lock is created, renewed, or reconnected; when the difference between the current time and the lock's last update timestamp is greater than or equal to a preset resource expiration time threshold, the lock is determined to be an expired lock. The asynchronous batch cleanup of expired locks includes: creating a timer when the SNP genotyping experimental system starts, and periodically triggering cleanup tasks according to the timer's preset cleanup interval; when a cleanup task is triggered, firstly, a snapshot of all resource keys is acquired under global read lock protection, and then the global read lock is released; the snapshots of the resource keys are divided into batches according to a preset batch size, and the resource keys in each batch are processed concurrently using a worker pool; when each worker thread processes a single resource key, it acquires the fine-grained lock corresponding to the resource key, traverses all lock records under the key, and separates the lock records into non-expired lock records and expired lock records based on whether the difference between the current time and the last update timestamp of each lock is greater than or equal to the resource expiration time threshold; After each batch of worker threads completes, the cleanup results are uniformly processed under global write lock protection: the reverse index mapping from lock ID to resource key of all expired locks is deleted, resource key entries with empty lock record lists are deleted, and the reverse index mapping of non-expired locks is updated.
[0024] In one embodiment, when the lock is in a write lock state, all state change events within the corresponding 100ms are aggregated and pushed every 100ms.
[0025] In one embodiment, the state of the lock, the session state of each user, and the state of each experimental device are synchronized in real time to each user's front end based on WebSocket. The experimental devices include reaction plate preparation equipment, PCR water bath equipment, and fluorescence scanner.
[0026] In one embodiment, while receiving and parsing the access request, the system obtains the user's session and determines whether the user's session status is online. If the user's session status is online, the access request is processed based on a fine-grained resource locking mechanism. If the user's session status is offline, the access request is rejected.
[0027] In one embodiment, the lock holder's session state is continuously received based on heartbeat detection, thereby maintaining the lock holder's possession of the lock.
[0028] In one embodiment, the lock holder information is obtained based on the forward index, and it is determined whether the holder's session state has timed out. If it has timed out, all locks held by the user whose session timed out are obtained based on the reverse index, and the user's holding of all locks is forcibly terminated.
[0029] Among them, the lock holder information is obtained based on the forward index, and it is determined whether the holder's session state has timed out. When the user exits abnormally, the front end actively releases all locks held by the user and cancels the session. The session timeout determination mechanism is as follows: each user's session maintains a last active timestamp, which is updated through a dual-channel keep-alive mechanism: the first channel is the HTTP request channel, in the authentication middleware, after each successful verification of the user's requested identity token and session validity, the last active timestamp of the user's session is automatically updated; the second channel is the WebSocket heartbeat channel, in which the user's front end continuously sends heartbeat messages through the WebSocket connection, and the server updates the last active timestamp of the user's session after receiving the heartbeat messages. Start a scheduled cleanup coroutine to poll all sessions according to a preset cleanup cycle. For each session, calculate the time difference between the current time and the last active timestamp of the session. When the time difference exceeds the preset session timeout threshold, determine that the session has timed out, delete the session, and push a session expiration message to the user's front end through an event notification mechanism. The forward index is a mapping from resource keys to a list of lock records, used to find the owner information of all locks on a resource based on the resource key; the reverse index is a mapping from lock IDs to resource keys, used to quickly locate the resource key to which the lock belongs based on the lock ID. When a user logs out abnormally, the frontend detects the connection error, actively calls the logout interface to delete the user's session, and calls the resource lock release interface. Based on the reverse index, it locates the lock IDs of all locks held by the user to the corresponding resource keys and releases all locks held by the user in batches.
[0030] In one embodiment, experimental resource types include experiments, sample plate templates, reagent plate templates, experimental run columns, reaction plate templates, pipetting protocol templates, well plate templates, classification chart templates, storage resources, reagent libraries, and historical template libraries.
[0031] The present invention also provides a system for a multi-user collaborative method for an SNP genotyping experimental system, comprising: The receiving module is used to receive and parse the user's access request to the experimental resources of the SNP genotyping experimental system. The access request includes the user ID, the unique identifier of the experimental resource, and the access operation type, which is either read or write. The resource lock management module is used to process access requests based on a fine-grained resource lock mechanism. The processing flow of the fine-grained resource lock mechanism includes: The resource to be accessed is determined based on a unique identifier, and it is then determined whether a lock exists on the resource to be accessed. If no lock exists, a new lock is created and a unique lock ID is generated. The lock ID is then returned for the user to access the experimental resource. If a lock exists, determine whether to request a write lock based on the access operation type; If a write lock request is made, the system checks whether the current user is the lock owner based on the user ID. If so, the lock is renewed by writing, and the current user successfully writes the lock. If not, the lock owner information is returned, and the current user's write operation fails. If a read lock request is made, it is determined whether the lock is currently in a write lock state. If so, the lock holder information is returned, and the current user's read lock request fails. If not, the read lock is renewed, and the current user's read lock request succeeds.
[0032] Taking the application of this invention in a collaborative SNP experiment scenario as an example, the invention will be further explained as follows: 1. Collaborative editing of experiments.
[0033] Different users can enter the same experiment to operate (edit sample plates / reagent plates / plate preparation schemes) and can edit different consumables at the same time without conflict. Multiple users can edit experiments in parallel. When editing the same consumable, the first user to obtain the lock holds the lock, and subsequent users cannot enter.
[0034] For example, if user A is editing a sample board and user B also wants to edit the same sample board, user B will be unable to access it and will be given the message: "Failed to request resource lock. The resource is occupied by the following user: user A".
[0035] 2. Collaborative analysis.
[0036] Different users can enter the same experiment for analysis. During single-plate analysis, other users can only view the reaction plate being analyzed and cannot operate it, but they can analyze reaction plates that have not yet been occupied.
[0037] For example, user A analyzes the first two reaction panels (reaction panel 1 and reaction panel 2) of an experiment. At this time, the lock resources for these two reaction panels are not occupied, and user A can directly access the analysis page to perform clustering, re-analysis, and other operations. Simultaneously, user B enters the same experiment to analyze data from four reaction panels (reaction panel 1, reaction panel 2, reaction panel 3, and reaction panel 4). If user A is already analyzing two of these reaction panels, user B cannot analyze those two reaction panels (reaction panel 1 and reaction panel 2). The interface will not support re-clustering, modification of analysis parameters, etc.; user B can only view and download images, and will be notified which users are occupying resources. However, the locks for the other two reaction panels (reaction panel 3 and reaction panel 4) are successfully acquired, allowing user B to perform analysis operations.
[0038] 3. Collaboration with other libraries In addition to collaboration related to experiments, reagent libraries and historical template libraries can also be used for collaboration, with effects similar to editing within the same experiment.
[0039] The advantages of the multi-user collaborative method and system for SNP genotyping experiments proposed in this invention compared to existing technologies are as follows: (1) Collaboration efficiency has been significantly improved.
[0040] This system, through a fine-grained resource locking mechanism, completely transforms the traditional single-user workflow, supporting multiple researchers to participate in the same experimental project simultaneously. Different users can handle tasks such as experimental design, data analysis, and result verification in parallel, avoiding the time wasted by sequential operations. Real-time status synchronization allows team members to stay informed about each other's progress, significantly reducing communication and coordination costs.
[0041] (2) Data security and consistency have been comprehensively enhanced.
[0042] The system has established a comprehensive conflict prevention mechanism, effectively preventing data overwriting issues that may occur when multiple users edit simultaneously through precise lock state management. Each operation is recorded with a complete user identifier and timestamp, forming a traceable operation history that provides strong support for error troubleshooting and data recovery. Data maintains integrity and consistency throughout the entire collaboration process.
[0043] (3) Resource utilization has been significantly optimized.
[0044] Fine-grained locking mechanisms enable multiple users to share experimental equipment, computing resources, and storage systems, achieving efficient resource allocation. The system supports parallel processing of multiple experimental tasks, significantly improving the utilization efficiency of hardware and software resources. Intelligent resource scheduling algorithms ensure the fairness and rationality of resource allocation.
[0045] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A multi-user collaborative method for an SNP genotyping experimental system, characterized in that, include: Receive and parse user access requests to the experimental resources of the SNP genotyping experimental system. The access request includes the user ID, the unique identifier of the experimental resource, and the access operation type, which is either read or write. Access requests are handled based on a fine-grained resource locking mechanism. The processing flow of the fine-grained resource locking mechanism includes: The resource to be accessed is determined based on a unique identifier, and it is then determined whether a lock exists on the resource to be accessed. If no lock exists, create a new lock and generate a unique lock ID, then return the lock ID for users to access the experimental resources; If a lock exists, determine whether to request a write lock based on the access operation type; If a write lock request is made, the system checks whether the current user is the lock owner based on the user ID. If so, the lock is renewed by writing, and the current user successfully writes the lock. If not, the lock owner information is returned, and the current user's write operation fails. If a read lock request is made, it is determined whether the lock is currently in a write lock state. If so, the lock holder information is returned, and the current user's read lock request fails. If not, the read lock is renewed, and the current user's read lock request succeeds.
2. The multi-user collaborative method for an SNP genotyping experimental system according to claim 1, characterized in that, Before processing access requests based on a fine-grained resource locking mechanism, determine whether the number of resources to be accessed exceeds a preset threshold: If the number of resources to be accessed is not greater than the preset threshold, the resources to be accessed will be processed sequentially based on the fine-grained resource locking mechanism. If the number of resources to be accessed exceeds a preset threshold, the batch of experimental resources are grouped according to the unique identifier of each experimental resource, and independent resources that can be processed in parallel are identified. Each independent resource group is processed in parallel based on a fine-grained resource locking mechanism. The unique identifier includes the experimental resource type, experimental resource ID, and the module to which the experimental resource belongs.
3. The multi-user collaborative method for an SNP genotyping experimental system according to claim 2, characterized in that, A timed asynchronous batch cleanup of expired locks is triggered, where: The expired lock is configured as follows: each lock maintains a last update timestamp, which is updated to the current time when the lock is created, renewed, or reconnected; when the difference between the current time and the lock's last update timestamp is greater than or equal to a preset resource expiration time threshold, the lock is determined to be an expired lock. The asynchronous batch cleanup of expired locks includes: creating a timer when the SNP genotyping experimental system starts, and periodically triggering cleanup tasks according to the timer's preset cleanup interval; when a cleanup task is triggered, firstly, a snapshot of all resource keys is acquired under global read lock protection, and then the global read lock is released; the snapshots of the resource keys are divided into batches according to a preset batch size, and the resource keys in each batch are processed concurrently using a worker pool; when each worker thread processes a single resource key, it acquires the fine-grained lock corresponding to the resource key, traverses all lock records under the key, and separates the lock records into non-expired lock records and expired lock records based on whether the difference between the current time and the last update timestamp of each lock is greater than or equal to the resource expiration time threshold; After each batch of worker threads completes, the cleanup results are uniformly processed under global write lock protection: the reverse index mapping from lock ID to resource key of all expired locks is deleted, resource key entries with empty lock record lists are deleted, and the reverse index mapping of non-expired locks is updated.
4. The multi-user collaborative method for an SNP genotyping experimental system according to claim 1, characterized in that, When the lock is in write lock state, all state change events within the corresponding 100ms are aggregated and pushed every 100ms.
5. A multi-user collaborative method for an SNP genotyping experimental system according to claim 1, characterized in that, Based on WebSocket, the status of the lock, the session status of each user, and the status of each experimental device are synchronized in real time to each user's front end. The experimental devices include reaction plate preparation equipment, PCR water bath equipment, and fluorescence scanner.
6. A multi-user collaborative method for an SNP genotyping experimental system according to claim 1, characterized in that, While receiving and parsing the access request, the system obtains the user's session and determines whether the user's session is online. If the user's session is online, the access request is processed based on a fine-grained resource locking mechanism. If the user's session is offline, the access request is rejected.
7. A multi-user collaborative method for an SNP genotyping experimental system according to claim 1, characterized in that, Based on heartbeat detection, the session state of the lock holder is continuously received, and the lock holder's possession of the lock is continuously maintained.
8. A multi-user collaborative method for an SNP genotyping experimental system according to claim 1, characterized in that, The system retrieves lock holder information based on the forward index, determines whether the holder's session state has timed out, and if it has, retrieves all locks held by the user whose session timed out based on the reverse index, and forcibly terminates the user's holding of all locks.
9. A multi-user collaborative method for an SNP genotyping experimental system according to claim 7, characterized in that, Experimental resource types include experiments, sample plate templates, reagent plate templates, experiment run columns, reaction plate templates, pipetting protocol templates, well plate templates, classification chart templates, storage resources, reagent libraries, and historical template libraries.
10. A system for a multi-user collaborative method for an SNP genotyping experimental system as described in any one of claims 1-9, characterized in that, include: The receiving module is used to receive and parse the user's access request to the experimental resources of the SNP genotyping experimental system. The access request includes the user ID, the unique identifier of the experimental resource, and the access operation type, which is either read or write. The resource lock management module is used to process access requests based on a fine-grained resource lock mechanism. The processing flow of the fine-grained resource lock mechanism includes: The resource to be accessed is determined based on a unique identifier, and it is then determined whether a lock exists on the resource to be accessed. If no lock exists, a new lock is created and a unique lock ID is generated. The lock ID is then returned for the user to access the experimental resource. If a lock exists, determine whether to request a write lock based on the access operation type; If a write lock request is made, the system checks whether the current user is the lock owner based on the user ID. If so, the lock is renewed by writing, and the current user successfully writes the lock. If not, the lock owner information is returned, and the current user's write operation fails. If a read lock request is made, it is determined whether the lock is currently in a write lock state. If so, the lock holder information is returned, and the current user's read lock request fails. If not, the read lock is renewed, and the current user's read lock request succeeds.
