Mac Pro average lifetime? I am thinking of buying a new workstation computer, and Mac Pro is like the first thing I thought of buying. 

I know Apple supports their computers for quite a generous time period, like the mid-2007 iMac is still supported in Yosemite. However, I see that only models going forward from Early 2008 are supported for Mac Pro(source: http://www.ibtimes.com/os-x-yosemite-compatibility-find-out-if-your-mac-will-be-able-update-1594262). 

So are Mac Pro's not supported for as long as iMac's or is there a different reason? How long are Mac Pro's generally supported for? Thanks in advance.
Well, the Mac Pro went through quite a long period of stagnancy recently, which is likely the cause of the disparity you see between the iMac and Mac Pro in terms of software compatibility.

According to the MacRumors Buyer's Guide, the Mac Pro has by far the largest average time between refreshes (449 days), so new models are sparse.

Because of that, it's a good time to buy, if that's what you're asking. Though there could be a minor spec bump or price drop at any time (those are more or less unpredictable from afar), it's not worth the risk of waiting for one. The December 2013 update is likely the only major refresh we'll see for quite a while.

As far as average lifetime goes, the Early 2008 Mac Pro shipped with OS X Leopard (10.5), and is still supported in Yosemite (10.10), so it has received five software updates so far (and there could still be more). 

Based on that, you could expect software compatibility to last for upwards of 6 years on a Mac Pro bought today, if that's how you define lifetime. However, the Mac will of course function on old software for much longer than that.