Operating System Homework 1 Solved

35.00 $

Category:

Description

Rate this product

Part I

As a preparation step for the second part of this and later homework assignments, for the first part of this homework assignment, you are required to do the following.

  1. Install Linux on your computer. It is up to you to choose a distribution that you prefer.1 Make sure that it can connect to the Internet.
  2. Recompile the kernel that comes with the Linux distribution you chose. Make sure that the version numberof the newly compiled kernel is the original version number suffixed with your student ID. For instance, the student ID of one of your TA’s is m983040031, and the version number of the kernel is 2.6.37.4, then the version number of the newly compiled kernel will be 2.6.37.4-m983040031.

1Here are some Linux distributions that you might be interested.

Hand in a report to show that the newly compiled kernel works by showing the output of the following commands:

  • uname -a
  • ifconfig -a
  • ping 140.117.11.1

Make sure that your TA’s can log in to your system to verify the results you show on the report.

If you never use Linux before, start earlier. It may take you quite a while to get it up and running.

Part II

For the second part of this homework assignment, you are required to write a shell that is similar to Fig. 1–10 of the text but contains enough code so that it actually works and you can use it as a shell on Linux.

For full credits, here are the minimum requirements of the shell you are required to write.

  1. It should be able to run all the single-process commands.
  2. It should be able to run all the two-process pipelines, the skeleton of which is as given in Fig. 1–13 of thetext.
  3. It should be able to handle input and output redirection.
  4. It should be able to execute commands in the background.

You are, of course, free to add more features to the shell you write.

In addition, all the programs you write must be well organized and come with a Makefile that can be used to correctly compile your program. Without a Makefile, your homework assignment will not be graded—meaning that you will receive zero points.

  • hw1-9fhxfa.zip