Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor, see previous

...

Time

Thread#

Pool Thread

Submitted By Method

Day

1

t1

1

doSomething1()

Friday

2

t2

2

doSomething2()

Monday

3

t3

1 or 2

doSomething2()

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.

...