A high-level cache containing an apparatus for efficiently writing directory entries to an array of directory entries, comprising:
- an n-position priority queue;
- priority indicators connected to the n-position queue for indicating which order the directory entries were placed into the n-position priority queue;
- and
- modifying circuitry connected to the n-position queue for modifying the directory entries, the high-level cache being operable in a first mode of operation in which,
- the high-level cache places the directory entries into the n-position priority queue;
- the high-level cache updates the priority indicators;
- the n-position priority queue waits for a result to be received for the directory entries;
- the high-level cache receives the result;
- the high-level cache examines the priority indicators and the directory entries in the n-position priority queue;
- the high-level cache selects a specific directory entry from the directory entries in the n-position priority queue who has been in the n-position priority queue the longest and is expecting a type of result having characteristics of the result received;
- and,
- the high-level cache assigns the result received to the specific directory entry.