Operating System Practice course projects.
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
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");
}
}
Implement Producer-Consumer problem with processes.
Call winapi implement a memory monitor.
- Working on ...
Implement cp command
Do whatever you want to, but must be related to Operating System.
- Working on … PerfectTicket
You can do anything 🤓.