Add less than 2 seconds random waiting time in writerThread