Re: [请益] 谁知道NVIDIA硬件应用工程师笔试考些什么

楼主: egnaro123 (原po是大叔)   2013-03-05 20:15:21
: 1). variable 是否可以同时宣告成const 和 volatile
不可
: 5).某个3D-shooting Game被QA验出,一到某个Scene会broken还是Violation XXXXX
: 5a. 你推测是啥原因
memory access error,通常是array index超过,或pointer乱掉
: 5b. 你会用怎样的架构去验证错误
开WinDbg就可以找了,程式会停在 access error地方
: 6). 给了一个A List Of Windows Interrupts 共32种
: 6a. APC和DPC差异 (英文简写忘了是啥 上面有附???)
: 6b. Interrupt 在某阶层以上时是发生什么事(not sure)
DPC = defferred procedure call, 等同linux ISR的bottom routine,
在ISR后,让OS安排一个call function,要注意interrupt reentry问题,虽不是ISR
但要注意仍不可占CPU执行过久,同步只能用spinlock
APC = asyn procedure call
在DPC之下,user app之上,可做为workitem thread,
但我认为一个good driver则不应使用APC
实务使用的情况应是user app与driver做同步使用,
win32 API有一组是做这些事,waitable API,基本上了解APC/waitable API,
Windows设计精神就懂有一半了
作者: iamnumbea1 (NULL)   2013-03-05 20:53:00
第一题 google之后 有网页说可以这样宣告
作者: shuckmol (五一五阿阿)   2013-03-05 21:14:00
第一题就错啦 可以
作者: shuckmol (五一五阿阿)   2013-03-05 21:15:00
这样可以在const function里面修改const变量
作者: shuckmol (五一五阿阿)   2013-03-05 21:17:00
对不起 我记错了 好像是 const 和 mutable 才是

Links booklink

Contact Us: admin [ a t ] ucptt.com