Towards the Next-Generation Grid: A Pervasive Environment for Knowledge-Based Computing