2011年2月8日

摘要: @.@这个是我上一次笔试碰到且说不出来的东东死锁的定义所谓死锁,是指各并发进程彼此互相等待对方所拥有的资源,且这些并发进程在得到对方的资源之前不会释放自己所拥有的资源。从而造成大家都想得到资源而又都得不到资源,各并发进程不能继续向前推进的状态。死锁发生原因死锁的起因是并发进程的资源竞争。产生死锁的根本原因在于系统提供的资源个数少于并发进程所要求的该类资源数。refer to : http://i-math.sysu.edu.cn/os/book/chapter4/lesson6/lesson6.htm 阅读全文
posted @ 2011-02-08 15:41 本命 阅读(220) 评论(0) 推荐(0)
 
摘要: New state - After the creations of Thread instance the thread is in this state but before the start() method invocation. At this point, the thread is considered not alive. Runnable (Ready-to-run) state - A thread start its life from Runnable state. A thread first enters runnable state after the invo 阅读全文
posted @ 2011-02-08 15:30 本命 阅读(330) 评论(0) 推荐(0)