Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.45 KB | None | 0 0
  1. Last login: Thu Mar 14 19:38:29 on ttys000
  2. Bethanys-MacBook-Pro-4:~ bethanybin$ ssh cs120whw@ieng9.ucsd.edu
  3. Password:
  4. Last login: Thu Mar 14 19:38:45 2019 from 172.58.22.199
  5. Oracle Corporation SunOS 5.11 11.3 November 2016
  6. ============================ NOTICE =================================
  7. Authorized use of this system is limited to password-authenticated
  8. usernames which are issued to individuals and are for the sole use of
  9. the person to whom they are issued.
  10.  
  11. Privacy notice: be aware that computer files, electronic mail and
  12. accounts are not private in an absolute sense. For a statement of
  13. "ETS (formerly ACMS) Acceptable Use Policies" please see our webpage
  14. at http://acms.ucsd.edu/info/aup.html.
  15. =====================================================================
  16. =====================================================================
  17. N O T I C E !!! Fall Quarter 2018 is ending!
  18. ==============================================================
  19.  
  20. IF you have class specific files stored in a temporary course specific
  21. account or a class storage directory, and you want to save them, do so now.
  22.  
  23. These dates are for Fall 2018 CLASS SPECIFIC resources only - NOT your
  24. persistent personal UCSD account.
  25.  
  26. December 18, 2018: The last day course specific accounts and storage
  27. directories will be open for classes which end this quarter (Fall 2018).
  28.  
  29. December 19, 2018: Course specific accounts, storage directories, and quota
  30. boosts for classes which end this quarter (Fall 2018) will be REMOVED from
  31. ITS student systems.
  32. Save any files which are important to you BEFORE that date.
  33.  
  34. What to do:
  35.  
  36. Copy your course specific files:
  37. To your permanent ITS personal account (google drive or home directory)
  38. and/or
  39. To a non-UCSD personal account such as gmail.com, dropbox etc
  40. and/or
  41. by emailing the material to yourself
  42. and/or
  43. To a physical storage device (thumb drive etc.)
  44.  
  45. For maximum safety you should always be regularly saving your own
  46. backup copies of your work anyway!
  47.  
  48. To look up your UCSD student account information including your Fall
  49. course specific computing resources, see:
  50.  
  51. https://sdacs.ucsd.edu/~icc/index.php
  52.  
  53. If you have questions, contact ets-consult@ucsd.edu, otherwise:
  54.  
  55. Congratulations on finishing another quarter and good luck on finals!
  56.  
  57. ==============================================================
  58.  
  59.  
  60. Account information for user: cs120whw
  61. Remaining allocation for cs120whw was 193.62 units
  62. as of Thu Mar 14 05:12:05 2019
  63. cs120whw is connected to recharge printer (real-money) account: la078066
  64. la078066 balance: $3.55
  65. la078066 status is: active
  66. la078066 access groups: nocover
  67. =============================================================
  68. For details about your account resources, please use the
  69. Account Lookup Tool on our website at http://acms.ucsd.edu
  70. =============================================================
  71. Disk quotas for cs120whw (uid 2973):
  72. Filesystem usage quota limit timeleft files quota limit timeleft
  73. /home/solaris
  74. 18608 404800 404800 2749 17000 17000
  75.  
  76. Fri Mar 15, 2019 12:15am - Prepping cs120w
  77.  
  78. [cs120whw@ieng9]:~:501$ cd pa1
  79. [cs120whw@ieng9]:pa1:502$ ls
  80. Makefile mycode1.c pa1.tar pa1a.c pa1c pa1d.c pa1f test_1 test_2.c
  81. aux.h mycode1.h pa1.txt pa1b pa1c.c pa1e pa1f.c test_1.c umix.h
  82. mycode1. mycode1.o pa1a pa1b.c pa1d pa1e.c sys.h test_2
  83. [cs120whw@ieng9]:pa1:503$ vim mycode1.c
  84. [cs120whw@ieng9]:pa1:504$ cd ..
  85. [cs120whw@ieng9]:~:505$ cd pa2
  86. [cs120whw@ieng9]:pa2:506$ cd ..
  87. [cs120whw@ieng9]:~:507$ cd 120_tests/
  88. [cs120whw@ieng9]:120_tests:508$ cd ..
  89. [cs120whw@ieng9]:~:509$ ls
  90. 120_tests cse_120_pa4_tests pa2 pa4 test_2.c
  91. CSE120-Results pa1 pa2old pa4old
  92. Makefile pa1master pa3 pa4original
  93. cse120-pa3testcases pa1old pa3master test_1.c
  94. [cs120whw@ieng9]:~:510$ vim CSE120-Results/
  95. [cs120whw@ieng9]:~:511$ cd CSE120-Results/
  96. [cs120whw@ieng9]:CSE120-Results:512$ ls
  97. pa1.results pa2.results pa3.results pa4.results
  98. [cs120whw@ieng9]:CSE120-Results:513$ vim pa2.results
  99. [cs120whw@ieng9]:CSE120-Results:514$ cd ../pa2
  100. [cs120whw@ieng9]:pa2:515$ vim mycode2.c
  101. [cs120whw@ieng9]:pa2:516$ cd ../pa3
  102. [cs120whw@ieng9]:pa3:517$ vim mycode3.c
  103. [cs120whw@ieng9]:pa3:518$ ls
  104. 1.OUTPUT 3.OUTPUT 7.OUTPUT aux.h pa3.t pa3a.c pa3c.c runTests umix.h
  105. 10.OUTPUT 4.OUTPUT 8.OUTPUT mycode3.c pa3.tar pa3b pa3d sanity
  106. 11.OUTPUT 5.OUTPUT 9.OUTPUT mycode3.h pa3.txt pa3b.c pa3d.c sys.h
  107. 2.OUTPUT 6.OUTPUT Makefile mycode3.o pa3a pa3c runAll.sh testcases.c
  108. [cs120whw@ieng9]:pa3:519$ vim pa3d.c
  109. [cs120whw@ieng9]:pa3:520$ cd ../pa1
  110. [cs120whw@ieng9]:pa1:521$ cd ../pa4
  111. [cs120whw@ieng9]:pa4:522$ ls
  112. 1.EXPECTED 2.EXPECTED cse120-pa4testcases pa4b.c solution.txt
  113. 1.OUTPUT 2.OUTPUT mycode4.c pa4c.c sys.h
  114. 10.EXPECTED 3.EXPECTED mycode4.h passOrFail.sh t1
  115. 10.OUTPUT 3.OUTPUT mycode4.o r1 t1.c
  116. 11.EXPECTED 4.EXPECTED myout r1.txt t2
  117. 11.OUTPUT 4.OUTPUT myr1.txt r2 t2.c
  118. 12.EXPECTED 5.EXPECTED myr2.txt r2.txt t3
  119. 12.OUTPUT 5.OUTPUT myr3.txt r3 t3.c
  120. 13.EXPECTED 6.EXPECTED myr4.txt r3.txt t4
  121. 13.OUTPUT 6.OUTPUT myr5.txt r4 t4.c
  122. 14.EXPECTED 7.EXPECTED myr6.txt r4.txt t5
  123. 14.OUTPUT 7.OUTPUT myt1 r5 t5.c
  124. 15.EXPECTED 8.EXPECTED myt2 r5.txt t6
  125. 15.OUTPUT 8.OUTPUT myt3 r6 t6.c
  126. 16.EXPECTED 9.EXPECTED myt4 r6.txt testcases.c
  127. 16.OUTPUT 9.OUTPUT myt5 rpa4c tests
  128. 17.EXPECTED Makefile myt6 runAll.sh tpa4c
  129. 17.OUTPUT Tests pa4.tar runAndCompare.sh umix.h
  130. 18.EXPECTED answer pa4.txt runTests usemythread.h
  131. 18.OUTPUT aux.h pa4a.c sanity
  132. [cs120whw@ieng9]:pa4:523$ vim mycode4.c
  133. [cs120whw@ieng9]:pa4:524$
  134. [cs120whw@ieng9]:pa4:524$ vim mycode4.c
  135.  
  136.  
  137. return currThread;
  138.  
  139. }
  140.  
  141. /* MySchedThread () causes the running thread to simply give up the
  142. * CPU and allow another thread to be scheduled. Selecting which
  143. * thread to run is determined here. Note that the same thread may
  144. * be chosen (as will be the case if there are no other threads).
  145. */
  146.  
  147. void MySchedThread ()
  148. {
  149. if (! MyInitThreadsCalled) {
  150. Printf ("MySchedThread: Must call MyInitThreads first\n");
  151. Exit();
  152. }
  153. else{
  154. if(thread[queue[0]].valid != 0){
  155. int toYield = queue[0];
  156. if(toYield == -1){
  157. Exit();
  158. }
  159. else{
  160. // DPrintf("yielding to %d\n", toYield);
  161. scheduleReturn = 1;
  162. prevThread = -1;
  163. thread[toYield].scheduled = 1;
  164. MyYieldThread(toYield);
  165. }
  166. }
  167. else{
  168. Exit();
  169. }
  170. }
  171. }
  172.  
  173. /* MyExitThread () causes the currently running thread to exit.
  174. */
  175.  
  176. void MyExitThread ()
  177. {
  178. if (! MyInitThreadsCalled) {
  179. Printf ("MyExitThread: Must call MyInitThreads first\n");
  180. Exit();
  181. }
  182. else{
  183. numActiveThreads--;
  184. thread[currThread].valid = 0;
  185. MySchedThread();
  186. }
  187. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement