The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.

The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.

Date of Patent:
Mar. 18, 1997

Filed:

Apr. 15, 1994
Applicant:
Inventors:

Eric W Anderson, Los Gatos, CA (US);

David F Harrison, Boulder Creek, CA (US);

Assignee:

Apple Computer, Inc, Cupertino, CA (US);

Attorney:
Primary Examiner:
Assistant Examiner:
Int. Cl.
CPC ...
G06F / ;
U.S. Cl.
CPC ...
395678 ;
Abstract

A system for custom context switching comprises a thread accounting unit, a switching routine registration unit, a thread scheduling unit, a custom context switching unit, and a default context switching unit. The thread accounting unit creates a thread object for each thread present in a multithreaded execution environment, where the thread object includes data fields for storing a unique thread ID, a reference to a custom context switching routine, and a switching parameter signal. The switching routine registration unit stores a reference to a custom context switching routine in a particular thread object. The thread scheduling unit determines when rescheduling operations for transferring execution from one thread to another are required, and directs rescheduling operations. During rescheduling operations, the custom context switching unit initiates the execution of a custom context switching routine associated with a thread being switched-out, after which the default context switching unit performs a default context switch, after which the custom context switching unit initiates the execution of a custom context switching routine associated with a thread being switched-in. A method for custom context switching comprises the steps of: executing a thread until rescheduling is required; determining whether the thread has an associated custom context switching routine; in the event that the thread has an associated custom context switching routine, initiating the execution of the custom context switching routine; and performing a context switch.


Find Patent Forward Citations

Loading…