Supermarket Cashier Simulation

Description

This application simulates a supermarket environment, focusing on interactions between cashiers and customers using multi-processing techniques for a dynamic experience.

Features

  • Random Customer Behavior: Customers arrive and make choices randomly.
  • Dynamic Cashier Performance: Variable performance influenced by different factors.
  • Customizable Settings: Parameters like item lists and timing are configurable.
  • Graphical Interface: Visual representation using OpenGL.
  • IPC Techniques: Realistic multi-processing with IPC.

Installation

git clone https://github.com/M7mdOdeh1/ENCS4330-RealTimeProject-1.git
cd ENCS4330-RealTimeProject-1
make all
make run
Screencast.from.01-13-2024.12.52.31.AM.webm

Configuration

Edit arguments.txt to adjust parameters like customer arrival rates and cashier behaviors.

Testing and Debugging

  • Use gdb for debugging.
  • Vary configurations for different test scenarios.
  • Regularly check for memory leaks and process synchronization.

License

This project is freely available under an open license for any use.