GithubHelp home page GithubHelp logo

linux-kernel-experiment's Introduction

Linux Kernel Experiments

个人方向课程实验,备份。欢迎技术交流

Experiment 1

提取系统信息

问题 A:

  1. cpu 类型
  2. 内核版本

问题 B:

  1. 启动以来经历的时间,以 dd:hh:mm:ss 报告

问题 C:

  1. cpu 执行用户态、系统态、空闲态所用时间
  2. 多少次磁盘请求
  3. 多少次上下文切换
  4. 启动了多少次进程

问题 D:

  1. 内存总量
  2. 可用内存
  3. 系统平均负荷

Experiment 2

问题 A:

实现一个能处理前后台运行命令的 shell

问题 B:

实现一个带有管道功能的 shell

问题 C:

实现一个能处理 I/O 重定向的 shell

问题 D:

实现一个能在一行上处理多条命令的 shell

Experiment 3

问题 A

使用ITIMER_REAL型定时器实现一个gettimeofday(),将它设置为每秒产生一个信号, 并计算已经经过的秒数。

问题 B

使用以上实现的 gettimeofday()实现一个精确到微秒级的“壁钟”。

问题 C

实现以上一个父进程和两个子进程并发递归计算不同项数的 fibonacci 序列的程序, 分析每个进程三种类型定时器测出的时间关系。

linux-kernel-experiment's People

Contributors

geeekerandy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.