今天去考中興的時候寫計算機系統相當的不順手,到最後實在寫不出東西來,又還沒到提早交卷的時間,於是開始想東想西。只是越想越氣,就抓了一題不會寫的題目來亂掰。題目是這樣的:please explain why spinlocks are useful on MP systems but not on single-processor systems?
我想了個答案。
答案如下:
" 'cause it spins. In single-processor systems, you can't make it spin from nowhere, so you gotta have two of them to make them spin, that's why spinlocks are useful in multi-processor systems. The way ones spin spins!"
希望不會因為寫了這個答案被扣分。
想到另外一題要寫出電路的簡化邏輯表示式...我差點給他寫.."either 1 or 0"....
0 意見:
張貼留言