Techniques for implementing caches for context switching applications are provided. A context identifier is stored in the cache to indicate the context to which data in the cache is associated. Additionally, the context can have different priorities so that storage space in the cache can be more efficiently allocated to the contexts based on their priorities.
This application is a continuation of U.S. application Ser. No. 10/109,318, filed Mar. 28, 2002, U.S. Pat. No. 6,857,046 which is hereby incorporated by reference for all purposes.