How do I avoid deadlock problems in my application?
Source: Internet
Author: User
An unavoidable feature of any lock-based concurrency system is that the system may block under certain conditions. When a connection occupies a lock and another connection attempts to change the state of the lock, the second connection either waits for the first connection to release the lock or is thus blocked.
To achieve the best scalability, performance, and concurrency, you should be careful when designing applications and query statements to minimize the length of the transaction and reduce the time it takes to hold the lock. Most concurrency problems often occur in the design phase of the application and database, so it is critical that the design phase take this factor into full consideration.
Otherwise, the application is potentially flawed and will typically be discovered when it comes to application extensibility testing.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service