I have a ThreadPoolExecutor whose submit method may be called concurrently by multiple threads. I’m wondering how the ThreadPoolExecutor would handle this. I don’t see that submit is atomic from the source code, although maybe I’m missing something.
Thanks in advance for any advice.