Invention Application
- Patent Title: Intra-Process Caching and Reuse of Threads
-
Application No.: US17119998Application Date: 2020-12-11
-
Publication No.: US20220188144A1Publication Date: 2022-06-16
- Inventor: David Dice , Alex Kogan
- Applicant: Oracle International Corporation
- Applicant Address: US CA Redwood City
- Assignee: Oracle International Corporation
- Current Assignee: Oracle International Corporation
- Current Assignee Address: US CA Redwood City
- Main IPC: G06F9/48
- IPC: G06F9/48

Abstract:
A computer comprising one or more processors and memory implements a thread manager for multiple threads of an application. The thread manager may implement a process-local cache of standby threads for the application. Upon request to create a thread for the application, the thread manager may use a standby thread from the process-local cache to create the requested thread, initializing thread-local storage elements and scheduling the thread for execution. Upon request to terminate a thread of the application, the thread manager may place the thread in an unscheduled state and add the thread to the process-local cache of standby threads. The thread manager may also add or remove standby threads to the process-local cache of standby threads in the event the thread manager determines that the number of standby threads in the process-local cache lies outside a target range.
Information query