要不要做refinance,北加湾区# Living
f*m
1 楼
刚刚注册的账户不能立即发文后来就忘记了现在补上 从evernote翻出来的
- differences between thread and process
- if process A has 1 thread; process B has 4 threads. they all have the same
priority. which process has more CPU time?
- what's context switch? how to do context switch? what state information
need to be saved before context switch?
- how to implement a mutex? what OS concept are you using to block the
current thread if acquiring a mutex failed?
- code sample:
for(i=0;i<10;i++) for(j=0;j<1000;j++) ;
for(i=0;i<1000;i++) for(j=0;j<10;j++) ;
which one runs faster? no compiler optimization.
- calculate a binary tree max width.
- differences between thread and process
- if process A has 1 thread; process B has 4 threads. they all have the same
priority. which process has more CPU time?
- what's context switch? how to do context switch? what state information
need to be saved before context switch?
- how to implement a mutex? what OS concept are you using to block the
current thread if acquiring a mutex failed?
- code sample:
for(i=0;i<10;i++) for(j=0;j<1000;j++) ;
for(i=0;i<1000;i++) for(j=0;j<10;j++) ;
which one runs faster? no compiler optimization.
- calculate a binary tree max width.