A method is disclosed to assign Priority to Processes based on Roles. The
method calculates the process priority of the process using a scheduler
running in the computer system, based on either a first weight of a first
role, a second weight of a second role, or a calculated weight if both
the first and second roles can unlock access to the process. The method
then assigns a share of the computer system's time to the process, the
share of time being based on the process priority calculated for the
process.