A lock Back

A lock or mutex(互斥體) is a mechanism in software engineering to avoid accessing a DB resource in parallel when there are many threads of execution.

Optimistic Lock (乐观锁) means that the DB assumes any accessing won't modify the data, and it won't lock after your assessment, while Pessimistic Lock (悲观锁) means reversely. Many types of locks implemented in Java almost belong to a pessimistic one like a Spinlock (自旋锁), Mutual Exclusion (互斥锁), Reentrant mutex (可重入互斥锁), Readers-writer lock (读写锁).

Empty Comments
Sign in GitHub

As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.

Notice: This plugin has used Cookie to store your token with an expiration.