· 7 years ago · Mar 15, 2019, 08:00 AM
1Last login: Thu Mar 14 19:38:29 on ttys000
2Bethanys-MacBook-Pro-4:~ bethanybin$ ssh cs120whw@ieng9.ucsd.edu
3Password:
4Last login: Thu Mar 14 19:38:45 2019 from 172.58.22.199
5Oracle Corporation SunOS 5.11 11.3 November 2016
6============================ NOTICE =================================
7Authorized use of this system is limited to password-authenticated
8usernames which are issued to individuals and are for the sole use of
9the person to whom they are issued.
10
11Privacy notice: be aware that computer files, electronic mail and
12accounts are not private in an absolute sense. For a statement of
13"ETS (formerly ACMS) Acceptable Use Policies" please see our webpage
14at http://acms.ucsd.edu/info/aup.html.
15=====================================================================
16=====================================================================
17N O T I C E !!! Fall Quarter 2018 is ending!
18==============================================================
19
20IF you have class specific files stored in a temporary course specific
21account or a class storage directory, and you want to save them, do so now.
22
23These dates are for Fall 2018 CLASS SPECIFIC resources only - NOT your
24persistent personal UCSD account.
25
26December 18, 2018: The last day course specific accounts and storage
27directories will be open for classes which end this quarter (Fall 2018).
28
29December 19, 2018: Course specific accounts, storage directories, and quota
30boosts for classes which end this quarter (Fall 2018) will be REMOVED from
31ITS student systems.
32Save any files which are important to you BEFORE that date.
33
34What to do:
35
36Copy your course specific files:
37To your permanent ITS personal account (google drive or home directory)
38and/or
39To a non-UCSD personal account such as gmail.com, dropbox etc
40and/or
41by emailing the material to yourself
42and/or
43To a physical storage device (thumb drive etc.)
44
45For maximum safety you should always be regularly saving your own
46backup copies of your work anyway!
47
48To look up your UCSD student account information including your Fall
49course specific computing resources, see:
50
51https://sdacs.ucsd.edu/~icc/index.php
52
53If you have questions, contact ets-consult@ucsd.edu, otherwise:
54
55Congratulations on finishing another quarter and good luck on finals!
56
57==============================================================
58
59
60Account information for user: cs120whw
61 Remaining allocation for cs120whw was 193.62 units
62 as of Thu Mar 14 05:12:05 2019
63cs120whw 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=============================================================
68For details about your account resources, please use the
69Account Lookup Tool on our website at http://acms.ucsd.edu
70=============================================================
71Disk quotas for cs120whw (uid 2973):
72Filesystem usage quota limit timeleft files quota limit timeleft
73/home/solaris
74 18608 404800 404800 2749 17000 17000
75
76Fri Mar 15, 2019 12:15am - Prepping cs120w
77
78[cs120whw@ieng9]:~:501$ cd pa1
79[cs120whw@ieng9]:pa1:502$ ls
80Makefile mycode1.c pa1.tar pa1a.c pa1c pa1d.c pa1f test_1 test_2.c
81aux.h mycode1.h pa1.txt pa1b pa1c.c pa1e pa1f.c test_1.c umix.h
82mycode1. 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
90120_tests cse_120_pa4_tests pa2 pa4 test_2.c
91CSE120-Results pa1 pa2old pa4old
92Makefile pa1master pa3 pa4original
93cse120-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
97pa1.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
1041.OUTPUT 3.OUTPUT 7.OUTPUT aux.h pa3.t pa3a.c pa3c.c runTests umix.h
10510.OUTPUT 4.OUTPUT 8.OUTPUT mycode3.c pa3.tar pa3b pa3d sanity
10611.OUTPUT 5.OUTPUT 9.OUTPUT mycode3.h pa3.txt pa3b.c pa3d.c sys.h
1072.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
1121.EXPECTED 2.EXPECTED cse120-pa4testcases pa4b.c solution.txt
1131.OUTPUT 2.OUTPUT mycode4.c pa4c.c sys.h
11410.EXPECTED 3.EXPECTED mycode4.h passOrFail.sh t1
11510.OUTPUT 3.OUTPUT mycode4.o r1 t1.c
11611.EXPECTED 4.EXPECTED myout r1.txt t2
11711.OUTPUT 4.OUTPUT myr1.txt r2 t2.c
11812.EXPECTED 5.EXPECTED myr2.txt r2.txt t3
11912.OUTPUT 5.OUTPUT myr3.txt r3 t3.c
12013.EXPECTED 6.EXPECTED myr4.txt r3.txt t4
12113.OUTPUT 6.OUTPUT myr5.txt r4 t4.c
12214.EXPECTED 7.EXPECTED myr6.txt r4.txt t5
12314.OUTPUT 7.OUTPUT myt1 r5 t5.c
12415.EXPECTED 8.EXPECTED myt2 r5.txt t6
12515.OUTPUT 8.OUTPUT myt3 r6 t6.c
12616.EXPECTED 9.EXPECTED myt4 r6.txt testcases.c
12716.OUTPUT 9.OUTPUT myt5 rpa4c tests
12817.EXPECTED Makefile myt6 runAll.sh tpa4c
12917.OUTPUT Tests pa4.tar runAndCompare.sh umix.h
13018.EXPECTED answer pa4.txt runTests usemythread.h
13118.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
147void 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
176void 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}