Drashti Shah
bank_simulation.py– Main Python program simulating the multithreaded bankdevlog.md– Development log with time-stamped progress entriesREADME.md– This file, containing instructions and documentation
This project simulates a bank environment using threads and semaphores:
- 3 Tellers (threads) ready to serve customers
- 50 Customers (threads) each randomly performing either a Deposit or Withdrawal
- Controlled access to:
- Bank door (only 2 customers allowed at a time)
- Manager (only 1 teller at a time for Withdrawals)
- Safe (only 2 tellers allowed inside at a time)
- Uses Python’s
threadingmodule and semaphores for synchronization
- Python 3.x installed
Open terminal or command prompt, then run:
python bank_simulation.py