搜索此博客

2011年3月12日星期六

MTX Operate System --- Introduction


本文的主要资料来自于Washington State University的操作系统课CS460CS560.
参考资料:
《The Design of the UNIX Operating Systeem》 Maurice J. Bach, Prentice-Hall, Inc. 1986

这个笔记主要是为了自己复习和总结一下UNIX内核的知识,同时也想借此机会把国外优秀的课程介绍给国内的学生。

图1描述了UNIX系统的系统架构。

中间的硬件层(hardware)为操作系统提供了各种基本的服务。操作系统内核(kernel)把硬件层和应用层分离开来。这样做的好处使应用程序可以运行在不同的硬件上,所有与硬件有关的活动,都由操作系统来完成。各种应用程序如果需要硬件服务(读写文件 等),则是通过系统调用(system call)告诉系统内核,然后系统内核操作硬件来完成服务。


图2 系统内核结构图
图2 主要展示了计算机系统的三层结构图: 用户层,内核层和 硬件层。用户层主要通过系统调用和库函数与内核交流。系统调用在内核里主要与文件子系统和进程控制子系统交互。
文件子系统主要负责管理文件,分配文件空间,控制文件访问权限,提取文件给用户。内核可以直接从硬盘读写数据,但是从硬盘读写数据要受到硬盘读写效率的限制。所以,系统内核需要对硬盘读写的频率进行优化,方法就是用一个缓冲区来存放经常被读写的数据。如果数据已经在缓冲区了,就不需要在到硬盘里去寻找了。
进程控制子系统主要负责进程同步,进程间互相通信,内存管理和进程调度。每一项都有很多细节要考虑和设计,以后的章节会详细介绍。

2011年3月9日星期三

CASASviz: new version 1.0

The new version of our CASASviz has just been generated.

There are some major improvements:

1) Generate Main Visualizer by JavaScript Library Raphaël. We test our webpage on the PC and Iphone platform. There is no any delay. It works very well.

2) Use a web application model Comet to push the data from server to the browsers, without any request from the browsers.

3) Implement Pattern Visualization. Now we can show all kinds of the patterns based on different algorithms.

4) More Intelligent Functions:
1) Location Detection: show current room
2) Activity Level: use sliding time window to show the level of the activity
3) Enter or Leave Home Detection: use special rule
4) Activity Recognition: We are trying to use real-time activity recognition algorithm

Next Steps:
1) Polish our webpage for PC and Iphone platforms
2) Interview the caregivers to get some valuable suggestions