Berkeley CS 61C Lecture 19

Here are some notes and corrections on this lecture:

Each note begins with a time; "ca." in front of a time means that it is approximate.

Here's where you learn the difference between software threads (old hat) and hardware threads (pretty new hat)

26:10 -- If you have a Mac, you can try this yourself; open a terminal and paste or type in this command:

/usr/sbin/sysctl -a | grep "hw\."

His slide doesn't have the quotes, but without them you'll get a bunch of other stuff that you don't want.
As it is, the shell will eat the quotes, and grep will see hw\.,
which means "letter h followed by letter w followed by a dot";
without the quotes, the shell will eat the backslash, and grep will see hw.,
which means "letter h followed by letter w followed by any character",
so "hwcksum" will match the pattern, and you'll get a bunch of those.
/usr/sbin/sysctl -a | grep hw\\. also works

You can do this because OS X is FreeBSD under the hood.
FreeBSD is a variant of Unix that is similar to Linux.
There's probably something similar in Windows, but I cain't hep ya with that.