Is there an open source alternative to Apple Xgrid?

Is there an open source alternative to Xgrid (windows or mac) that allows me to easily setup a grid of computers from local network and internet to run applications with?

Also for apple Xgrid can any application be distributed across the grid?