Method and apparatus to facilitate suspending threads in a platform-independent virtual machine
First Claim
1. A method to facilitate suspending threads in a platform-independent virtual machine implemented on an operating system that lacks a global mechanism for suspending threads, comprising:
- executing a thread requiring other threads to be suspended;
changing a scheduling policy for the thread; and
raising a priority of the thread to a highest available priority, whereby changing the scheduling policy and raising the priority of the thread causes the thread to run to completion while other threads do not run.
1 Assignment
0 Petitions
Accused Products
Abstract
One embodiment of the present invention provides a system that facilitates suspending threads in a platform-independent virtual machine implemented on an operating system that lacks a global mechanism for suspending threads. The system operates when the platform-independent virtual machine executes a thread requiring other threads to be suspended. The system first changes the scheduling policy for the thread, and then raises the priority of the thread to the highest available priority. Changing the scheduling policy and raising the priority of the thread causes the thread to run to completion while other threads do not run.
-
Citations
21 Claims
-
1. A method to facilitate suspending threads in a platform-independent virtual machine implemented on an operating system that lacks a global mechanism for suspending threads, comprising:
-
executing a thread requiring other threads to be suspended;
changing a scheduling policy for the thread; and
raising a priority of the thread to a highest available priority, whereby changing the scheduling policy and raising the priority of the thread causes the thread to run to completion while other threads do not run. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method to facilitate suspending threads in a platform-independent virtual machine implemented on an operating system that lacks a global mechanism for suspending threads, the method comprising:
-
executing a thread requiring other threads to be suspended;
changing a scheduling policy for the thread; and
raising a priority of the thread to a highest available priority, whereby changing the scheduling policy and raising the priority of the thread causes the thread to run to completion while other threads do not run. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. An apparatus that facilitates suspending threads in a platform-independent virtual machine implemented on an operating system that lacks a global mechanism for suspending threads, comprising:
-
an executing mechanism that is configured to execute a thread requiring other threads to be suspended;
a changing mechanism that is configured to change a scheduling policy for the thread; and
a priority raising mechanism that is configured to raise a priority of the thread to a highest available priority, whereby changing the scheduling policy and raising the priority of the thread causes the thread to run to completion while other threads do not run. - View Dependent Claims (16, 17, 18, 19, 20, 21)
-
Specification