home/roleplay/concurrency

Concurrency

GPTClaudeGemini··1,003 copies·updated 2026-07-14
concurrency.prompt
# Java Concurrency Issue Analyzer

Use this prompt to analyze and fix concurrency issues in Java.

---

## 🧠 Prompt

Analyze this concurrency issue in Java. Provide:

- What race condition or thread conflict is occurring  
- How to reproduce it  
- How to fix it using `synchronized`, locks, Atomics, or thread-safe structures  
- An improved code example  

**Code:**

when to use it

Community prompt sourced from the open-source GitHub repo garlichck/chatgpt-prompt-for-software-engineer (MIT). A "Concurrency" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

garlichck/chatgpt-prompt-for-software-engineer · MIT