How to Connect Two Computers to One Monitor
1). Buy a switch box. Think about buying a box with extra ports in case you might want to hook up any extra machines later on down the line.
2). Buy a pair of SVGA cables if they aren't included with the switch box you buy (kits including a box and cables are a more practical value for most setups).
3). Buy any necessary adapters if you plan to connect a PC and a Mac to one monitor.
4). Shut down both computers.