摘要:
fork进程 A 有 变量 m,地址为 12345进程 B 为 A 的子进程,此时 B 会有一份 和 A 一样的 内存空间(逻辑),同样 会有 m 变量,它的 地址 也是 12345当修改 A 中的 m 时,不影响 B 中的 m,因为 虽然它们的线性地址 相同, 但是 对应的 物理地址 却 不相同。... 阅读全文
摘要:
第一种 方法[root@haha ~]# yum install gconf-editor[null@haha ~]$ gconf-editor // 此处注意 切换 到 普通用户此时 打开 gconf-editor 图形界面-------------------------------------... 阅读全文
摘要:
“default constructor ... 在需要的时候被编译器产生出来。“ ------ 《深度探索C++对象模型》,P39(华中科技大学出版)--------------------------------------------------------------------------... 阅读全文
摘要:
测试 代码运行时间linux 中的 中 有个函数可以获取当前时间,精确到 微秒 ----> gettimeofday() 1 #include // int gettimeofday(struct timeval *tv, struct timezone *tz); 2 /***... 阅读全文