面试时最经常被问到的问题(Frenquently asked interview questions)之Misc. Topics篇[4]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 mxclxp 的 blog

the reason you use a multi-process web server is for robustness in the face of failure. on a multithreaded server one thread can wipe out all the rest when it crashes the server. in a multi-process server only the offending process goes down. as far as speed is concerned most multi-process servers allow you to spawn at the beginning any number of processes to handle requests so speed differences on a running system are not much different between multi-threading and multi-process servers.

16what locking constructs are available on platform x (nt = semaphore, critical section, mutex), what are the main differences between them?

17familiar with multi-reader, single writer locks?

18how could you implement that given a simple binary semaphore os construct?

19how does this implementation behave? can it starve readers? starve writers?

本文关键:面试时最经常被问到的问题(Frenquently asked interview questions)之Misc. Topics篇
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top