child_process是node一个比较重要的模块,通过它可以实现创建多线程,来利用多核CPU。这个模块提供了四个创建子进程的函数。spawn、exec、execFile、fork。spawn是最原始的创建子进程的函数,剩下的三个是对这个函数不同程度的封装。spawn不支持回调函数。exec和e...
分类:
Web程序 时间:
2014-09-09 18:04:29
阅读次数:
354
ProblemWhile indexes can speed up execution of queries several fold as they can make the querying process faster, there is overhead associated with th...
分类:
数据库 时间:
2014-09-09 15:23:08
阅读次数:
376
First what I wanna make clear is that in the official website the detailed process of installation has been described. you could call it throught the link
http://docs.mongodb.org/manual/tutorial/ins...
分类:
数据库 时间:
2014-09-09 12:52:38
阅读次数:
219
名称: pmap - report memory map of a process(查看进程的内存映像信息)用法 pmap [ -x | -d ] [ -q ] pids... pmap -V选项含义 -x extended Show the extended format. 显示扩展格式 -d d...
分类:
系统相关 时间:
2014-09-06 21:14:53
阅读次数:
401
1.node中使用定时器的问题在于,它并非精确的.譬如setTimeout()设定一个任务在10ms后执行,但是在9ms后,有一个任务占用了5ms,再次轮到定时器时,已经耽误了4ms.好了node中的定时器就简单的讲这么多.2.看代码:1 process.nextTick(function(){2 ...
分类:
其他好文 时间:
2014-09-06 19:55:03
阅读次数:
283
1、foreground process 正处于activity resume状态 正处于bound服务交互的状态 正处于服务在前台运行的状态(StartForeGround()被调用) Service生命周期正在被执行(onCreate(),onStart(),onDestroy()) ...
分类:
移动开发 时间:
2014-09-06 02:13:32
阅读次数:
248
---CPU性能计数器说明 CPU:1.System:%Total Processor Time 平均CPU利用率。指处理器执行非闲置线程时间的百分比,测量处理器繁忙的时间 这个计数器设计成用来作为处理器活动的主要指示器,可以选择单个CPU实例,也可以选择Total2.System:%Process...
分类:
其他好文 时间:
2014-09-05 17:36:01
阅读次数:
397
In particular, Microsoft® instituted a device driver certification process for itsWindows® desktop and server operating systems to ensure the drivers ...
ps aux的功能是打印出所有进程
ps是最基本也是最强大的进程查看命令
aux都是参数
a = show processes for all users 显示所有用户的进程
u = display the process's user/owner 显示用户
x = also show processes not attached to a terminal 显示无控制终端的进程...
分类:
系统相关 时间:
2014-09-05 13:02:11
阅读次数:
475
现象,这个网站我总计能抽取将近500个URL,但实际只抽取了100条解析:nutch默认从一个页面解析出的链接,只取前 100 个。 db.max.outlinks.per.page 100 The maximum number of outlinks that we'll process ...
分类:
其他好文 时间:
2014-09-05 12:46:31
阅读次数:
162