summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2019-07-27 20:18:40 -0400
committerFrans Kaashoek <[email protected]>2019-07-27 20:18:40 -0400
commitbdcd23ea49885b5fd205d2856073d3d89b3a9bc2 (patch)
treeb2a60dfe3abcc7d4acd967b7cc327511b04ac0eb
parentd82f43e0c747347de18737f4a446474207fb65b9 (diff)
downloadxv6-labs-bdcd23ea49885b5fd205d2856073d3d89b3a9bc2.tar.gz
xv6-labs-bdcd23ea49885b5fd205d2856073d3d89b3a9bc2.tar.bz2
xv6-labs-bdcd23ea49885b5fd205d2856073d3d89b3a9bc2.zip
a bit more
-rw-r--r--labs/lock.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/labs/lock.html b/labs/lock.html
index 1278b53..5eddc58 100644
--- a/labs/lock.html
+++ b/labs/lock.html
@@ -72,7 +72,12 @@ workloads.
<p>Some hints:
<ul>
- <li>Initially divide the free memory equally among the different CPUs.
+ <li>You can use the constant <tt>NCPU</tt> in kernel/param.h
+ <li>Let <tt>freerange</tt> give all free memory to the CPU
+ running <tt>freerange</tt>.
+ <li>The function <tt>cpuid</tt> returns the current core, but note
+ that you can use it when interrupts are turned off and so you will
+ need to turn on/off interrupts in your solution.
</ul>
<p>Run usertests to see if you don't break anything.