Thread Resource Distribution via Lock State Verification
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for managing thread resources in computing devices lead to high processor loads due to context switching and data corruption issues, particularly when multiple threads access shared memory resources, necessitating efficient lock management to prevent data hazards.
Innovation Solution
A method that determines the state of a thread by verifying lock information for memory regions, switching threads between active and inactive states based on a thread state variable, and adjusting the number of active and inactive threads to optimize resource distribution, thereby reducing processor load.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If context switching is performed to manage thread locks, then thread access control is improved, but processor load increases significantly
Solution Approach 1:
The patent applies preliminary action by having threads check lock status before attempting to access shared memory. The lock acquisition mechanism verifies whether a lock is already held by another thread before allowing entry, preventing unnecessary context switching and reducing processor load while maintaining reliable thread access control.
Solution Approach 2:
The patent introduces an intermediary lock mechanism that mediates between threads and shared memory. Instead of direct context switching for every access, the lock acts as an intermediary that controls access rights, reducing the frequency and impact of context switching operations on the processor.
2Reliability
If locks are set to prevent data corruption, then data safety is improved, but thread processing time increases
Solution Approach 1:
The patent applies preliminary action by having threads check lock status before attempting to access shared memory. The lock acquisition mechanism verifies whether a lock is already held by another thread before allowing entry, preventing unnecessary context switching and reducing processor load while maintaining reliable thread access control.
Solution Approach 2:
The patent introduces an intermediary lock mechanism that mediates between threads and shared memory. Instead of direct context switching for every access, the lock acts as an intermediary that controls access rights, reducing the frequency and impact of context switching operations on the processor.
3Productivity
If multiple threads access shared memory simultaneously, then processing speed is improved, but data corruption occurs
Solution Approach 1:
The patent applies segmentation by dividing the shared memory access control into separate lock mechanisms. Each critical section has its own lock, allowing fine-grained control over which threads can access which memory regions simultaneously, enabling parallel processing while preventing data corruption through controlled segmentation of access rights.
Solution Approach 2:
The patent introduces an intermediary lock mechanism that mediates between threads and shared memory. Instead of direct context switching for every access, the lock acts as an intermediary that controls access rights, reducing the frequency and impact of context switching operations on the processor.
Data Source
AI summary
A computer program stored in a computer readable storage medium is provided. It includes encoded commands, in which when the computer program is executed by one or more processors of a computer system. The computer program allows the one or more processors to perform certain commands for distributing resources of a computing device.


