For example, I used Synergy for a while. It was really hard to configure, particularly on the Mac, but when it worked it was awesome. Basically you can move the mouse seemlessly between the different monitors to control each machine.