2014年3月29日

Deadlock Livelock thread starvation

摘要: public class Deadlock { public static void main(String[ ] args) { // These are the two resource objects we'll try to get locks for final Object resource1 = "resource1"; final Object resource2 = "resource2"; int a=0; // Here's the first thread. It tries to lock... 阅读全文

posted @ 2014-03-29 02:11 brave_bo 阅读(340) 评论(0) 推荐(0)

导航