CMSC 412 Midterm #2 (Spring 1998)
Inside track is 2 π 1/2in and we can store 20 sectors per 2 π inches so there are 10 sectors.
Outside track is 2 π 7/2in and we can store 20 sectors per 2 π inches so there are 70 sectors.
Total sectors is the sum from 1 to 100 of evenly space values from 10 to 70 sectors, so we compute the average value and multiple by 100 to get total sectors (10 + 70)/2 * 100 = 4,000 sectors
We must record everything at the inside density of 10 sectors per track so there are 10 * 100 = 1,00 sectors.
Pc: P(mutex)
If (sem > 0) { sem--; V(mutex); }
else { wait++; V(mutex); P(turn) }
Vc: P(mutex)
If (sem == limit) V(mutex)
Else if (!waiting) { sem++; V(mutex); }
Else { waiting--; V(mutex); V(turn); }
Semaphores: mutex, turn
Variables: waiting, sem, limit
10 faults
9 faults
7 faults
AFS uses ACL’s, which take more space to store than the 9 bits UNIX uses.
cp goodStuff temp
rm -f goodStuff
mv temp goodStuff
Within a node, all users that have the same first two letters in their user name will have the same salt which will allow multiple accounts to be tested for a single try of a dictionary attack. Between nodes, if the same account name uses the same password, this fact will be apparent if the password file is readable.
Performance: bit vectors provide fast access to find clusters of adjacent free blocks
Reliability: if an item in a linked list is lost, the rest of the list is lost. With a bit vectors only the items are lost. Also, it’s possible to have multiple copies of the bit vector since it is a more compact representation.