...
Time | Thread# | Pool Thread | Submitted By Method | Day |
---|---|---|---|---|
1 | t1 | 1 |
| Friday |
2 | t2 | 2 |
| Monday |
3 | t3 | 1 or 2 |
| Friday |
In this execution order, the two threads (t1 and t1) started using doSomething2()
are expected to see the current day as Monday, however, one of them (t3) inherits the day Friday from the first thread (t1), when that thread is reused.
...