125-java-concurrency - Java Concurrency Best Practices Implementation
Apply Java concurrency best practices for thread safety, scalability and maintainability
Tags
Updated: 2026-03-09Capabilities
Typical Inputs
Typical Outputs
What this skill does
- validate project compilation
- analyze existing concurrency patterns
- apply thread safety fundamentals
- refactor thread pool management
- implement concurrent design patterns
- migrate to CompletableFuture
- adopt virtual threads
- enforce cancellation discipline
- add backpressure protection
- eliminate deadlock risks
- add observability
- run verification tests
Inputs
- Java source code
- Maven project
- ConcurrentHashMap
- AtomicInteger
- ReentrantLock
- ReadWriteLock
- ExecutorService
- BlockingQueue
- CompletableFuture
- virtual threads
- StructuredTaskScope
- ScopedValue
Outputs
- compiled Java project
- thread-safe code
- configured thread pools
- concurrent design patterns
- async operations with CompletableFuture
- virtual thread implementation
- cancellation handling
- backpressure mechanisms
- deadlock-free code
- observability features
- test verification results
Requirements
- Maven installed
- Java project
- run mvn compile before changes
- stop on compilation failure
