- 5% Extra
Credit: instead of Canvas, submit your assignment via https://education.github.com/ (MUST
be private, invite swirsz) I will use Github’s last modified date as the
submission date. Make sure to put your full name in the header of your
file.
(example below)
Last Revised: February 26, 2017
$ gcc Lab3.c -o Lab3 && ./Lab3 .. Lab3.c
File: ..
Directory: /root
You have general permissions: read execute
File: Lab3.c
Directory: /home/users15/sew25545
You have owner permissions: read write execute
Hint for Semaphores implemented as pipes:
void V(int pd[]) {
int a=1;
write(pd[1],&a,sizeof(int));
}
void P(int pd[]) {
int a;
read(pd[0],&a,sizeof(int));
}