Home avatar

翼仔的博客

debian 配置文件共享(samba、nfs)与 pt

1 nfs首先执行 sudo apt install nfs-kernel-server 安装 nfs,然后执行 sudo nvim /etc/exports 编辑 /etc/exports 文件,添加以下内容 sh # share documents /home/zwyyy/Documents 192.168.6.0/24(rw,sync,no_subtree_check,all_squash,anonuid=1000,anongid=1000) # share downloads /home/zwyyy/Downloads 192.168.6.0/24(rw,sync,no_subtree_check,all_squash,anonuid=1000,anongid=1000) # external disk /home/zwyyy/mnt/ext 192.168.6.0/24(rw,sync,no_subtree_check,all_squash,anonuid=1000,anongid=1000) 最前面是路径,根据自己需求来写。 192.168.6.0/24

MIT 6.S081 Sleep & Wake up

1 Sleep and wakeupSleep 允许一个内核线程等待某个特定事件的发生,另一个线程可以调用 wakeup 来表示这个正在等待时间发生的线程应该恢复了。 Sleep and wakeup are often called sequence cooridination or conditional synchronization mechanisms. xv6 中

MIT 6.S081 Thread switching

1 Multiplexingxv6 通过将 cpu 从一个进程切换到另一个进程来实现 multiplex(多路复用),进程的切换会在两种情形下发生: xv6 的 sleep 与 wakeup 机制在进程等待 IO 完成或者