Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSCI 311 Project 3 Individual Assignment Due: February 14, 2018 Points: 35 Purpose: The objective of this project is to gain experience with UNIX (MINIX)

image text in transcribed
image text in transcribed
image text in transcribed
CSCI 311 Project 3 Individual Assignment Due: February 14, 2018 Points: 35 Purpose: The objective of this project is to gain experience with UNIX (MINIX) system calls. Requirements: 1. This assignment is an individual assignment: You are expected to produce your 2. Overview: You are to write two programs, Interface and Server. After own solution to the assignment. initialization, the Interface will use the fork system call and an exec system call to start the execution of the Server. The Interface will accept commands from the console and send them to the Server for execution. After executing the command, the Server will send the output to the Interface for display on the console. Pipes: The Interface will need to create the pipes to be used for communication between itself and the Server prior to doing the fork. Use two pipes, one for sending commands to the Server and one for sending the response to the Interface. 3. 4. Interface: In addition to tasks described elsewhere, the Interface must pass the pipe tile descriptor values to the Server. Use the arguments on the exec command for this purpose. The Interface should also detect the final exit status of the Server and display an appropriate message. 5. Server.. When the Server initializes, it must do two things before entering its loop accepting commands. First, it must initialize an array of structures (records) using the data in a local file called gasData. Second, it should display the contents of the array so it is easy to verify that the initialization occurred correctly. The records will keep track of the gas consumption of a set of cars. Each structure in the array is to consist of the following fields: .id: this is the identifier of the car (a character string of up to 8 characters). meter: the reading on the odometer at the time of fill-up (integer). gallons: Number of gallons to fill up the tank (float). You are to create and use a typedef for the record structure. gasData: each line of this ASCIl file is to contain the data for one record of the array of structures. Each line is expected to be in the form: 6. id odometer gallons where a single space is used as a delimiter. CSCI 311 Spring 2018

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

which restuurant personnel are responsible for setting guests?

Answered: 1 week ago

Question

2. Outline the business case for a diverse workforce.

Answered: 1 week ago

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago