Skip to content

aydinmustafacan/theater-ticket-reservation-system-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Ticket Simulator Project by Mustafa Can Aydin

Main idea of the project is to implement threads in order to be used for ticket synchronization project. I implement in this project three teller-threads, some number of client threads determined by configuration file and a main process' thread. Main thread will create all the other threads. Job of client threads is to ask for their ticket to be proceed to teller-threads and the teller threads will take care of ticket reservation system for the client threads. Each client thread is responsible for asking to tellers in order for their ticket to be reserved and once their ticket is reserved, client-thread will exit. On the other hand teller-threads will wait until all the clients' tickets are reserved and once all the clients' tickets has been reserved, program will complete execution.

Compiling and Running

In order to run program one must run make file first to compile the program into executanle called simulation

    make
    

After compilation is done, one has to run simulation as shown below

    ./simulation configuration_path output_path

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published