You do not need a second monitor or a switch box. Every computer that connects to the iMac gets a place of its own on the screen, with nothing to pair.

Switch between the two computers with a swipe

On the iMac each computer is a full-screen desktop, so you switch between them the way you move between full-screen apps: a swipe sideways on the trackpad, a swipe on a Magic Mouse, Control and an arrow key, or Mission Control.

The first computer fills the iMac’s screen at its full resolution. When a second one connects, it does the same on a desktop of its own, so neither picture is squeezed or shrunk, and the first one keeps its own desktop. A computer that connects later never takes over another one. It simply appears as one more desktop.

Using an iPad as the monitor works the same way, with a three-finger swipe to switch. An iPhone shows one computer at a time.

Both computers on screen together

If you want to keep an eye on both pictures, switch to Side by side. The screen divides into equal columns, one per computer, and each keeps working as before. You choose the layout on the iMac, in Settings › Advanced under Several Computers. The steps are in Support: Show several computers on one iMac.

Sound from both computers

The iMac plays the sound of every connected computer. A video call on the Windows PC and music from the MacBook both come out of the iMac’s speakers, and it makes no difference which desktop is in view.

Use the iMac itself while both stay connected

With Second Display Pro, picture in picture shrinks one computer’s picture into a small floating window, so the iMac’s own desktop and apps are free to use. In Separate only that computer’s picture shrinks and the other desktops stay as they are. The keys and the menu are in Support: Picture in Picture.

Questions

Can one iMac be the monitor for a Mac and a Windows PC at the same time?

Yes, any mix of Macs and Windows PCs can show their screens on the same iMac together. There is nothing to pair: each computer just connects to the iMac. Show several computers on one iMac

How do I switch between the two computers on the iMac?

Swipe sideways on the trackpad or Magic Mouse, or press Control and an arrow key. Mission Control names each desktop after its computer. Switching between computers

Can I see both computers on the iMac screen at once?

Choose Side by side and the screen splits into equal columns, one for each computer. On the iMac it is in Settings › Advanced, under Several Computers. Separate or Side by side

Does the sound of both computers play on the iMac?

The iMac plays the sound of every connected computer, whichever one is in view. Sound through the display Mac’s speakers

Does showing two computers need Second Display Pro?

No, showing several computers on one iMac is part of the regular licence. Picture in picture and keyboard and mouse control of the iMac’s desktop are Pro tools. What is Second Display Pro?

Can an old iMac that runs Second Display Connect show two computers?

Yes, but Second Display Connect shows them side by side in columns, without a desktop for each. Separate or Side by side