![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
操作系统实践
冲
Matts Tian
这个作者很懒,什么都没留下…
展开
-
OS实践模板
进程1#include<stdio.h>#include<stdlib.h>#include<string.h>#include<sys/stat.h>#include<sys/wait.h>#include<fcntl.h>#include<unistd.h>int main(){ int fd[2]; pipe(fd); char buf[32]; pid_t pid = fork();原创 2021-06-24 15:08:00 · 190 阅读 · 0 评论 -
OS实践复习
#include<stdio.h>#include<stdlib.h>#include<string.h>#include<sys/stat.h>#include<sys/wait.h>#include<fcntl.h>#include<unistd.h>int main(){ int fd[2]; char buf[32]; pipe(fd); pid_t pid = fork();..原创 2021-06-24 10:46:21 · 371 阅读 · 0 评论 -
多线程实验
#include<stdio.h>#include<unistd.h>#include<pthread.h>#define NUMBER 100000double worker_output = 0;double master_output = 0;double PI;void *worker(void *arg){ for(int i = NUMBER / 2 + 1; i <= NUMBER; i++) { if(i % 2 ==.原创 2021-05-29 17:02:27 · 301 阅读 · 0 评论 -
进程管理实验
文章目录一、进程的创建一、进程的创建进程的创建与装入程序教程地址Linux 系统调用 system()函数详解mysys.c: 实现函数mysys,用于执行一个系统命令,要求如下mysys的功能与系统函数system相同,要求用进程管理相关系统调用自己实现一遍使用fork/exec/wait系统调用实现mysys不能通过调用系统函数system实现mysys测试程序#include <stdio.h>void mysys(char *command){实现该函数,该函原创 2021-04-29 14:17:19 · 544 阅读 · 0 评论 -
文件读写实验
文章目录一、[文件读写教程地址](https://www.linuxmooc.com/courses/io/)二、main函数中参数argc、argv详解三、实现简单数据库四、实现myecho.c五、实现mycat.c六、实现mycp.c一、文件读写教程地址二、main函数中参数argc、argv详解三、实现简单数据库#include<sys/stat.h>#include<fcntl.h>#include<unistd.h>#include<std原创 2021-04-25 16:10:19 · 368 阅读 · 0 评论 -
Shell 简介
Shell 简介原创 2021-04-24 22:44:33 · 143 阅读 · 0 评论