发明名称 SINGLE-KEYED INDEXED FILE FOR TP QUEUE REPOSITORY
摘要 SINGLE-KEYED INDEXED FILE FOR TP QUEUE REPOSITORY A task queue is structured as a single-keyed indexed file in which the key has a most significant portion indicating a priority level and a less significant portion that is ordered with the loading of the tasks into the queue. For any given task record in the queue, the less significant portion of the key is determinable from a respective task identifier. Preferably the less significant portion of the key is a "time stamp" including the current date when the task was created and a representation of the data processor's internal 24 hour time clock, and a task identification number is formed by appending a node number to the time stamp in the event that the system has multiple processors capable of creating different tasks at the same time. This format of the single key causes an internal ordering of the records in the queue that is sequential with respect to the less significant portion of the key within blocks of records having the same priority. Therefore, due to the relationship between the key and the task identification number for each task record in the queue, it is possible to quickly search for the record having a requested task identification number. Conventional memory management facilities for accessing key-indexed files can be used for searching the queue. In this case the queue is searched by random or "key next" access to repeatedly step through the possible priority levels until a record having a matching key is found or the end of file is reached. When a record having a matching key is found, the requested task identification number is compared to the identification field of the record. If there is a match, PD88-0519 the desired record has been found. If not, then searching continues by sequential access until there is a match of the identification numbers or until the keys no longer match. PD88-0519
申请公布号 CA1322422(C) 申请公布日期 1993.09.21
申请号 CA19890602860 申请日期 1989.06.15
申请人 DIGITAL EQUIPMENT CORPORATION 发明人 EMMOND, JAMES P.
分类号 G06F15/16;G06F9/46;G06F9/48;G06F15/177;G06F17/30 主分类号 G06F15/16
代理机构 代理人
主权项
地址