A method for resource allocation includes acquiring resource information indicating an available wireless resource and an available computing resource, and allocating the available wireless resource and the available computing resource for a transmission mode of a wireless transmission based on the resource information and a system utility requirement.