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 />

T ID KEY MODE OWNER GROUP<br />

Message Queues:<br />

q 0 0x0000000a --------- neville staff<br />

q 1 0x0000000f rw-r-r- neville staff<br />

Queue Numbering System<br />

#include <br />

#include <br />

#include <br />

#define PERMS 0666<br />

main()<br />

{<br />

int i, msqid;<br />

key_t key = 100;<br />

for (i=0; i

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

Saved successfully!

Ooh no, something went wrong!