Problem Description
Use your understanding of threads and concurrency to implement sales and purchases in your store application, allowing multiple customers to purchase products from your store. Prevent various problems associated with multi-threading such as race conditions, deadlock,
How will I complete this project?
-
Write automated test
-
Organize the folders for your module (application), to house both your codebase and the tests.
-
Write tests to cover all the methods to be written before development begins (TDD (Test Driven Development)).
-
Make logical assumptions where necessary.
Steps to evaluate.
- Classes
a. At Minimum
i. UML should be used.
ii. The right visibility modifiers should be used.
iii. The code should show understanding of multi-threading by efficiently avoiding deadlocks.
iv. The following concepts should be effectively used;
· Composition
· Generics
· Collections
· Exception Handling
-
Use/Implement a Priority Queue class where applicable.
-
Test Coverage
b. At Minimum
i. The tests should cover the methods as well as the conditions/procedures that the methods employ