You have major misconceptions about all the major operating systems, and I'm saying that as a Micro$oft hater. Windows is a commodity Operating system which is crippling our infrastructure by being sold in places which have NO business using it. The result is a multi-billion dollar malwarye industry and various attacks which evidence strongly suggest DO have sponsership by various governments.
Linux is a commodity Operating system too, or rather family of operating systems, however it is a commodity version of BSD UNIX, as OS with academic origins and primarily intended for academic purposes. It does inherit a safer internal design than Windows but the black hats now have plenty of time and money to devote to compromising it when it suits their purpose and when it has they have. Think of it as a do-it-yourself Operating System kit though and you will be closer to the mark than you are.
Now the irony about your comments is the Mac OS X is actually, at its core, BSD UNIX. It has a lot of proprietary stuff on top of it but read this page:
http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/OSX_Technology_Overview/MacOSXOverview/MacOSXOverview.html#//apple_ref/doc/uid/TP40001067-CH205-BCICAIFJ
If you are a CS undergrad in a decent program you should have sufficient background to begin writing an OS after two years of study. It may take you several years to write it but the OS classes I've heard about were open to Juniors as well as seniors and grad students. If you are serious about this you should be looking at your curricula and readying yourself to take that course -- or to transfer to a school that offers it.
Just an anecdote. Linus Torvalds used Minix. This is a UNIX variant which was literally created to teach operating system design. He first announced the Linux kernel in -- I believe -- the comp.os.minix newsgroup. This among other things got him the advice and assistance of Andy Tannenbaum, Minix's creator who teaches in Amsterdam. After it was done Tannenbaum told him that if he were getting graded on it, the grade would be very low.