US 12,332,789 B2
Multiple level caching of user level thread stacks for user level threads
Oluwatobi Ajila, Ottawa (CA); Babneet Singh, Nepean (CA); and Siwei Lu, Ottawa (CA)
Assigned to International Business Machines Corporation, Armonk, NY (US)
Filed by International Business Machines Corporation, Armonk, NY (US)
Filed on Oct. 18, 2023, as Appl. No. 18/489,501.
Prior Publication US 2025/0130942 A1, Apr. 24, 2025
Int. Cl. G06F 12/0811 (2016.01)
CPC G06F 12/0811 (2013.01) 20 Claims
OG exemplary drawing
 
1. A computer-implemented method for multiple level stack caching, the computer-implemented method comprising:
unmounting, by a computer, a user level thread of a multithreaded application from a carrier thread of an operating system;
performing, by the computer, an analysis of a level 1 cache corresponding to the carrier thread in memory to determine whether the level 1 cache is full;
performing, by the computer, an analysis of a level 2 cache in memory to determine whether the level 2 cache is full in response to the computer determining that the level 1 cache corresponding to the carrier thread in memory is full; and
storing, by the computer, a user level thread stack corresponding to the user level thread in the level 2 cache in memory in response to the computer determining that the level 2 cache in memory is not full.