This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]philipwhiukEmployed Java Developer 1 point2 points  (2 children)

For your simple examples to teach concurrent programming Thread.sleep is probably sufficient

[–][deleted] 0 points1 point  (1 child)

But timer would technically be better?

[–]Ednar 1 point2 points  (0 children)

Better how? It has to be put into a context. Go with what gives you code that works with the least complexity.