16.05.2015 Views

Working with the Unix OS

Working with the Unix OS

Working with the Unix OS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Interprocess Communication<br />

};<br />

int msgid;<br />

main()<br />

{<br />

extern cleanup();<br />

int i, pid, *pint;<br />

struct msgform msg;<br />

for (i=0; i 0)<br />

consider first message on queue <strong>with</strong> given type:<br />

else /* requested message type < 0 */<br />

consider first of <strong>the</strong> lowest typed messages on queue,<br />

such that its type is

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!