d*********1 发帖数: 25 | 1 a few interview questions:
1) is the c++ template parameters decided by the compiling time or running
time?
2) how do you know that a C++ template parameter are decided at the
compiling or running time?
3) what is the initial size of a vector?
4) Can the vector reaches maximum size be changed and how to change it?
5) what kind of tools are you using for debuging multiple threading?
6) how would you know a process is in deadlock? eg in debug mode.
My answers:
1) compiling time?
2) donot know.... |
a****l 发帖数: 8211 | 2 3)and4)check manual.
6)you know it when you see it.
【在 d*********1 的大作中提到】 : a few interview questions: : 1) is the c++ template parameters decided by the compiling time or running : time? : 2) how do you know that a C++ template parameter are decided at the : compiling or running time? : 3) what is the initial size of a vector? : 4) Can the vector reaches maximum size be changed and how to change it? : 5) what kind of tools are you using for debuging multiple threading? : 6) how would you know a process is in deadlock? eg in debug mode. : My answers:
|
f********y 发帖数: 156 | 3 6) use Windbg.
If you see each of the two threads are waiting for a sync premitive used by
the other, you know it is deadlock |