原创 多線程程序與fork()

多線程程序裏不準使用fork UNIX上C++程序設計守則3 準則3:多線程程序裏不準使用fork 在多線程程序裏,在”自身以外的線程存在的狀態”下一使用fork的話,就可能引起各種各樣的問題.比較典型的例子就是,fork出來的子進程可能

原创 linux-epoll

最好的參考資料: 1.師從互聯網。 2.man 7 epoll 3.http://bbs.chinaunix.net/thread-1740209-1-1.html 4.http://hi.baidu.com/firobd/blog/i

原创 Start with linux in Debian 5

The following operations are under WIN7 in my computer. ###############################################################

原创 Centos5.6-xen4.0.3內核編譯

編譯過程 安裝編譯過程所需庫和工具 yum -y groupinstall "Development Libraries" yum -y groupinstall "Development Tools" yum -y in