码迷,mamicode.com
首页 >  
搜索关键字:swap 虚拟内存    ( 5497个结果
/proc/pid/status查看某进程的状态--遇到的一个开线程太多将虚拟内存耗尽问题
今天遇到一个开线程太多将虚拟内存耗尽的问题 我的应用程序的pid是2558,查看此时的状态: root@Storage:/proc/2558# cat status Name:   sonia State:  S (sleeping) Tgid:   2558 Pid:    2558 PPid:   2335 TracerPid:      0 Uid:    0...
分类:编程语言   时间:2014-12-09 19:39:40    阅读次数:979
HDU 2014
#define _CRT_SECURE_NO_WARNINGS#include typedef float ElementType;void Select_Sort(ElementType n[], int num);void Swap(ElementType *a, ElementType *b)...
分类:其他好文   时间:2014-12-08 22:59:14    阅读次数:306
Swap Nodes in Pairs
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-12-08 19:38:48    阅读次数:173
一份未完成的题目代码
#includeusing namespace::std;void swap(int *x, int *y){ int temp; temp=*x; *x=*y; *y=temp;}void mpao(int* a,int n){int x,y; for(x=1;x=0&&a[y]>n;for(;n...
分类:其他好文   时间:2014-12-08 19:20:37    阅读次数:109
冒泡算法
void swap(int *x, int *y){ int temp; temp=*x; *x=*y; *y=temp;}void mpao(int* a,int n){int x,y; for(x=1;x=0&&a[y]>a[x];y--,x--){swap(&a[y],&a[x]);}}}
分类:编程语言   时间:2014-12-08 19:18:23    阅读次数:165
zImage和uImage的区别
http://blog.csdn.net/maojudong/article/details/4178118zImage和uImage的区别 一、vmlinuzvmlinuz是可引导的、压缩的内核。“vm”代表“Virtual Memory”。Linux 支持虚拟内存,不像老的操作系统比如DOS有6...
分类:其他好文   时间:2014-12-08 13:50:26    阅读次数:334
冒泡排序,选择排序,插入排序的区别
#include int swap(int *a,int *b) { int t=*a; *a=*b; *b=t; } /* 冒泡排序的原理:每次在无序队列里将相邻两个数依次进行比较,将小数调换到前面, 逐次比较,直至将最大的数移到最后。最将剩下的N-1个数继续比较,将次大数移至倒数第二位。 依此规律,直至比较结束。 冒泡排序的代码如下: */ void ...
分类:编程语言   时间:2014-12-07 15:05:38    阅读次数:201
进程管理三大扩展工具htop
三大进程管理监控工具HTOP介绍:Htop是一款运行于Linux系统监控与进程管理软件,htop提供所有进程的列表,并且使用彩色标识出处理器、swap和内存状态。用户一般可以在top无法提供详尽系统信息的情况下选择安装并使用htop。与top相比,htop提供更方便、光标控制的界面来杀死进程..
分类:系统相关   时间:2014-12-07 11:23:29    阅读次数:300
快排查找第K小的数
#include "iostream.h" using namespace std; int findMedian(int *A,int left,int right){ int center = (left+right)/2; if(A[left]>A[center]){ swap(A[left],A[center]); } if(A[left]>A[right]){ swap(...
分类:其他好文   时间:2014-12-05 21:23:55    阅读次数:360
Linux vmstat使用
Vmstat命令的简单使用Vmstat命令是Linux/unix常用的系统监控工具,可以方便的查看CPU、内存、swap分区、IO读写等情况。 Vmstat常用的参数主要有两个:1.采集的时间间隔 2.采集的次数,例如 其中2.表示每格2秒采集一次服务器状态,3表示一共采集3次,如果是#vmstat...
分类:系统相关   时间:2014-12-05 13:59:34    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!