Thresholidng with atomic operations tested