上一页 1 2 3 4 5 6 7 8 ··· 23 下一页
摘要: 一、初始化 kernel\main.c\main() void main(){ ... kinit(); // physical page allocator kvminit(); // create kernel page table kvminithart(); // turn on pagin 阅读全文
posted @ 2024-04-21 00:07 INnoVation-V2 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 第二章 操作系统的组织结构 1. 资源抽象 由操作系统管理硬件资源,用户程序通过操作系统提供的接口间接访问硬件资源 所有软件共享CPU,由操作系统进行进程切换的工作 进程通信通过文件描述符完成,省略了很多细节,比如管道文件的具体存放位置,而且如果管道中程序执行失败,内核会给管道另一端的程序发送EOF 阅读全文
posted @ 2024-04-21 00:06 INnoVation-V2 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Lab: page tables 1.Speed up system calls (easy) 加速getpid()系统调用速度 映射一页在USYSCALL位置,向其中写入一个结构体 struct usyscall { int pid; // Process ID }; 赋予用户态只读权限 代码:g 阅读全文
posted @ 2024-04-20 23:58 INnoVation-V2 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Lab: system calls 1.Using gdb (easy) 打开两个shell,都进入xv6文件夹 第一个shell输入 make qemu-gdb 第二个shell输入 riscv64-unknown-elf-gdb Looking at the backtrace output, 阅读全文
posted @ 2024-04-20 23:57 INnoVation-V2 阅读(29) 评论(0) 推荐(0) 编辑
摘要: Lab: utilities 1.Sleep 代码:github 2.pingpong 代码:github 3.primes 代码:github 需要注意父子进程的管道阻塞问题,之前写过一个相关博客 https://www.cnblogs.com/INnoVationv2/p/16700899.ht 阅读全文
posted @ 2024-01-18 19:24 INnoVation-V2 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 2. 链表 相关文件 adlist.h adlist.c 1. 定义 typedef struct listNode { struct listNode *prev; struct listNode *next; void *value; } listNode; typedef struct lis 阅读全文
posted @ 2024-01-05 15:32 INnoVation-V2 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 相关文件: sds.h sds.c 1.定义 1.1 sds定义 typedef char* sds; sds:"Simple Dynamic String" ,简单动态字符串。 1.2 sdshdr定义 struct __attribute__ ((__packed__)) sdshdr8 { u 阅读全文
posted @ 2024-01-05 15:10 INnoVation-V2 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 系统环境 IntelliJ IDEA 2023.2 (Ultimate Edition) JDK 17 Scala 3.3.1 去官网下载Scala源码包 https://www.scala-lang.org/download/all.html 注意:需要同时下载3.x和2.x的包,因为有很多函数实 阅读全文
posted @ 2023-10-21 15:41 INnoVation-V2 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 1.下载镜像 docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g 2.创建并启动容器 默认启动方式 docker run -itd -p 1521:1521 --name oracle --restart=always r 阅读全文
posted @ 2023-10-13 23:33 INnoVation-V2 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 基于Docker搭建Hadoop+Hive 本文主要是照搬这篇文章的https://zhuanlan.zhihu.com/p/242658224,但是这篇文章有一些细节配置没有讲清楚,这里对其进行完善 零、环境信息 电脑配置 Ubuntu 20.04.6 LTS (Focal Fossa) 5.15 阅读全文
posted @ 2023-10-13 22:52 INnoVation-V2 阅读(839) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 23 下一页