Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Last login: Thu Mar 14 19:38:29 on ttys000
- Bethanys-MacBook-Pro-4:~ bethanybin$ ssh cs120whw@ieng9.ucsd.edu
- Password:
- Last login: Thu Mar 14 19:38:45 2019 from 172.58.22.199
- Oracle Corporation SunOS 5.11 11.3 November 2016
- ============================ NOTICE =================================
- Authorized use of this system is limited to password-authenticated
- usernames which are issued to individuals and are for the sole use of
- the person to whom they are issued.
- Privacy notice: be aware that computer files, electronic mail and
- accounts are not private in an absolute sense. For a statement of
- "ETS (formerly ACMS) Acceptable Use Policies" please see our webpage
- at http://acms.ucsd.edu/info/aup.html.
- =====================================================================
- =====================================================================
- N O T I C E !!! Fall Quarter 2018 is ending!
- ==============================================================
- IF you have class specific files stored in a temporary course specific
- account or a class storage directory, and you want to save them, do so now.
- These dates are for Fall 2018 CLASS SPECIFIC resources only - NOT your
- persistent personal UCSD account.
- December 18, 2018: The last day course specific accounts and storage
- directories will be open for classes which end this quarter (Fall 2018).
- December 19, 2018: Course specific accounts, storage directories, and quota
- boosts for classes which end this quarter (Fall 2018) will be REMOVED from
- ITS student systems.
- Save any files which are important to you BEFORE that date.
- What to do:
- Copy your course specific files:
- To your permanent ITS personal account (google drive or home directory)
- and/or
- To a non-UCSD personal account such as gmail.com, dropbox etc
- and/or
- by emailing the material to yourself
- and/or
- To a physical storage device (thumb drive etc.)
- For maximum safety you should always be regularly saving your own
- backup copies of your work anyway!
- To look up your UCSD student account information including your Fall
- course specific computing resources, see:
- https://sdacs.ucsd.edu/~icc/index.php
- If you have questions, contact ets-consult@ucsd.edu, otherwise:
- Congratulations on finishing another quarter and good luck on finals!
- ==============================================================
- Account information for user: cs120whw
- Remaining allocation for cs120whw was 193.62 units
- as of Thu Mar 14 05:12:05 2019
- cs120whw is connected to recharge printer (real-money) account: la078066
- la078066 balance: $3.55
- la078066 status is: active
- la078066 access groups: nocover
- =============================================================
- For details about your account resources, please use the
- Account Lookup Tool on our website at http://acms.ucsd.edu
- =============================================================
- Disk quotas for cs120whw (uid 2973):
- Filesystem usage quota limit timeleft files quota limit timeleft
- /home/solaris
- 18608 404800 404800 2749 17000 17000
- Fri Mar 15, 2019 12:15am - Prepping cs120w
- [cs120whw@ieng9]:~:501$ cd pa1
- [cs120whw@ieng9]:pa1:502$ ls
- Makefile mycode1.c pa1.tar pa1a.c pa1c pa1d.c pa1f test_1 test_2.c
- aux.h mycode1.h pa1.txt pa1b pa1c.c pa1e pa1f.c test_1.c umix.h
- mycode1. mycode1.o pa1a pa1b.c pa1d pa1e.c sys.h test_2
- [cs120whw@ieng9]:pa1:503$ vim mycode1.c
- [cs120whw@ieng9]:pa1:504$ cd ..
- [cs120whw@ieng9]:~:505$ cd pa2
- [cs120whw@ieng9]:pa2:506$ cd ..
- [cs120whw@ieng9]:~:507$ cd 120_tests/
- [cs120whw@ieng9]:120_tests:508$ cd ..
- [cs120whw@ieng9]:~:509$ ls
- 120_tests cse_120_pa4_tests pa2 pa4 test_2.c
- CSE120-Results pa1 pa2old pa4old
- Makefile pa1master pa3 pa4original
- cse120-pa3testcases pa1old pa3master test_1.c
- [cs120whw@ieng9]:~:510$ vim CSE120-Results/
- [cs120whw@ieng9]:~:511$ cd CSE120-Results/
- [cs120whw@ieng9]:CSE120-Results:512$ ls
- pa1.results pa2.results pa3.results pa4.results
- [cs120whw@ieng9]:CSE120-Results:513$ vim pa2.results
- [cs120whw@ieng9]:CSE120-Results:514$ cd ../pa2
- [cs120whw@ieng9]:pa2:515$ vim mycode2.c
- [cs120whw@ieng9]:pa2:516$ cd ../pa3
- [cs120whw@ieng9]:pa3:517$ vim mycode3.c
- [cs120whw@ieng9]:pa3:518$ ls
- 1.OUTPUT 3.OUTPUT 7.OUTPUT aux.h pa3.t pa3a.c pa3c.c runTests umix.h
- 10.OUTPUT 4.OUTPUT 8.OUTPUT mycode3.c pa3.tar pa3b pa3d sanity
- 11.OUTPUT 5.OUTPUT 9.OUTPUT mycode3.h pa3.txt pa3b.c pa3d.c sys.h
- 2.OUTPUT 6.OUTPUT Makefile mycode3.o pa3a pa3c runAll.sh testcases.c
- [cs120whw@ieng9]:pa3:519$ vim pa3d.c
- [cs120whw@ieng9]:pa3:520$ cd ../pa1
- [cs120whw@ieng9]:pa1:521$ cd ../pa4
- [cs120whw@ieng9]:pa4:522$ ls
- 1.EXPECTED 2.EXPECTED cse120-pa4testcases pa4b.c solution.txt
- 1.OUTPUT 2.OUTPUT mycode4.c pa4c.c sys.h
- 10.EXPECTED 3.EXPECTED mycode4.h passOrFail.sh t1
- 10.OUTPUT 3.OUTPUT mycode4.o r1 t1.c
- 11.EXPECTED 4.EXPECTED myout r1.txt t2
- 11.OUTPUT 4.OUTPUT myr1.txt r2 t2.c
- 12.EXPECTED 5.EXPECTED myr2.txt r2.txt t3
- 12.OUTPUT 5.OUTPUT myr3.txt r3 t3.c
- 13.EXPECTED 6.EXPECTED myr4.txt r3.txt t4
- 13.OUTPUT 6.OUTPUT myr5.txt r4 t4.c
- 14.EXPECTED 7.EXPECTED myr6.txt r4.txt t5
- 14.OUTPUT 7.OUTPUT myt1 r5 t5.c
- 15.EXPECTED 8.EXPECTED myt2 r5.txt t6
- 15.OUTPUT 8.OUTPUT myt3 r6 t6.c
- 16.EXPECTED 9.EXPECTED myt4 r6.txt testcases.c
- 16.OUTPUT 9.OUTPUT myt5 rpa4c tests
- 17.EXPECTED Makefile myt6 runAll.sh tpa4c
- 17.OUTPUT Tests pa4.tar runAndCompare.sh umix.h
- 18.EXPECTED answer pa4.txt runTests usemythread.h
- 18.OUTPUT aux.h pa4a.c sanity
- [cs120whw@ieng9]:pa4:523$ vim mycode4.c
- [cs120whw@ieng9]:pa4:524$
- [cs120whw@ieng9]:pa4:524$ vim mycode4.c
- return currThread;
- }
- /* MySchedThread () causes the running thread to simply give up the
- * CPU and allow another thread to be scheduled. Selecting which
- * thread to run is determined here. Note that the same thread may
- * be chosen (as will be the case if there are no other threads).
- */
- void MySchedThread ()
- {
- if (! MyInitThreadsCalled) {
- Printf ("MySchedThread: Must call MyInitThreads first\n");
- Exit();
- }
- else{
- if(thread[queue[0]].valid != 0){
- int toYield = queue[0];
- if(toYield == -1){
- Exit();
- }
- else{
- // DPrintf("yielding to %d\n", toYield);
- scheduleReturn = 1;
- prevThread = -1;
- thread[toYield].scheduled = 1;
- MyYieldThread(toYield);
- }
- }
- else{
- Exit();
- }
- }
- }
- /* MyExitThread () causes the currently running thread to exit.
- */
- void MyExitThread ()
- {
- if (! MyInitThreadsCalled) {
- Printf ("MyExitThread: Must call MyInitThreads first\n");
- Exit();
- }
- else{
- numActiveThreads--;
- thread[currThread].valid = 0;
- MySchedThread();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement