Using iMac as Mac Pro display
You can use the MiniDisplay Port on the back of the iMac and put the iMac into target display mode, turning it into an external display.

More info: http://support.apple.com/kb/HT3924