Read And Write using wait and notify