Minix 学习笔记
文章平均质量分 51
RichardYSteven
这个作者很懒,什么都没留下…
展开
-
Mutual Exclusion with Busy Waiting
Disabling Interrupts a useful technique within the operating system itself but is not appropriate as a general mutual exclusion mechanism for user processes 建议在操作系统内部使用Lock Variables 建议不使用原创 2009-02-01 21:39:00 · 1186 阅读 · 0 评论 -
Install MINIX
http://www.minix3.org/doc/A-312.html Installing MINIX 3 HOMEDOWNLOADSOFTWAREDOCUMENTATIONNEWSThis document转载 2009-04-06 22:19:00 · 1857 阅读 · 0 评论 -
Minix3 on bochs
quoted from http://en.wikibooks.org/wiki/Minix_3/Minix_3_on_Bochs [edit] Run MINIX 3 on Windows XP BochsThe recipe below was successfully tried with Minix versions 3.1.1, 3.1.2, 3.1.2a. The Bo转载 2009-03-20 14:57:00 · 1808 阅读 · 0 评论 -
Mounting a disk image using the loop device
quotedhttp://bochs.sourceforge.net/doc/docbook/user/loop-device-usage.html This section was contributed by Volker Ruppert. Today I have made some tests with the loop device, because I want to原创 2009-03-21 22:09:00 · 931 阅读 · 0 评论 -
使用 read 和 write 将code直接写入硬盘
说来惭愧,原来这么简单。 代码从minix源代码 installboot.c中截取。 /*First open the device*/int fd;fd = open("/dev/hda", O_RDWR); /*Then read the first two sectors of the device*/char buf[1024+1];lseek(fd, 0,原创 2009-03-11 21:26:00 · 1231 阅读 · 0 评论 -
Mutual Exclusion with NON Busy Waiting
Sleep and Wakeup The producer - Consumer problem #define N 100 /* number of slots in the buffer */int count = 0; /*原创 2009-02-02 21:46:00 · 848 阅读 · 0 评论 -
进程间通信 需要 解决的问题
There are three issues here. The first was alluded to above: how one process can pass information to another. 如何在进程间传递消息? The second has to do with making sure two or more processes do not ge原创 2009-02-01 21:24:00 · 1176 阅读 · 0 评论 -
引入线程后 对系统的影响
2.1.7. Threadsthread is kernel aware or not 这两种系统有存在Although these two alternatives may seem equivalent, they differ considerably in performance. Switching threads is much faster when thread原创 2009-01-30 15:29:00 · 1182 阅读 · 0 评论 -
Minix启动时 进程顺序
2.1.4. Process Hierarchies As a simple example of how process trees are used, let us look at how MINIX 3 initializes itself. Two special processes, the reincarnation server and init are present in转载 2009-01-30 14:56:00 · 1549 阅读 · 0 评论 -
这样使用堆栈 bootblock.s
在bootblock.s中有这样使用堆栈,或者应该说使用内存的方法。 ! Variables addressed using bp register device = 0 ! The boot device lowsec = 2 ! Offset of boot partition within drive secpcyl = 6 ! Se原创 2009-04-19 11:47:00 · 1090 阅读 · 0 评论