香港新浪網 MySinaBlog
« 上一篇 | 下一篇 »
心齋 | 21st Jan 2008, 20:12 PM | 創作是一種感受

Love is just like a dead lock in concurrency.

The first thread is waiting for the second thread to proceed, but in turn the second thread is waiting for the first thread to proceed. Consequently, the action of the threads will never start because they are waiting for each other.

The same phenomenon can be observed when two people are waiting for the love signal of each other.