Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. ################
  2. YOUR INFO
  3. ################
  4. Name1: Kelvin He
  5. EID1: kh33866
  6. CS login: kelvinhe
  7. Unique Number: 51095
  8.  
  9. Slip days used:
  10.  
  11. ****EACH student submits a (unique) design document.****
  12.  
  13. ################
  14. YOUR PARTNER'S INFO
  15. ################
  16. Name1: Rambo Wu
  17. EID1: rw24388
  18. CS login: rambowu
  19. Unique Number: 51090
  20.  
  21. Your partner's ranking (scale below):
  22.  
  23. ################
  24. PARTNER EVALUATION SCALE
  25. ################
  26. Excellent: Consistently went above and beyond - tutored others, carried
  27. more than his/her fair share of the load.
  28.  
  29. Very Good: Consistently did what he/she was supposed to do, very well
  30. prepared and cooperative.
  31.  
  32. Satisfactory: Usually did what he/she was supposed to do, minimally
  33. prepared and cooperative.
  34.  
  35. Marginal: Sometimes failed to show up and/or rarely prepared.
  36.  
  37. Deficient: Often failed to show up and/or rarely prepared.
  38.  
  39. Unsatisfactory: Consistently failed to show up and/or unprepared.
  40.  
  41. Superficial: Practically no participation.
  42.  
  43. No Show: No participation at all.
  44.  
  45. ################
  46. Preliminaries
  47. ################
  48. (1) If you have any preliminary comments on your submission, notes for
  49. the TAs, or extra credit, please give them here.
  50.  
  51. (2) Please cite any offline or online sources you consulted while
  52. preparing your submission, other than the Linux documentation,
  53. course text, and lecture notes.
  54.  
  55.  
  56. ################
  57. Questions regarding Part 0
  58. ################
  59. (1) How many child processes are created when doFib() begins with
  60. an input of 5? Show the return value for each child process, numbering
  61. the processes beginning with 0 (the original process) and incrementing for
  62. each child process.
  63.  
  64. 14 child processes are created when doFib is run with an input of 5.
  65. 0 - 5
  66. 1 - (Child of process 0) 2
  67. 2 - (Child of process 0) 3
  68. 3 - (Child of process 1) 1 (base case)
  69. 4 - (Child of process 1) 1
  70. 5 - (Child of process 2) 1
  71. 6 - (Child of process 2) 2
  72. 7 - (Child of process 4) 0 (base case)
  73. 8 - (Child of process 4) 1 (base case)
  74. 9 - (Child of process 5) 0 (base case)
  75. 10 - (Child of process 5) 1 (base case)
  76. 11 - (Child of process 6) 1 (base case)
  77. 12 - (Child of process 6) 1
  78. 13 - (Child of process 12) 0 (base case)
  79. 14 - (Child of process 12) 1 (base case)
  80. (2) In part 0.3, which flavor of exec did you choose to use? Why?
  81.  
  82. We used execve because we already used parseline earlier to get the filename.
  83.  
  84. ################
  85. Questions regarding Part 1
  86. ################
  87. (1) In the provided utility function Signal(), what does the call to
  88. sigaction() do? Why was sigaction() used instead of signal()?
  89.  
  90. (2) What is the last assembly language instruction executed by the
  91. signal handler function that you write? (You may choose either signal
  92. handler.)
  93.  
  94. (3) After the instruction identified in the previous question executes,
  95. what is the next assembly language instruction executed?
  96.  
  97. (4) When the signal handler finishes running, it must restore all of
  98. the registers from the interrupted thread to exactly their values
  99. before the signal occurred. How is this done?
  100.  
  101.  
  102. ################
  103. Questions regarding Part 2
  104. ################
  105. (1) In msh.c, we use three separate signal handlers to catch our signals.
  106. You can also use a single signal handler to catch all three signals. Is
  107. there a design advantage of one over the other? Explain your answer.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement