Homework-II

Homework-II - Fall 2010 CSC 4304 Systems Programming...

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

View Full Document Right Arrow Icon
Fall 2010 CSC 4304 – Systems Programming Homework Assignment #2 The due date is: September 30th, Thursday, before the class. Late submission is not allowed. Copy all of answers and your code into a text file, rename it to hw2_yourlastname , and email to [email protected] , cc to [email protected] Problem 1: a) Which of the functions above will be more efficient if the file being read is large, and why? Explain in detail. b) Write a function my_file_to_dlist() which is functionally equivalent to these two functions, and is at least as efficient as the best of these two. You may only use open(), close(), and read() and not fopen(), fclose() and fread(). Explain why this is efficient code? You may assume that the file being read is never bigger than the amount of available physical memory.
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 2: Consider the following commands. Describe the state of the directory in terms of filenames, inodes and disk storage at the position of the arrow below. Explain what happens to this state during each rm command. Include when the disk storage associated
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/23/2011 for the course CSC 4303 taught by Professor Staff during the Fall '10 term at LSU.

Page1 / 3

Homework-II - Fall 2010 CSC 4304 Systems Programming...

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

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