· 7 years ago · Mar 15, 2019, 08:02 AM
1Last login: Thu Mar 14 21:49:10 on ttys000
2ITS-C02WG2ULHTDD:~ mantonio$ ssh -X cs120wee@ieng9.ucsd.edu
3Password:
4Last login: Thu Mar 14 21:49:24 2019 from 137.110.204.209
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: cs120wee
61 Remaining allocation for cs120wee was 193.79 units
62 as of Thu Mar 14 05:12:05 2019
63cs120wee is connected to recharge printer (real-money) account: la076093
64 la076093 balance: $8.15
65 la076093 status is: active
66=============================================================
67For details about your account resources, please use the
68Account Lookup Tool on our website at http://acms.ucsd.edu
69=============================================================
70Disk quotas for cs120wee (uid 2869):
71Filesystem usage quota limit timeleft files quota limit timeleft
72/home/solaris
73 5932 404800 404800 1131 17000 17000
74
75Fri Mar 15, 2019 12:54am - Prepping cs120w
76
77[cs120wee@ieng9]:~:499$ cd pa4
78[cs120wee@ieng9]:pa4:500$ cd ..
79[cs120wee@ieng9]:~:501$ cd pa4
80[cs120wee@ieng9]:pa4:502$ cd ..
81[cs120wee@ieng9]:~:503$ cd pa3
82[cs120wee@ieng9]:pa3:504$ ls
83Makefile mycode3.h pa3c.c
84README.md mycode3.o pa3d.c
85aux.h pa3.tar sanity
86cse120-pa3testcases pa3.txt sys.h
87cse_120_pa3_tests pa3a.c umix.h
88mycode3.c pa3b.c
89[cs120wee@ieng9]:pa3:505$ vim pa3d.c
90[cs120wee@ieng9]:pa3:506$ vim pa3d.c
91
92408 //Signal(shm.mutex);
93409 }
94410
95411 //Wait(shm.mutex);
96412
97413 Delay (3600/mph);
98414 ProceedRoad ();
99415 PrintRoad ();
100416 Printf ("Car %d exits road\n", c);
101417
102418 if(from == WEST){
103419 Signal(shm.roadBlocksWest[NUMPOS-1]);
104420 }
105421 else if(from == EAST){
106422 Signal(shm.roadBlocksEast[NUMPOS-1]);
107423 }
108424
109425 //Signal(shm.mutex);
110426
111427 //Wait(shm.mutex);
112428
113429 //MUTUAL EXCLUSION - SHARED MEMORY ACCESS
114430 shm.carsOnRoad--;
115431 if(shm.carsOnRoad == 0){
116432 if(from == WEST){
117433 if(shm.waitingAtDoorEast > 0){
118434 shm.directionOfFire = EAST;
119435 shm.waitingAtDoorEast--;
120436 Signal(shm.easternFrontSem);
121437 }
122438 else if(shm.checkpointEast > 0)
123439 {
124440 shm.directionOfFire = EAST;
125441 }
126442 else{
127443 if(shm.checkpointWest == 0){
128444 shm.directionOfFire = FFA;
129445 }
130446 }
131447 }
132448 else if(from == EAST){
133449 if(shm.waitingAtDoorWest > 0){
134450 shm.directionOfFire = WEST;
135451 shm.waitingAtDoorWest--;
136452 Signal(shm.westernFrontSem);
137453 }
138454 else if(shm.checkpointWest > 0){
139455 shm.directionOfFire = WEST;
140456 }
141457 else{
142458 if(shm.checkpointEast == 0){
143459 shm.directionOfFire = FFA;
144460 }
145461 }
146462 }
147463 }
148464
149465 //Signal(shm.mutex);
150466
151467 }
152 467,1 Bot