TCSS 422 Computer Operating Systems Homework Assignment 5 solution

$24.99

Original Work ?

Download Details:

  • Name: Homework5.zip
  • Type: zip
  • Size: 88.47 KB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (2 votes)

Guidelines
Homework should be electronically submitted to the instructor by the end of the day on the due date. A submission link is provided on the course Canvas page for this assignment.
Assignment Description
This short assignment is intended to familiarize you with basic programming in MINIX. Your primary task is to set up a MINIX VM and then implement a very small C program.
Implementation Specifications
Follow the instructions on the course Canvas site for setting up and configuring MINIX.
The small C program you’re to implement performs a simple operation, it reverses the data sent to its standard input stream and writes it to the standard output stream. For the sake of simplicity, the source code for your program can reside in the home directory of the root user, /root. There is no required name for the source file, but this document uses reverse.c in subsequent examples. Regardless of how you edit your source file, you’ll need to manually compile your program within your MINIX VM. Assuming you’re in the directory with your source file, e.g., /root, you can compile your program with the cc command, e.g., “cc reverse.c”. By default, the compiled executable will be named a.out (for historical reasons), but you can change the name of the executable file the compiler produces using the -o command-line switch, e.g., “cc reverse.c -o reverse” to produce an executable file named reverse. The name of the executable file is the command you issue at the command line to run your program. Unless you adjust the PATH environment variable, you will need to prefix that command with the path to the executable file, e.g. “./reverse”. If you were to execute the program so that it read input from the console and then typed “Hello”, followed by