|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmoss.ipc.MMailBox
public class MMailBox
this class provides mailbox style IPC. processes implicitly get mailboxes addressed by their PID.
| Constructor Summary | |
|---|---|
MMailBox()
|
|
| Method Summary | |
|---|---|
static void |
deadprocess(int pid)
this is called by the kernel when a process exits. |
static void |
finalinit()
called to do final initialisation, in the context of the init-task |
static void |
init_mailbox()
initialises the MMailBox class -- should be called at system startup |
static java.lang.Object |
recvmsg(int source,
int dest,
int type)
called to receive a message. |
static int |
sendmsg(int source,
int dest,
int type,
java.lang.Object msg)
called to send a message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MMailBox()
| Method Detail |
|---|
public static void init_mailbox()
public static void finalinit()
public static int sendmsg(int source,
int dest,
int type,
java.lang.Object msg)
source - PID of source process (i.e. invoking process)dest - PID of destination processtype - message type (application specific)msg - object message (application specific)
public static java.lang.Object recvmsg(int source,
int dest,
int type)
source - PID of source process (or -1 for any)dest - PID of receiving process (i.e. invoking process)type - message type (application specific, or -1 for any)
public static void deadprocess(int pid)
pid - terminating process ID
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||