BSP supremo Mayawati on the second day of monsoon session walked out of Rajya Sabha and threatened to resign from the post if not allowed to speak in the house.