on mac you can install OS X
which will be released in its final version on March 24th. Its core is called Darwin
and is built on FreeBSD
. FreeBSD can also be installed on PCs.
Or you can just download Darwin for free and install it on a mac, it will not have any of the gui that OS X has.