读写锁的饥饿问题: Starvation Issue

2714阅读 0评论2011-06-25 web_surf
分类:

Starvation

Starvation describes a situation where a thread is unable to gain regular access to shared resources and is unable to make progress. This happens when shared resources are made unavailable for long periods by "greedy" (注:贪婪的) threads. For example(注:Java example), suppose an object provides a synchronized method that often takes a long time to return. If one thread invokes this method frequently, other threads that also need frequent synchronized access to the same object will often be blocked.

(From: http://herosoft.itpub.net/post/5802/497205)

上一篇:[Android] 快速预览 (ZT)
下一篇:[Linux] 线程同步: mutex, semaphore, condition(ZT)