-
公开(公告)号:US07016911B2
公开(公告)日:2006-03-21
申请号:US10317276
申请日:2002-12-10
申请人: Melissa N. Bousfield , Douglas J. Doole , Sean W. McKeough , Timothy J. Vincent , George M. Wilson
发明人: Melissa N. Bousfield , Douglas J. Doole , Sean W. McKeough , Timothy J. Vincent , George M. Wilson
IPC分类号: G06F17/30
CPC分类号: G06F9/44594 , Y10S707/99942 , Y10S707/99945
摘要: Library management for libraries of user-defined routines in a database system. Libraries are stored in a long-term storage device and loaded into working memory in the database system when routines in the libraries are to be executed. An unload thread is defined to carry out the process of unloading libraries from the working memory when such libraries are inactive. The unload thread becomes active on a defined timing interval. The unload thread accesses a hash table and a most recently used list to determine which of the loaded libraries is inactive and which of the libraries ought to be unloaded. The hash table maintains information as to which libraries have been accessed in the most recent past defined timing interval. The size of the most recently used list can be defined such that all libraries associated with the list are retained in working memory.