synchronization modification in threads