摘要 |
PROBLEM TO BE SOLVED: To provide a device and a method for destroying thread. SOLUTION: In a first aspect of this invention, the frames of a thread stack associated with a code acting wrongfully is popped from the thread stack. Execution of a trusted code is allowed to an exception handling code by popping a trusted code frame via an exception processing, but execution of an exception handling code is not allowed to a non-trusted code. In a second aspect of this invention, frames are popped from all the thread stacks of all the threads associated with the misbehaving code. The thread is generally deemed to be associated with the misbehaving code when the threads share a same object or the same resources as the thread associated with the misbehaving code. |