diff --git a/labs/lock.html b/labs/lock.html index a93eb3a..707d6c4 100644 --- a/labs/lock.html +++ b/labs/lock.html @@ -98,7 +98,7 @@ workloads. and run test0 from bcachetest and you will see "!"s.
Modify bget so that a lookup for a buffer that is in the - bcache doesn't need to acquire bcache.lock. This more + bcache doesn't need to acquire bcache.lock. This is more tricky than the kalloc assignment, because bcache buffers are truly shared among processes. You must maintain the invariant that a buffer is only once in memory. @@ -121,8 +121,13 @@ against, including:
Here are some hints:
Check that your implementation has less contention @@ -130,5 +135,14 @@ against, including:
Make sure your implementation passes bcachetest and usertests. +
Optional: +