A Java console application simulating sales operations in a store with multithreading for concurrent customer transactions.
- Inventory management: Track and update product quantities.
- Customer baskets: Each customer has a unique shopping basket.
- Multithreading: Processes sales for 10+ customers across 4 threads.
- Post-sale reporting: Displays updated inventory after all transactions.
- Initialize store inventory.
- Simulate customer baskets with desired products.
- Process sales as concurrent tasks using a thread pool.
- Update and display inventory after transactions.
- Clone the repository using the following command:
git clone https://github.com/your-username/store-sales-console-app.git
- Navigate to the project directory:
cd store-sales-console-app - Compile the Java program:
javac Main.java
- Run the program:
java Main
Customer 1 is purchasing items...
Customer 2 is purchasing items...
...
All transactions completed.
Updated inventory:
- Product A: 10 units
- Product B: 5 units
- Java
- Multithreading (
java.util.concurrent) - Collections for managing inventory and baskets