04 2013 档案
摘要:MySql多用户,开源 四大特性: AtomicConsistentIsolatedDurable 操作 Join Operation innodb -> 支持事务处理 http://www.mysql.com/information/crash-me.php http://www.mysql.co
阅读全文
摘要:1.fork出子进程,然后父进程退出2.更改会话3.更改工作目录4.更改umask5.关闭文件描述符下面我用一个简单的例子来说明。init.c 1 #include <unistd.h> 2 #include <signal.h> 3 #include <sys/param.h> 4 #include <sys/types.h> 5 #include <sys/stat.h> 6 7 void init_daemon(void){ 8 int pid; 9 int i;10 if(pid = fork()){11 exit(0);12
阅读全文
摘要:今天早上突然看到一个代码中出现了explicit这个关键字。之前没有接触到这个,感觉很生疏。就百度去查了下使用方法。下面我用一个例子来解释explicit的功能。 1 class Test1 2 { 3 public: 4 Test1(int n){ 5 num = n; 6 } 7 private: 8 int num; 9 };10 11 class Test212 {13 public:14 explicit Test2(int n){15 num = ...
阅读全文

浙公网安备 33010602011771号