摘要:
A scheduler for allocating a computer system resource, such as processor time, among processes (e.g., database processes) according to a plan. A scheduling plan may include multiple sub-plans, and each plan and sub-plan may include multiple classes of processes with associated weights or values. Within a plan, the resource is first allocated to the classes and/or sub-plans included in a first level of the plan according to their associated weights. Any unallocated portion of the resource is then allocated to classes/sub-plans in subsequent levels, in turn, according to their assigned weights. If a given class of processes is empty when the resource is allocated in a level including the class, the allocation that would have been allotted to the class may be carried over into the next level. An active scheduling plan may be dynamically replaced during system operations.
摘要:
A computer implemented method, involving a database management system, retrieves information from a data structure in a memory of a computer system. A user process specifies in a database query language statement a key value used to directly access the information, rather than sequentially searching the entire data structure for the information. A database management system process uses the value to find a location in the data structure at which said information is stored and maps the location in the data structure to a memory address in memory at which the information corresponding to the value is stored. The database management system process retrieves the information from the data structure in memory beginning at the memory address and provides the information to the user process in response to the database query language statement.