Open Resource Allocation for Mobile Code