摘要: #系统调用实现PWD命令 ##目标 ###1 学习pwd命令 ###2 研究pwd实现需要的系统调用(man -k; grep),写出伪代码 ###3 实现mypwd ###4 测试mypwd ##学习pwd命令 Linux pwd(英文全拼:print work directory) 命令用于显示 阅读全文
posted @ 2022-10-20 19:30 20201303张奕博 阅读(48) 评论(0) 推荐(0) 编辑
摘要: | | 英雄 | 普攻伤害(单次) |血量 |大招 | | | : :|: :|: : |: :| | | 爆破麦克 | 2960 | 3360 | 2640 | | |迪克 | 3782 | 2530 | 1840+2300| | |帕姆 | 9273 | 5040 | 0| | | 潘妮 | 1 阅读全文
posted @ 2022-10-20 09:01 20201303张奕博 阅读(34) 评论(0) 推荐(0) 编辑
摘要: #第四章Linux学习笔记 ##并行计算 ###顺序算法与并行计算 ###并行性和并发性 并行算法只识别可并行执行的任务。CPU系统中,并发性是通过多任务处理来实现的 ##线程 ###线程的原理 某进程同一地址空间上的独立执行单元 ###线程的优点 线程创建和切换速度更快 线程的响应速度更快 线程更 阅读全文
posted @ 2022-10-15 15:10 20201303张奕博 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <utmp.h> #include <fcntl.h> #include <unistd.h> #include <time.h> #define SHOWOST void showinfo(struct 阅读全文
posted @ 2022-10-14 20:34 20201303张奕博 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <sys/types.h> #include <dirent.h> #include <sys/stat.h> #include <pwd.h> #include <grp.h> #include <unistd.h> #include <st 阅读全文
posted @ 2022-10-14 20:34 20201303张奕博 阅读(14) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <sys/types.h> #include <dirent.h> #include <sys/stat.h> #include <pwd.h> #include <grp.h> #include <unistd.h> #include <st 阅读全文
posted @ 2022-10-14 20:33 20201303张奕博 阅读(20) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<time.h> #include<sys/stat.h> #include<unistd.h> #include<sys/types.h> #include<errno.h> #include<stdlib.h> int main(int arg 阅读全文
posted @ 2022-10-14 20:32 20201303张奕博 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #第三章 Unix/Linux 进程管理 ##多任务处理 指的是同时进行几项独立活动的能力 ####逻辑并行性称为“并发” 多个CPU或处理器内核的多处理器系统中,可以在不同CPU上实时并发执行多项任务 ##什么是进程? ###进程是对映像的执行 ###如下是一个非常简单的PROC结构体: next 阅读全文
posted @ 2022-10-09 17:17 20201303张奕博 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #EX2文件系统 ##EX2文件系统数据结构 ###创建虚拟硬盘 ####mke2fs [-b blksize -N ninodes] device nblocks ###虚拟磁盘布局 #####BLOCK#0:引导块 ###超级块 #####容纳整个文件系统的信息 超级块的重要字段: __u32 阅读全文
posted @ 2022-10-02 15:35 20201303张奕博 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #Linux笔记 第六章&第七章 ###20201303张奕博 —————————————————————————————————————— #第七章 #文件操作 ##五个级别 硬件级别 操作系统内核中的文件系统函数 系统调用 I/O库函数 用户命令 ##文件I/O操作 ###涉及fread() f 阅读全文
posted @ 2022-09-24 18:50 20201303张奕博 阅读(69) 评论(0) 推荐(0) 编辑