Thread synchronization (---mark-to-win java video