Actually, NY subway has 3 or even 4 tracks portions: https://en.wikipedia.org/wiki/List_of_New_York_City_Subway_l...
I think that's the reason why the New York's subway can operate during all night, because maintenance operations can happen on the other set of tracks.