root@tt # root@tt # prstat -aPlease wait...PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP22879 oracle 11G 273M cpu8 0 0 0:13:47 3...
分类:
其他好文 时间:
2014-11-17 19:04:55
阅读次数:
267
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:
其他好文 时间:
2014-11-16 15:57:02
阅读次数:
131
对于任一位向量a,有a ^ a = 0。考虑下面的程序:1 void inplace_swap(int *x, int *y)2 {3 *y = *x ^ *y;4 *x = *x ^ *y;5 *y = *x ^ *y;6 }假设x和y指向的位置分别是a和b。完成下表:步骤...
分类:
移动开发 时间:
2014-11-16 15:54:44
阅读次数:
271
前几天突然看到一段代码,虽然很简单,但引起了我的一些感慨…… 1 #include 2 3 int main() 4 { 5 int a, b; 6 scanf("%d %d", &a, &b); 7 Swap(a, b); 8 ...
分类:
其他好文 时间:
2014-11-15 21:33:35
阅读次数:
142
一 物理内存和虚拟内存我们知道,直接从物理内存读写数据要比从硬盘读写数据要快的多,因此,我们希望所有数据的读取和写入都在内存完成,而内存是有限的,这样就引出了物理内存与虚拟内存的概念。物理内存就是系统硬件提供的内存大小,是真正的内存,相对于物理内存,在linux下还有一个虚拟内存的概念,虚拟内存就是...
分类:
系统相关 时间:
2014-11-15 16:54:10
阅读次数:
256
服务器环境要求 硬盘 20G以上 ,必须高于1G的物理内存,交换空间一般为内存的2倍,例如:1G的内存可以设置swap 分区为3G大小在Root用户下执行以下步骤:修改用户的SHELL的限制,修改/etc/security/limits.conf文件oracle soft nproc 204...
分类:
数据库 时间:
2014-11-14 22:36:58
阅读次数:
368
systat能实时查看各种信息systat-pigs默认值CPUsystat-iostat硬盘IOsystat-swap交换分区systat-mbufs网络缓冲区systat-vmstat虚拟内存systat-netstat网络systat-icmpICMP协议systat-ipIP协议systat-tcpTCP协议systat-ifstat网卡显示PCI总线设备信息pciconf-lv显示内核加载的模..
分类:
其他好文 时间:
2014-11-14 15:47:38
阅读次数:
223
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. Y...
分类:
其他好文 时间:
2014-11-14 14:22:50
阅读次数:
164
一 物理内存和虚拟内存
我们知道,直接从物理内存读写数据要比从硬盘读写数据要快的多,因此,我们希望所有数据的读取和写入都在内存完成,而内存是有限的,这样就引出了物理内存与虚拟内存的概念。
物理内存就是系统硬件提供的内存大小,是真正的内存,相对于物理内存,在linux下还有一个虚拟内存的概念,虚拟内存就是为了满足物理内存的不足而提出的策略,它是利用磁盘空间虚拟出的一块逻辑内...
分类:
系统相关 时间:
2014-11-14 14:16:10
阅读次数:
221
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:
其他好文 时间:
2014-11-14 08:08:24
阅读次数:
197