Database connection resource allocation method and system based on semaphore
A technology for connecting resources and databases, which is applied in the field of methods and systems for allocating database connection resources based on semaphores, and can solve problems such as reducing system performance, occupying high resources, and system crashing.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0023] The present invention will be further described below in conjunction with the accompanying drawings. The following examples are only used to illustrate the technical solution of the present invention more clearly, but not to limit the protection scope of the present invention.
[0024] Such as figure 1 As shown, a method for allocating database connection resources based on semaphore in the present invention:
[0025] 1) Create a container that contains the database connection pool and its incoming end
[0026] 2) Define the initial value of the incoming parameters of the incoming terminal and the size of the database connection pool
[0027] 3) Initialize the database connection pool
[0028] 4) Initialize the semaphore, which can be set as a fair semaphore or an unfair semaphore as needed
[0029] 5) Create multiple threads as channels for the semaphore to connect to the database. The semaphore obtains the database connection resource by obtaining a license. When ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com