Compare Swap Store Facility Without External Serialization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing compare and swap instructions cannot be intermixed with perform locked operations, requiring external serialization for data integrity, limiting flexibility and efficiency in processing environments.

Innovation Solution

A compare and swap facility that performs a compare and swap operation using an interlocked update, allowing for a subsequent store operation without relying on external serialization, ensuring all operations appear as a single unit to the processor and preventing interruptions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If perform locked operation is used to maintain data integrity, then data integrity is ensured, but device complexity increases and operations cannot be intermixed with compare and swap instructions

Engineering Contradiction:
Improvedata integrityVSAvoidoperation complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent merges the compare and swap operation with the store operation into a single atomic instruction sequence. The compare and swap facility performs the comparison, conditional swap, and store operations as one integrated unit, eliminating the need for separate perform locked operations and external serialization mechanisms.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The compare and swap facility provides its own internal serialization mechanism through the interlocked update operation, making the system self-sufficient. The facility manages its own data integrity without requiring external lock operations or additional serialization functions.

Inventive Principle:
Principle #25Self-service

2Reliability

If perform locked operation is used for compare and swap, then data integrity is maintained, but productivity decreases due to inability to intermix operations

Engineering Contradiction:
Improvedata integrityVSAvoidprocessing efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

By combining compare and swap with store operations into a single atomic instruction, the patent enables these operations to be executed together without requiring separate perform locked operations, thereby improving processing efficiency and productivity while maintaining data integrity.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The compare and swap facility ensures continuous execution of operations without interruption from external serialization. The atomic nature of the instruction sequence allows uninterrupted processing, improving productivity while maintaining data integrity through the interlocked update mechanism.

Inventive Principle:
Principle #20Continuity of useful action

3Reliability

If external serialization is used, then data integrity is ensured, but adaptability decreases as operations cannot be intermixed

Engineering Contradiction:
Improvedata integrityVSAvoidoperation flexibility
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent integrates multiple operations (compare, swap, store) into a single atomic instruction, providing versatility and adaptability. This merged operation can be used in various contexts without requiring external serialization, enabling flexible operation mixing while maintaining data integrity.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The compare and swap facility provides multi-functional capability by performing comparison, conditional swapping, and store operations within a single instruction. This universal operation can replace multiple separate operations, enhancing adaptability while ensuring data integrity through the interlocked update mechanism.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS7809894B2Compare, swap and store facility with no external serialization
Publication Date: 2010.10.05 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US7809894B2 patent drawing
  • US7809894B2 patent drawing
  • US7809894B2 patent drawing

AI summary

A compare, swap and store facility is provided that does not require external serialization. A compare and swap operation is performed using an interlocked update operation. If the comparison indicates equality, a store operation is performed. The compare, swap and store operations are performed as a single unit of operation.