From 9c4f62e8e3e7f114c6f82a75579a815e6329d767 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Tue, 30 Jul 2019 13:07:17 -0400 Subject: x --- labs/lock.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'labs') 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: +

+ + -- cgit v1.2.3