cse521-recitation11d

cse521-recitation11d - Introduction to Operating Systems...

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

View Full Document Right Arrow Icon
Introduction to Operating Systems Recitation #11 Scott Settembre, TA ss424@buffalo.edu
Background image of page 1

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

View Full DocumentRight 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 DocumentRight Arrow Icon
In the problem description, it says that each sector is 128 bytes. This is WRONG! It should say that
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 10/15/2010.

Page1 / 11

cse521-recitation11d - Introduction to Operating Systems...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online