瀏覽單個文章
tw1965
Master Member
 

加入日期: Jun 2003
文章: 1,593
When multiple threads have shared access to the same data/hardware, the threads can interfere with one another.
1. 如果你用的是USB 遙控器, USB 遙控器的硬體和電視卡硬體無關,
所以不會有"兩個Thread同時Access硬體的問題"
2. 軟體寫對(使用Semaphore, Critical Section Mutex, InterLock 等方式),
也不會有"兩個Thread同時Access硬體的問題"
3. 搖控器軟體用一個CPU, 也不會有"兩個Thread同時Access硬體的問題",
請參考:
http://forum.pcdvd.com.tw/showthrea...#post1075380115
http://www.tv-cards.com/messageboar...opic.php?t=4355

有關Windows 程式Multi-Theading Sychroniztion的作法:
http://msdn.microsoft.com/library/d...hronization.asp
http://msdn.microsoft.com/library/d...hronization.asp
舊 2004-11-27, 07:17 PM #24
回應時引用此文章
tw1965離線中