Method, apparatus, device, medium and product for processing stack information
OwnerYaoyuan ZHENGinventor
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure relate to a method, an apparatus, a device, a medium, and a product for processing stack information. The method includes obtaining a stack information item of a first thread in response to the first thread calling an application programming interface for switching a thread. The method further includes transferring the stack information item of the first thread to a second thread after switching the first thread to the second thread via the application programming interface. The method further includes storing the stack information item in a storage space allocated for the second thread.
Claims20
A method for processing stack information, comprising:
- obtaining a stack information item of a first thread in response to the first thread calling an application programming interface for switching a thread;
- transferring the stack information item of the first thread to a second thread after switching the first thread to the second thread via the application programming interface;
- storing the stack information item in a storage space allocated for the second thread.
An electronic device, comprising:
- at least one processor;
- and
- a memory, configured to store at least one program, wherein the at least one program, when executed by the at least one processor, causes the at least one processor to:
- obtain a stack information item of a first thread in response to the first thread calling an application programming interface for switching a thread;
- transfer the stack information item of the first thread to a second thread after switching the first thread to the second thread via the application programming interface;
- store the stack information item in a storage space allocated for the second thread.
A computer readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, causes the processor to:
- obtain a stack information item of a first thread in response to the first thread calling an application programming interface for switching a thread;
- transfer the stack information item of the first thread to a second thread after switching the first thread to the second thread via the application programming interface;
- store the stack information item in a storage space allocated for the second thread.
Dependencies are inferred from the claim text.