进程调度:
进程优先级:没有发现一个和进程优先级直接挂钩的成员。但是应该跟一下内容有关:
* Android将应用进程分为五大类,分别是Foreground类,Visible类,Service类,
Background类,Empty类。重要性是由高到低,应该算是进程优先级由高到低。
这个可以作为进程调度优先级的依据,也可以作为OOM控制的依据。
* Process类中一些方法,如:
/**
* Sets the scheduling group for a process and all child threads
* @hide
* @param pid The identifier of the process to change.
* @param group The target group for this process from THREAD_GROUP_*.
*
* @throws IllegalArgumentException Throws IllegalArgumentException if
* <var>tid</var> does not exist.
* @throws SecurityException Throws SecurityException if your process does
* not have permission to modify the given thread, or to use the given
* priority.
*
* group == THREAD_GROUP_DEFAULT means to move all non-background priority
* threads to the foreground scheduling group, but to leave background
* priority threads alone. group == THREAD_GROUP_BG_NONINTERACTIVE moves all
* threads, regardless of p