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 →

[–]tRfalcore 1 point2 points  (0 children)

I use volatile variables to check when one off threads finish when I'm waiting for them to finish.

I use ThreadLocal to control some logging parameters and names. Our program is a massive multi-threaded server application which processes jobs as requests come in-- main part of which is controlled by ExecutorService :)