Browse Prior Art Database

Method to find parent thread and stack traces for JAVA multiple threads

IP.com Disclosure Number: IPCOM000235494D
Publication Date: 2014-Mar-05
Document File: 4 page(s) / 81K

Publishing Venue

The IP.com Prior Art Database

Abstract

This invention provides a method to collect all stack traces in a Java mutiple threads program, and forms a whole parent-child thread tree to provide debug information for end user.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 76% of the total text.

Page 01 of 4

Method to find parent thread and stack traces for JAVA multiple threads

When we debug or monitor a thread in a Java multiple threads environment , you will find the stack traces only belong to the current thread, the stack traces for parent thread are missed. This does not give a clear picture of what is going on. Then if we

want to check out how and when the child thread is created, it's difficult for us since there are no stack traces information for its parent thread. So we want to find out a way to find a parent thread and according stack traces for the debugged thread , and use it to debug and monitor.

This invention will provide a method to find parent thread and according stack traces for the debugged thread in Java environment. In a Java multiple threads environment, native code will handle a new thread resource allocation, this is why the stack traces of parent thread will be missed in Java system. When a new thread is launching(a parent thread creates a child thread), the debugger will collect the stack traces of threads and store the relationship of these threads . When a breakpoint is triggered or we want to find the parent thread for a specific thread, then we can get the parent thread information from the debugger store.

When debugging, check "Thread.start" method invocation event, if this event raises, collect the stack traces for current thread and generated threads relationship ( parent-child ), these collected information will be stored in the...