HDUHomework
HDUHomework copied to clipboard
🏫 存放一些 杭电 的文件
see this [code](https://github.com/imba-tjd/HDUHomeWork/blob/master/OperatingSystem/%E5%AE%9E%E9%AA%8C/%E5%AE%9E%E9%AA%8C%E4%BA%8C%EF%BC%9A%E5%86%85%E6%A0%B8%E6%A8%A1%E5%9D%97%E7%BC%96%E7%A8%8B/e2.c#L22).  It will always has a pid 0 sibling even if there is actually no sibling. And if I use `p->parent->children` then everything works fine.
see this [user mode program](https://github.com/imba-tjd/HDUHomeWork/blob/master/OperatingSystem/%E5%AE%9E%E9%AA%8C/%E5%AE%9E%E9%AA%8C%E4%B8%80%EF%BC%9A%E6%B7%BB%E5%8A%A0%E7%B3%BB%E7%BB%9F%E8%B0%83%E7%94%A8%E4%B8%8E%E7%BC%96%E8%AF%91%E5%86%85%E6%A0%B8.md). > warning: implicit declaration of function 'printk'.
see this [code](https://github.com/imba-tjd/HDUHomeWork/blob/master/OperatingSystem/%E5%AE%9E%E9%AA%8C/%E5%AE%9E%E9%AA%8C%E4%B8%89(4)%EF%BC%9A%E5%85%B1%E4%BA%AB%E5%86%85%E5%AD%98%E8%BF%9B%E7%A8%8B%E9%80%9A%E4%BF%A1/sender.c#L16). I have included `unistd.h` and `sys/types.h`, but it doesn't work. However, my program did't report 'bus error' and crash.  
Programs are [main.cpp](https://github.com/imba-tjd/HDUHomeWork/blob/master/InformationSecurityTechnology/RSA/main.cpp) and [rsa.cpp](https://github.com/imba-tjd/HDUHomeWork/blob/master/InformationSecurityTechnology/RSA/rsa.cpp). It would success sometimes but also fail sometimes. The biggest problem is that it's hard to debug, I can't distinguish whether a variable is valid....