I see a couple of people suggesting that you use a KVM. If you go that route, make sure you get one that matches your refresh rate, or you will be stuck at 20-30hz.
If you have the ports, you can connect the computers via different ports on the monitors and use the monitor buttons to swap between. A KVM would still be useful to move the mouse and keyboard.