CMSC 246 Systems Programming
Spring 2018
Assignment#9
Due in Class on Monday, April 30, 2018
- Discrete Event Simulation - Part2
Implement the design of Part-2 of the Discrete Event Simulation program as outlined in Lab 12. Please be sure to complete all the tasks described in the Lab Handout.
Using the simulation, determine, given the parameters used in the implementation of the program, how many kiosks would be needed to keep the queue size to three or less. Use 60 minutes for simulation time. You will need to record (or you can automate this, if you'd like) the data for given number of kiosks after each run. A table you can use to record the output of the program is provided in your lab handout.
Scripting in Linux
Once done, you will need to show the sample runs of programs, as required below. In order to record the runs, you can use the Linux command script
.
Go to your Assignment directory and enter the command: script session
You will get your command prompt back. Next, run each of the above programs as you normally would. Once done, enter the command: exit
(or CTRL-D)
This will end your script session. If you now look a the contents of the session file, you will see that the entire interaction has been recorded in it (as a script!).
What to hand in:
- Clearly indicate what the optimum number of kiosos would be for the problem posed.
- A printout of some sample runs for the optimum number of kiosks you found.
- A printout of all the files in your program (do not have to do the List and node files).
- Write and print out a short 1/2-paragraph reflection on your thoughts on this lab (how this assignment went for you, what went wrong, etc.)
Back to CMSC246 Home page