added 'sleeping_threads_update' prodcedure