Grid computing involves enormous amount of computing resources from multiple administrative domains to fulfill the objective of resources. With the rapid growth of Internet technology, user expectations are also getting at high level in terms of performance and efficient utilization of web servers. For fulfillment of such type of user expectation, numbers of efficient and different resource allocation policies are required. Now-a-days, increasing number of resources in the organizations gets costly, so it is required an efficient resource allocation mechanism that can minimize the allocation costs. In this paper, the cost of resources has been optimized while allocating to the users job(s). Here, an efficient mechanism has been proposed for allocation of resources as per user requirements.