荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: Mic (酷鱼), 信区: DotNET
标  题: C# Operating System by Scott Hanselman
发信站: 荔园晨风BBS站 (Mon Jul 29 11:12:32 2002), 站内信件

C# Operating System by Scott Hanselman


Get to know Scott and read all about his cool C# Operating System, in
his own words!


Scott Hanselman (username: Glucose)
Scott Hanselman is the Technology Evangelist at the Corillian
Corporation. He has ten years experience developing software in C++,
Java, VB, COM, and now C# and VB.NET. Scott has presented at conferences
 in the U.S., London, and Germany and contributed to two books by Wrox
Press. He'll be speaking at TechEd Malaysia in August 2002. Scott has
been working diligently towards a Software Engineering degree and
hopes to walk Spring 2003 after 11 years of study. (Better late than
never!).
Scott's C# Operating System
Download Scott's C# Operating System
This was the final project for my Operating Systems class at OIT (Oregon
 Institute of Technology). The requirements, exactly as they were
given to me by the teacher, are in the archive as "Final_Project.doc".
The goal of this project was to write a small virtual operating system
for an abstract machine that provides a number of basic OS-like services
 like:



Virtual Memory, Demand Paging
Input/Output
Memory Protection, Shared Memory
Registers, Stack, Data, Heap, etc
Jump instructions for calling "Functions"
And so on...
This is a cute, fun, interesting and completely useless thing. So, don't
 get your hopes up that you'll get actual work done with it.

It's neat however, as it is a study on how I solved a particular problem
 (this assignment) given a 10 week semester. I was the only student to
use C#, and I finished it in 4 weeks, leaving 6 weeks to relax and watch
 the other students using Java and C++ do their thing. It’s also
slightly ironic because I used a high-level OO language like C# to
deal with a minute concept like an "Operating System" the might have 256
 bytes (bytes, not Kbytes) of memory.

During this process I exercised a good and interesting chunk of the C#
language and the .NET Framework. There are some very silly things like
the OS's implementation of virtual memory swapping out memory pages as
XML. I might take an array of 4 bytes and make an XML file to help them.
 I hope the irony isn't lost on you. I also commented all the C# with
XML and built an MSDN style help file with ndoc. So, you might just
use this as a learning tool and a pile of sample code.

Of course, you’ll need the .NET Framework to run this, but to really
have fun debugging it and stepping through the code you'll need VS.NET.
 Go read the code and and enjoy!
--

※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.28.217]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店