Git Product home page Git Product logo

os-practice's Introduction

OS-Practice

Operating System Practice course projects.

Practice 1: Compile Kernel

wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux -4.4.52.tar.xz
sudo tar -xvf linux-4.4.52.tar.xz
sudo cp /boot/config-`uname -r` .config
sudo make -jX (X is the number of processors)
sudo make modules_install install
sudo vim /etc/default/grub
sudo update-grub

Effect:

Practice 2: Process control

Implement time command.

if ((pid = fork()) < 0) {
        printf("Fork error!\n");
} else if (pid == 0) {
    printf("command: %s\n", argv[1]);
    if (execvp(argv[1], argv+1) < 0)
    	printf("Execut cmd error.\n");
        exit(1);
    }
} else {
    if (wait(NULL) < 0) {
    	printf("Wait child cmd error.\n");
    }
}

Effect

Practice 3: Producer-Consumer problem

Implement Producer-Consumer problem with processes.

Effect

Practice 4: Memory Monitor

Win32

Call winapi implement a memory monitor.

Effect

UWP

  • Working on ...

Effect

Practice 5: Copy files

Implement cp command

Effect

Final Project

Do whatever you want to, but must be related to Operating System.

Copyright

You can do anything ๐Ÿค“.

os-practice's People

Contributors

hologerry avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

hexcolors60

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.