A method and apparatus are provided for dynamically allocating an access
bandwidth for one or more resources to threads of a multithreaded
processor. The allocation is performed by providing an execution based
metric for each thread and providing an access to the resource in
dependence on the execution based metrics of the threads. In addition, or
alternatively, a resource based metric can be determined and the access
to the resource is provided in dependence on the resource based metric.