CS 311, Part 2

As I said in my first post regarding my Operating Systems class, I still had several labs that I needed to complete for the class. Since then, I’ve completed two additional labs that I figured I would post about.

In Lab3b, we looked at the traditional Producer/Consumer problem. Our solution required us to use semaphores, and a single thread each for the producer and consumer. As with previous labs, the user provided the input and output files via command line arguments. The program created an identical copy of the input file, similar to Lab1. In the write-up, we were required to compare the execution times for Lab3b vs. Lab1. You can view the README for the full analysis, but the overall speed comparison was faster than Character-by-Character mode, and slower than Line-by-Line mode. This is due to the overhead of using both threads and semaphores, and the necessary system calls that are required by each.
Design Document:
Lab3b_DesignDocument.docx
Code:
Lab3b.cpp
Write-Up:
README
Sample Input File:
Input

In Lab4, we recompiled the Redhat kernel on the mainframe we test all of our labs on. There were several methods outlined by our professor, but the one I implemented took ~4.5 hours to complete the rebuild. After the kernel was rebuilt, we changed the system to boot off of this new kernel, and checked to make sure it worked using the 'uname -a' command in terminal. No deliverables were associated with this lab, but a screenshot of the terminal output can be found below – my custom kernal ID was ‘MBCustom1′, as can be seen in the screenshot.

We have one more lab for OS – to implement a system call in our custom kernel. Check back near the end of the semester for a post regarding this last lab.

This entry was written by Marc Budofsky , posted on Friday November 19 2010at 01:11 am , filed under Binghamton University, C/C++, Programming and tagged , , , , , . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>