Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Off-topic

???
12/08/03 17:20
Read: times


 
#60177 - RE: Homework Assignment
Responding to: ???'s previous message
This guy mate me in yahoo chat and after asking what I am doing and my area he send me folowing for H/W. I and ask me my cell and I have given so he called me and asked me to help. Follwong is the write up.

And I dont know how to do this. If any one can do then send me. I will forward this to that guy.

========

Write a program that mimics the behavior of an operating system’s device status table and its associated queues.

The program should have two stages of operation, the “sys gen” section, wherein the system installer (me) specifies how many devices of each type (printer, disk and CD-RW) are in the system, and the “running” section.

The “running” section should support two modes, “sys-op” and “user”. In “sys-op”mode, the operator (me, again) should be able to toggle the various devices on or off line. All devices should start out on line. Entering p#, d# or c# should toggle that numbered printer, disk or CD-RW on/off line. When a device is taken off line, the processes enqueued to it should not get “lost”, but no jobs should be able to be added or completed (see below for more details)

In user mode, the processes (played by me) single system calls to request resources as follows: entering p#, d# or c# requests printer number # , disk number #, or CD number # respectively. The System should then prompt for the “right” information (for example, if the user enters d2, the System should ask if it is a read or write request, the file name, the starting address of the file in memory and the length of the file) (this is to mimic parameter passing). The devices (again played by me) will signal an interrupt denoting the completion of a task by entering P#, D# or C#. That is, printer 2 will signal completion of its current job ( and its readiness for the next job in its queue) with a “P2” entered at the keyboard.

Entering an “m” when “running” should toggle the system between sys-op mode and user mode. In either mode, entering an “s” should display the current system status, that is it should list the status of every device, (off line, busy or idle) along with all the processes enqueued and the “right” information for each process. The user of this program (me) must be able to see this information before it scrolls off screen. It is usually a Bad Idea to rely on counting loops for timing.

Hand in both source code and executable code as disk files. Be modular, you will want to reuse this in later programs. Please remember that I will not make any changes to your code to get it to run: be SURE to run (and debug) your program for a “system prompt” , not just from within your integrated development environment. Be sure to use a “static compile”, remember I will not have most .dll’s installed on my Windows machines.



List of 8 messages in thread
TopicAuthorDate
Homework Assignment            01/01/70 00:00      
   RE: Homework Assignment            01/01/70 00:00      
      RE: Homework Assignment            01/01/70 00:00      
         If you will give them your number...            01/01/70 00:00      
            RE: If you will give them your number...            01/01/70 00:00      
   RE: Homework Assignment            01/01/70 00:00      
      RE: Homework Assignment            01/01/70 00:00      
         RE: Homework Assignment - 100            01/01/70 00:00      

Back to Subject List