The warring sides in Yemen will exchange some 1,081 prisoners on Thursday and Friday, under a deal struck last month, a rebel official said.