nachosPipe
所属分类:VHDL/FPGA/Verilog
开发工具:C/C++
文件大小:959KB
下载次数:17
上传日期:2011-05-09 11:52:04
上 传 者:
whatyang
说明: nachos实验
操作系统实验
管程同步机制
消费者和生产者为例
改编原先版本中的一点小错误
(nachos experimental test
tube process
operating system,
consumers and producers as an example
synchronization mechanism
adapted the original version of a small error)
文件列表:
实验2 管程同步机制\.cproject (7150, 2010-11-26)
实验2 管程同步机制\.project (2196, 2010-11-26)
实验2 管程同步机制\.settings (0, 2010-11-29)
实验2 管程同步机制\.settings\org.eclipse.core.resources.prefs (88, 2010-11-26)
实验2 管程同步机制\ass2 (0, 2010-11-20)
实验2 管程同步机制\ass3 (0, 2010-11-29)
实验2 管程同步机制\ass3\arch (0, 2010-11-29)
实验2 管程同步机制\ass3\arch\dec-mips-ultrix (0, 2010-11-29)
实验2 管程同步机制\ass3\arch\dec-mips-ultrix\bin (0, 2010-11-20)
实验2 管程同步机制\ass3\arch\dec-mips-ultrix\depends (0, 2010-11-20)
实验2 管程同步机制\ass3\arch\dec-mips-ultrix\objects (0, 2010-11-20)
实验2 管程同步机制\ass3\arch\sun-sparc-sunos (0, 2010-11-29)
实验2 管程同步机制\ass3\arch\sun-sparc-sunos\bin (0, 2010-11-20)
实验2 管程同步机制\ass3\arch\sun-sparc-sunos\depends (0, 2010-11-20)
实验2 管程同步机制\ass3\arch\sun-sparc-sunos\objects (0, 2010-11-20)
实验2 管程同步机制\ass3\arch\unknown-i386-linux (0, 2010-11-29)
实验2 管程同步机制\ass3\arch\unknown-i386-linux\bin (0, 2010-11-20)
实验2 管程同步机制\ass3\arch\unknown-i386-linux\depends (0, 2010-11-20)
实验2 管程同步机制\ass3\arch\unknown-i386-linux\objects (0, 2010-11-20)
实验2 管程同步机制\ass3\Makefile (884, 2000-03-15)
实验2 管程同步机制\ass3\Makefile.local (408, 2000-03-15)
实验2 管程同步机制\ass3\test (0, 2010-11-29)
实验2 管程同步机制\ass3\test\big (337, 2000-03-15)
实验2 管程同步机制\ass3\test\huge (3804, 2000-03-15)
实验2 管程同步机制\ass3\test\huge1 (3573, 2000-03-15)
实验2 管程同步机制\ass3\test\huge2 (3678, 2000-03-15)
实验2 管程同步机制\ass3\test\medium (169, 2000-03-15)
实验2 管程同步机制\ass3\test\onebyte (1, 2000-03-15)
实验2 管程同步机制\ass3\test\small (90, 2000-03-15)
实验2 管程同步机制\bin (0, 2010-11-29)
实验2 管程同步机制\bin\.cvsignore (22, 1995-05-30)
实验2 管程同步机制\bin\arch (0, 2010-11-29)
实验2 管程同步机制\bin\arch\dec-alpha-osf (0, 2010-11-29)
实验2 管程同步机制\bin\arch\dec-alpha-osf\bin (0, 2010-11-20)
实验2 管程同步机制\bin\arch\dec-alpha-osf\depends (0, 2010-11-20)
实验2 管程同步机制\bin\arch\dec-alpha-osf\objects (0, 2010-11-20)
实验2 管程同步机制\bin\arch\dec-mips-ultrix (0, 2010-11-29)
实验2 管程同步机制\bin\arch\dec-mips-ultrix\bin (0, 2010-11-29)
实验2 管程同步机制\bin\arch\dec-mips-ultrix\bin\.cvsignore (22, 1995-08-12)
实验2 管程同步机制\bin\arch\dec-mips-ultrix\depends (0, 2010-11-20)
... ...
From: cs162@po.EECS.Berkeley.EDU (Class Master)
Subject: Answer to problems running assignment 5
Some people have been having problems running assignment 5.
Unfortunately, the way the network gets initialized, if things
don't get done in exactly the right order, you can get an error
in sending the first packet to the socket.
I have modified synch.h and synch.cc in code/, and re-compiled
the contents of code/network. I was then able to run the
test case successfully, at least one out of two times. See below.
So, be careful out there!
tom
-----------
po.EECS.Berkeley.EDU:network>!19
./nachos -m 0 -o 1 > & log & ; ./nachos -m 1 -o 0 > & log2 &
[1] 10882
[2] 10883
po.EECS.Berkeley.EDU:network>
[2] Illegal instruction ./nachos -m 1 -o 0 >& log2 (core dumped)
[1] Illegal instruction ./nachos -m 0 -o 1 >& log (core dumped)
po.EECS.Berkeley.EDU:network>rm -f log* SOCKET*
po.EECS.Berkeley.EDU:network>!19
./nachos -m 0 -o 1 > & log & ; ./nachos -m 1 -o 0 > & log2 &
[1] 10895
[2] 10896
po.EECS.Berkeley.EDU:network>
[1] Done ./nachos -m 0 -o 1 >& log
[2] Done ./nachos -m 1 -o 0 >& log2
more log
Got "Hello there!" from 1, box 1
Got "Got it!" from 1, box 1
Machine halting!
Ticks: total 57080, idle 56810, system 270, user 0
Disk I/O: reads 2, writes 0
Console I/O: reads 0, writes 0
Paging: faults 0
Network I/O: packets received 2, sent 2
Cleaning up...
po.EECS.Berkeley.EDU:network>more log2
Got "Hello there!" from 0, box 1
Got "Got it!" from 0, box 1
Machine halting!
Ticks: total 58530, idle 58260, system 270, user 0
Disk I/O: reads 2, writes 0
Console I/O: reads 0, writes 0
Paging: faults 0
Network I/O: packets received 2, sent 2
Cleaning up...
近期下载者:
相关文件:
收藏者: