Railway ticket reservation system in the Nachos Operating system
Railway ticket reservation system using the Nachos operating system which will help the passengers to book their tickets, search train between two stations and get details of particular train schedules including their fare details.
Assuming the followings:
Following are the important implementation details:
The List class is used to store the granted, refused and currently on train requests.
The Bitmap class under code/userprog/ to keep track of the availability of seats for trains.
Threads to simulate this train reservation system.
The train schedule is in the file ‘train_schedule.txt’ file located in the root directory.
The total simulation summary of the number of granted, refused requests, busiest section for each train, etc can be viewed in the ‘simulation summary.pdf’ file located in the root directory.
Simulation details:
5 requests every 10 min. (simulation time unit)
The railway ticket reservation simulation is from 6 am to 10 pm.
To start the Nachos OS and begin the simulation in Linux environment execute the following commands on the terminal:
navigate to the directory: /code/build.linux
make depend
make
./nachos -K