Distributed Smart Lock System for Race Condition Prevention

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In distributed computing systems, existing lock mechanisms do not effectively manage resource access and modification, leading to potential race conditions and inefficiencies, particularly when multiple processes need to synchronize access to shared resources across different memory spaces.

Innovation Solution

A lock management system that transitions locks into an acquired state upon request, allows modification, and optionally uses delayed release timers to synchronize resource changes across multiple copies, preventing race conditions and ensuring data consistency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional lock mechanisms are used in distributed computing systems, then resource access control is implemented, but race conditions occur and resource consistency cannot be maintained across multiple memory spaces

Engineering Contradiction:
Improveresource consistencyVSAvoidlock management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The lock management system is segmented into distinct functional components: lock objects that represent individual resources, process objects that manage access requests, and state transition mechanisms that handle lock acquisition and release. This segmentation allows independent management of each resource's lock state while maintaining overall system consistency across distributed memory spaces.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary lock management system that mediates between multiple processes and shared resources. The lock objects act as intermediaries that coordinate access requests, transition through defined states (unlocked, locked, delayed-release), and ensure that only one process can modify a resource at a time, preventing race conditions while maintaining resource consistency.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If locks are held during resource modification to prevent race conditions, then resource consistency is maintained, but system productivity decreases due to prolonged lock possession

Engineering Contradiction:
Improveresource consistencyVSAvoidsystem throughput
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The lock management system implements periodic state transitions with optional delayed release. Instead of holding locks indefinitely during resource modification, the system uses time-based state changes where locks can be released after a predetermined delay period. This periodic action allows other processes to acquire locks sooner, improving system throughput while maintaining consistency through controlled access windows.

Inventive Principle:
Principle #19Periodic action

Solution Approach 2:

The lock duration and release timing are made dynamic rather than static. The system can transition locks to different states (immediate release or delayed release) based on resource modification completion status. This dynamic approach allows the lock holding period to adapt to actual resource access needs, preventing unnecessary prolonged lock possession that would reduce system productivity.

Inventive Principle:
Principle #15Dynamics

3Productivity

If immediate lock release is implemented after resource modification, then system productivity improves, but race conditions may occur between multiple processes

Engineering Contradiction:
Improvesystem throughputVSAvoidresource consistency
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system performs preliminary actions by transitioning locks to a delayed-release state before actual resource modification is complete. This preliminary state change prepares the lock for future release while maintaining the locked state during the critical modification period. The delayed release mechanism ensures that even if the modifying process fails or is interrupted, the lock remains held long enough to prevent race conditions, then releases automatically to improve productivity.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12099476B2Distributed smart lock system
Publication Date: 2024.09.24 DELL PROD LP
  • US12099476B2 patent drawing
  • US12099476B2 patent drawing
  • US12099476B2 patent drawing

AI summary

A method, comprising: receiving a request to acquire a lock that is associated with a resource; transitioning the lock into an acquired state in response to the request; and releasing the lock.