|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmoss.kernel.MProcessor
public class MProcessor
This class is used to represent a "virtual processor".
| Field Summary | |
|---|---|
int |
cpu
which CPU, 0 = first |
| Constructor Summary | |
|---|---|
MProcessor(int n)
constructor |
|
| Method Summary | |
|---|---|
static int |
currentCPU()
returns the virtual CPU number of the currently running process. |
static void |
finalinit()
called to do final initialisation (in the context of the init-task) |
java.lang.String |
get_processor_id()
returns the "processor ID" string |
boolean |
is_idle()
tests whether the processor is idle or not |
void |
set_process(MProcess current)
sets the currently executing process of this processor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int cpu
| Constructor Detail |
|---|
public MProcessor(int n)
n - processor number| Method Detail |
|---|
public static void finalinit()
public static int currentCPU()
public void set_process(MProcess current)
current - process now running on this processor.
if null, means the processor is going idle.public boolean is_idle()
public java.lang.String get_processor_id()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||