http://acm.hdu.edu.cn/showproblem.php?pid=1599#include #include #include
#include #include #include #include #include #include #include #include using...
分类:
其他好文 时间:
2014-06-11 07:27:25
阅读次数:
243
题意:http://acdream.info/problem?pid=1112
Problem Description
Here is Alice and Bob again !
Alice and Bob are playing a game. There are several numbers.First, Alice choose a number n.Then he c...
分类:
其他好文 时间:
2014-06-10 14:48:56
阅读次数:
236
#include #include /*功能:复制进程參数:无返回值: 成功: 父进程:返回子进程id
子进程:返回0 失败: 返回-1*/pid_t fork(void); 由fork创建的新进程被称为子进程(child process)。该函数...
分类:
系统相关 时间:
2014-06-09 22:20:29
阅读次数:
417
signal(SIGCHLD, SignalHandler);
注册软中断,对应的apiclose(socket);ret=fork(): 父进程,返回子进程的pid. 子进程返回0,
出错返回<0set_process_name("Name"), 当前进程名称dpopen, dlclose,dls...
分类:
系统相关 时间:
2014-06-09 18:24:11
阅读次数:
306
SELECT
FSAV.USER_NAME,FU.DESCRIPTION,FSAV.RESPONSIBILITY_NAME,FSAV.USER_FORM_NAME,FSAV.LOGIN_NAME,FSAV.TIME,FSAV.PID,FSAV.TERMINAL_ID,FSAV.USER_ID,FSA...
分类:
数据库 时间:
2014-06-09 18:11:09
阅读次数:
282
分析思路:
要知道运行了哪些进程,结束的目标进程是哪些,如何得到运行中的进程,需要哪些操作。借助搜索引擎,搜索关键字:kconsole
列出进程,查询相关信息,文后参考链接执行过程: ps aux 列出运行进程 (记录结束的目标进程的 pid,比如 firefox pid 为 22481) 或者
g...
分类:
系统相关 时间:
2014-06-09 00:25:51
阅读次数:
316
There is an need of kill one port is already in
use. The command is : lsof -i:8000 There will be a list of: command pid user fd
type device size...
分类:
其他好文 时间:
2014-06-08 21:47:33
阅读次数:
366
问题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1495
题目大意:一个瓶子容积s,两个杯子容积分别n,m,并且都没有刻度(不能比对噢!)。相互倒水,求平分的他们的最少倒水次数。
思路:暴力搜索吧。并且求最少,(即最优解),随意上BFS;
思考:状态,转移过程,怎么剪纸。
惨痛的debug,我不解释了。...
分类:
其他好文 时间:
2014-06-08 15:48:26
阅读次数:
234
Android系统内核基于Linux2.6+内核,因此,其在进程内存管理方面的很多机制和Linux是很相像的。首先,让我们来看一个典型的Android进程的内存镜像(App进程和Native本地进程略有差别,但原理是一样的):
和Linux一样,Android提供了基于/proc的“伪文件”系统来作为查看用户进程内存映像的接口(cat /proc/pid/maps)。可以说,这是Android系统内核层开放给用户层关于进程内存信息的一扇窗户。通过它,我们可以查看到当前进程空间的内存映射情况,模块加载情况以...
分类:
移动开发 时间:
2014-06-08 03:04:05
阅读次数:
342
主配置文件(nginx.conf):usernginxnginx; #运行用户worker_processes8; #启动进程数,一般等于CPU的总核数或两倍,太多会占用CPU增高。error_log/tol/app/nginx/logs/nginx_error.logcrit; #定义错误日志文件及级别,有[debug|info|notice|warn|error|crit]pid/tol/app/nginx/lo..
分类:
其他好文 时间:
2014-06-08 02:31:34
阅读次数:
320