{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Assignment5 - CSci4061 Programming Assignment 5 Specication...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSci4061 Programming Assignment 5 Specification Socket Programming and Performance Evaluation Due at 10pm on 5th May 2010 1 Overview For Lab 5, you will implement the socket (HTTP and file versions) functions we gave to you in the form of object files in Lab4. You will write these functions using UNIX Sockets in C. Also, you will compare the performance of your file-version-program when using different numbers of threads and different cache replacement techniques. For this lab, you may disable the prefetcher threads. 2 Socket Programming / Function Implementation In this lab, you will demonstrate your ability to use network sockets in C. To do this, you will implement the routines that we provided to you in the previous lab. You should use your own code for Lab 4 as the starting point. If you could not get this working, you may use the lab 4 solution. The functions you will implement are: init , accept connection , get request , return result and return error (for the latter two, we will help you with the simple HTTP headers that you need, given below). You may find the function fdopen handy in turning a regular file descriptor into a FILE stream object (this will allow easy high-level standard I/O operations on the socket). You should also set the server socket to allow port reuse as discussed in class. In addition, you will implement another cache replacement policy called least recently used (LRU). LRU replaces the cache entry that was the least recently used, as the name implies. For
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern