Dev #3

Merged
Aryan merged 22 commits from dev into main 2026-06-05 20:30:51 +00:00
Owner
No description provided.
Aryan added 22 commits 2026-06-05 20:30:37 +00:00
Reviewed-on: #2
Reviewed-on: #1
- Replace DemoFactory with DemoApplication to centralize system setup, execution, and shutdown
- Move ExecutorService and ScheduledExecutorService lifecycle management into application layer
- Ensure proper shutdown sequence for worker and monitoring threads
- Simplify Main class to a minimal entry-point wrapper
- Improve clarity of execution flow: build → run → shutdown
- Prevent resource leakage by explicitly awaiting termination of thread pools
- Provide clean BankAccount skeleton for student implementation
- Define thread-safety responsibilities for getBalance, deposit, withdraw, and transfer
- Add detailed TODO comments clarifying concurrency and deadlock requirements
- Include hints for lock strategy and global ordering for transfer method
- Ensure compatibility with DemoApplication and stress testing infrastructure
- Introduce BankAccount-focused concurrency tests based on Transaction → Processor → Account flow
- Add stress tests for high-contention deposits, withdrawals, and bidirectional transfers
- Validate atomicity and consistency across multi-threaded execution scenarios
- Include deadlock detection tests under heavy transfer contention
- Align all test cases with updated module structure and BankAccount concurrency contract
Aryan merged commit fa95f2ebeb into main 2026-06-05 20:30:51 +00:00
Aryan deleted branch dev 2026-06-05 20:30:52 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: AdvancedProgramming1404/HW-09-Advanced-Multithreading#3