CSCI 152: Operating Systems Programming

Laboratory Assignment 1 for September 3, 2003

ASSIGNMENT DUE: see calendar on the web

Assignment Description:

In this assignment students will write a simple Network Client/Server program.  The server has a very simple job, it launches rocketship into outer space. A client connects to the server on a certain port number.  The server waits for a message from the client.  The client then sends the server a text message "launch".  Once the server recieves this message it sends the countdown to the client; 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, and finally the message "Blast Off!"  This only happens 50% of the time though.  The other 50% of the time the server sends the countdown; 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, and then the message "Kaboom!"  Meaning that the rocketship blew up and was destroyed in an explosion.  Luckily this program only launches rocketships without people on them so nobody gets hurt.

This assignment is very contrived but I think it will be

Goal:

The goal of this assignment is to introduce students to dealing with operating system fundamentals such as process and thread management, concurrency issues and network sockets.

Objectives:

Expected Outcome:

Some vague ideas about how to proceed:

Grading:

Resources: