Advertisement
Guest User

Untitled

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