{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

cse521-recitation11d

cse521-recitation11d - Introduction to Operating Systems...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to Operating Systems Recitation #11 Scott Settembre, TA [email protected]
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Problem 3 : Basic Disk Server You need to deliver two programs: dclient.c This will be the client that prompts the user for commands. ./dclient <IP> <PORT> <IP> is the name or IP of the machine <PORT> is the port # at IP to connect to dserver.c This will be the server that implements the simulated disk-storage system ./dserver <Cyl> <SecPerCyl> <PORT> <t2t> <filename> <Cylinders> is the # of cylinders on the disk being simulated <SectorsPerCylinder > is the # of sectors per cylinder <PORT> is the port # to “listen” on <t2t> or “track -to- track time” is the number of microseconds to usleep() for each simulated head movement of +1 or -1 track. <filename> is the data file to use to store the simulated disk data
Background image of page 2
Disk Layout cylinder sector block 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 …… Each block is exactly 128 bytes. Each sector is (block size X # of cylinders) bytes. Each cylinder is (block size X # of sectors) bytes. Disk size=(#cyl X #sect X block size) bytes. Block #0 is 128 bytes.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Errata for problem 3 and 4 In the problem description, it says that each sector is 128 bytes. This is WRONG! It should say that each BLOCK is 128 bytes . Please make this change appropriately in problem #3 and #4.
Background image of page 4
Current System view Disk-storage Client
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}