How to get previous element from collection and correctly synchronize threads?

Printable View