HW3: IPC    Q1: There really are 3 separate processes (forked or 3 separate programs) Q1 (a1): A writes "1" to P1 in shared memory Q1 (a2): A waits until both B, C completes Q1 (b1) B writes  "shared" into shared memory Q1 (b1)  B waits to writes "2" into pos1  *after* A writes "1" into pos1 of memory Q1 (c1) C writes "memory" into shared memory Q1 (c2) C waits to write "3" into pos1 of memory *after*  B writes "2" into pos1 Code  for Q1 looks concise and correct Q2 (a) how destroyed
ANS:
 shmctl()
Q2 (b) utility ANS: ipcrm Q3 (a)  i. spock killed
j. kirk killed
Q3 (b) 2 copies of kirk Q3 (b) 2 copies of spock RAW Grade Sub mit #Days Late Late Penalty   If you have concerns, please contact TA, see email course home page.
Secret Name   2 2 2 2 2 2 2 1 2 2 2 2 2 25 25 02/06   9    
Apprycle 100 2 2 2 2 2 2 2 1 2 2 2 2 2 25 100 02/06 0 0 100 Excellent
Avatar Aang  96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + D will cause an error
BDNEUIILSDNEHEVEN 100 2 2 2 2 2 2 2 1 2 2 2 2 2 25 100 02/06 0 0 100 Excellent
CodingFreak 76 2 2 2 2 2 2 2 1 2 2 0 0 0 19 76 02/06 0 0 76  
Doughboy 100 2 2 2 2 2 2 2 1 2 2 2 2 2 25 100 02/06 0 0 100  
droopylol 96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + C and Ctrl + D will cause different results
Ghost 96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + D will cause an error
Hollywood Superstar  100 2 2 2 2 2 2 2 1 2 2 2 2 2 25 100 02/06 0 0 100  
Ishmael 100 2 2 2 2 2 2 2 1 2 2 2 2 2 25 100 02/06 0 0 100 Excellent
JJ-Hua 96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + C and Ctrl + D will cause different results
JJ-Spring 96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + C and Ctrl + D will cause different results
Maxie 96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + D will cause an error
Potato Flower 96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + D will cause an error
Quetzal 100 2 2 2 2 2 2 2 1 2 2 2 2 2 25 100 02/06 0 0 100  
Sasha Fierce 96 2 2 2 2 2 2 2 1 2 1 2 2 2 24 96 02/06 0 0 96  
Semaj 100 2 2 2 2 2 2 2 1 2 2 2 2 2 25 100 02/06 0 0 100  
slamminSalmon 92 2 2 2 2 2 2 2 1 2 2 1 2 1 23 92 02/06 0 0 92 Q2 (a) Ctrl + C and Ctrl + D will cause different results
Surreal Meme 96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + C and Ctrl + D will cause different results
TallPear 96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + D will cause an error
Test Student Ignore 96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + D will cause an error
TheGreenMonkey 96 2 2 2 2 2 2 2 1 2 1 2 2 2 24 96 02/06 0 0 96 Please submit compiled pdf file.
Thirteen 96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + C will not cause an error
TomatoKetchup 96 2 2 2 2 2 2 2 1 2 2 1 2 2 24 96 02/06 0 0 96 Q2 (a) Ctrl + C and Ctrl + D will cause different results
Tst 100 2 2 2 2 2 2 2 1 2 2 2 2 2 25 100 02/06 0 0 100  
Zylox 100 2 2 2 2 2 2 2 1 2 2 2 2 2 25 100 02/06 0 0 100