Back to All CourseworkDistributed Computing System
Pair Project with Tejas D. ShindeFeb 2025Interactive Web Demo
Concurrent FTP with Granular File Locks
An advanced FTP server featuring non-blocking background transfers, per-file ReadWriteLock concurrency, and an out-of-band terminate channel.
My Contribution: I architected the per-file locking system, async transfer worker pool, and dual-port terminate interrupt.
Live Browser Simulation
Concurrent Read/Write Lock Simulator
Client-Side Engine
Try this: Queue multiple readers alongside a writer and watch read locks yield to the exclusive writer.
Loading simulation engine...
Architecture verification: Recreates Java concurrent locking semantics and dual-socket command routing.
Implementation Highlights
- Dual-port architecture: Port A handles data commands, Port B receives out-of-band terminate requests.
- Granular per-file ReadWriteLock: multiple concurrent readers permitted, writers get exclusive access.
- Asynchronous background task tracking with unique transfer task identifiers.
- Periodic chunk-level cancellation checks with automatic partial-file rollback.
Algorithm & System Mechanics
- Maintains lock tokens in a ConcurrentHashMap keyed by canonical file path.
- Secondary control port allows instant kill commands without head-of-line blocking.