在前面的文章分析完init.rc的解析以后,我们知道现在action按照init.c的main函数中的秩序,维护了一条qlist的链表,listnode为action_qlist
service也维护了一条链表,listnode为service_list。
那么,在android的启动过程中,action和service是如何被启动的呢?
我们接下来再回到我们一直分析的init.c的main函数中来看一下。...
分类:
移动开发 时间:
2015-03-30 18:41:41
阅读次数:
270
I am lazy so I did not clear the two dynamic allowcated . 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ...
分类:
其他好文 时间:
2015-03-21 18:33:56
阅读次数:
163
Iterative: 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x) : ...
分类:
其他好文 时间:
2015-03-21 08:37:15
阅读次数:
117
Use merge two looply merge the from the queue. 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNod...
分类:
其他好文 时间:
2015-03-21 07:30:23
阅读次数:
126
题目:swap nodes in pairs
/**
* LeetCode Swap Nodes in Pairs
* 题目:输入一个链表,要求将链表每相邻的两个节点交换位置后输出
* 思路:遍历一遍即可,时间复杂度O(n)
* Definition for singly-linked list.
* public class ListNode {
* int val;
...
分类:
其他好文 时间:
2015-03-20 14:29:30
阅读次数:
113
Just use two pointers. CC150 classical question 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNo...
分类:
其他好文 时间:
2015-03-20 08:06:22
阅读次数:
125
1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x) : val(x), ne...
分类:
其他好文 时间:
2015-03-20 08:03:53
阅读次数:
125
Find the common length part, then check with two pointers. 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 *...
分类:
其他好文 时间:
2015-03-20 06:57:04
阅读次数:
135
Do not forget to break the inner loop, when you find the insert position. 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * ...
分类:
其他好文 时间:
2015-03-20 06:56:19
阅读次数:
120
ListNode类(结点类) 1 package leetcode.utilities; 2 3 public class ListNode { 4 public int val ; 5 public ListNode next ; 6 public ListNo...
分类:
编程语言 时间:
2015-03-17 23:21:29
阅读次数:
199