其实init进程启动后,ServiceManager进程的启动,远比zygote要早,因为在启动zygote进程时需要用到ServiceManager进程的服务。ServiceManager是一个守护进程,它维护着系统服务和客户端的binder通信。
在Android系统中用到最多的通信机制就是Binder,Binder主要由Client、Server、ServiceManager和Binder...
分类:
移动开发 时间:
2014-06-20 12:53:13
阅读次数:
306
给进程设置僵尸状态的目的是维护子进程的信息,以便父进程在以后某个时间获取。这些信息包括子进程的进程ID、终止状态以及资源利用信息(CPU时间,内存使用量等等)。如果一个进程终止,而该进程有子进程处于僵尸状态,那么它的所有僵尸子进程的父进程ID将被重置为1(init进程)。继承这些子进程的init进程将清理它们(init进程将wait它们,从而去除僵尸状态)。
但通常情况下,我们是...
分类:
系统相关 时间:
2014-06-20 11:29:25
阅读次数:
336
//发送通知UILocalNotification*notification=[[UILocalNotificationalloc]init];if(notification!=nil){NSDate*now=[NSDatenew];notification.fireDate=[nowdateByA...
分类:
移动开发 时间:
2014-06-11 22:49:44
阅读次数:
373
1.1Implement an algorithm to determine if a
string has all unique characters. What if you cannot use additional data
structures?字符串问题,需要先确定是不是只有ASCII码...
分类:
其他好文 时间:
2014-06-11 12:27:53
阅读次数:
247
viewfunction init_tree(product_name) { var
htmlobj=$.ajax({url: "get_all_file?param=" + param_value, async: false}); var
jsonNodes = htmlobj.respon...
分类:
Web程序 时间:
2014-06-11 08:03:40
阅读次数:
245
pstree shows running processes as a tree. The tree
is rooted at either pid or init if pid is omitted. If a user name is specified,
all process trees r...
分类:
系统相关 时间:
2014-06-11 07:46:47
阅读次数:
522
仅记录使用,原文来自于:http://blog.csdn.net/acs713/article/details/7322082一、关于/etc/init.d
如果你使用过linux系统,那么你一定听说过init.d目录。这个目录到底是干嘛的呢?它归根结底只做了一件事情,但这件事情非同小可,是...
分类:
系统相关 时间:
2014-06-11 07:38:03
阅读次数:
264
在linux下关机和重启系统有shutdown、halt、reboot、init命令...
分类:
系统相关 时间:
2014-06-07 12:46:58
阅读次数:
330
python实现的链表,包括插入、查找、删除操作
#!/usr/bin/python
class linknode():
def __init__(self,k,n=None):
self.key=k;
self.next=n;
def createlist(): #创建链表
n=raw_input("enter the num of nodes");
n=int(...
分类:
编程语言 时间:
2014-06-07 12:23:46
阅读次数:
204
在vm下redhat5下安装oracle 11g后,登录sqlplus 报:
sqlplus: error while loading shared libraries: /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc:...
分类:
数据库 时间:
2014-06-07 12:00:29
阅读次数:
303