Challenge in concurrency control
本文总结在concurrency control中的一些challenge。
wikipedia Starvation
In computer science, resource starvation is a problem encountered in concurrent computing where a process is perpetually denied necessary resources to process its work.[1] Starvation may be caused by errors in a scheduling or mutual exclusion algorithm, but can also be caused by resource leaks, and can be intentionally caused via a denial-of-service attack such as a fork bomb.
Fairness and starvation
1、如果能够保证"fairness" ,那么就能够免于starvation
素材: wikipedia Test-and-set # Performance evaluation of test-and-set locks
When we consider fairness, we consider if a processor gets a fair chance of acquiring the lock when it is set free. In an extreme situation the processor might starve i.e. it might not be able to acquire the lock for an extended period of time even though it has become free during that time.