Thunderbolt to Thunderbolt cable with a 27 inch iMac, but Mac Pros don't have Thunderbolt...
The closest thing I can think of is putting the Mac Pro in target mode, but then you'd be working on the iMac with the Mac Pro as a glorified external drive.
