The dispatchers will send one train or the other to a siding to wait until a train from the other direction, or a faster train coming up from behind, passes. If there are frequent delays due to single-tracking, railroads (or transit systems) will sometimes bite the bullet and lay a second track.