A method and system for controlling access to computer resources by multiple software components is described. A locker manager is provided, which is adapted to manage access to shared computer resources by independent software components. If a particular hardware resource is not currently being used and is available, the locker manager grants a particular software component access to the particular computer resource and locks access thereto, wherein none of the other software components can access the particular computer resource until the particular software component has finished accessing the particular computer resource.