摘要:
代码:https://github.com/JasenChao/xv6-labs.git 快速获取pid-ugetpid 题目要求参考已实现的ugetpid()使用USYSCALL快速获取pid。 实现的思路是在每一个进程中增加一个共享页面,通过USYSCALL指定的虚拟地址,找到指定的页面。参考进
阅读全文
posted @ 2024-02-14 19:04
未连接到互联网
阅读(67)
推荐(0)
摘要:
代码:https://github.com/JasenChao/xv6-labs.git 使用GDB调试 安装risc-v的GDB 先安装依赖: sudo apt-get install libncurses5-dev python2 python2-dev texinfo libreadline-
阅读全文
posted @ 2024-02-14 19:03
未连接到互联网
阅读(116)
推荐(0)
摘要:
代码:https://github.com/JasenChao/xv6-labs.git 运行xv6 实验环境使用的是Ubuntu 20.04,需要安装一些工具: sudo apt-get install git build-essential gdb-multiarch qemu-system-m
阅读全文
posted @ 2024-02-14 19:03
未连接到互联网
阅读(147)
推荐(0)
摘要:
在 Python 中,可以使用print函数来打印一个变量或者一个字符串: print("My name is Alice") print(i) 如果需要字符串格式化来打印一句话中包含变量的内容,有几种常用的方法: 使用格式化字符串(f-string):在字符串前面加上字母"f",然后在字符串中使用
阅读全文
posted @ 2024-02-14 19:00
未连接到互联网
阅读(80)
推荐(0)
摘要:
问题出现 git仓库是使用ssh链接clone下来的,在push和pull到github时突然失效了,显示Connection timed out,ssh -T git@github.com一样不行 解决方案 编辑文件~/.ssh/config,添加以下内容 Host github.com Host
阅读全文
posted @ 2024-02-14 18:58
未连接到互联网
阅读(199)
推荐(0)
摘要:
问题出现 在编译一个工程的时候,出现了报错 In file included from /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h:9, from main.c:1: /usr/include/stdint.h:26:10: fatal erro
阅读全文
posted @ 2024-02-14 18:57
未连接到互联网
阅读(614)
推荐(0)
摘要:
最近需要在服务器上运行一些时间很长的命令,想让服务器自动通知我什么时候命令完成,通过命令结束后发送邮件给我来提醒。 安装 msmtp 和 mail # RedHat 系 sudo dnf install msmtp mailx # Debian 系 sudo apt install msmtp ma
阅读全文
posted @ 2024-02-14 18:54
未连接到互联网
阅读(182)
推荐(0)
摘要:
频繁地使用左下角的Ctrl键对我的小拇指产生了非常大的负担,想把它和不常用但很容易按的CapsLock键交换。 先打开注册表,导航到HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Control -> KeyBoard Layout。 右键新
阅读全文
posted @ 2024-02-14 18:51
未连接到互联网
阅读(253)
推荐(0)