|Publication number||US7676810 B2|
|Application number||US 10/860,839|
|Publication date||Mar 9, 2010|
|Filing date||Jun 3, 2004|
|Priority date||Jun 3, 2004|
|Also published as||US20050273783|
|Publication number||10860839, 860839, US 7676810 B2, US 7676810B2, US-B2-7676810, US7676810 B2, US7676810B2|
|Inventors||Nikolai D. Tankov, Samir A. Zoert, Peter K. Matov|
|Original Assignee||Sap Ag|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (68), Non-Patent Citations (14), Classifications (9), Legal Events (3)|
|External Links: USPTO, USPTO Assignment, Espacenet|
Embodiments of the invention generally relate to the field of computer systems and, more particularly, to a system and method for identification of the execution context of a thread.
In computer operations, including client/server systems, a thread is a particular set of instructions. In a Java™ environment, a thread is the basic unit of program execution. A process may include multiple threads running concurrently, possibly with each thread being involved with a different task. Each thread may operate largely independently from the other active threads.
In monitoring operations of a system, the identity of elements that are working with an active thread may be useful information. For example, a thread may be connected with a particular program component or software unit and with a particular transaction. In a Java environment, a transaction is unit of work that modifies data, which may include one or more program statements. However, a thread may work with numerous different components and transactions, with the components and transactions that are connected with the thread varying over time.
In conventional operations, it is not generally possible to directly identify a component or transaction that is working within a thread at a particular time. Therefore, ability to monitor of a system may be limited and operations may need to rely on external evidence of system processes.
A system and method for identification of the execution context of a thread is described.
In a first embodiment of the invention a method comprises associating a program object with a program thread; storing information concerning the program thread in the program object; and retrieving the information concerning the program thread upon request.
In a second embodiment of the invention a system comprises a processor, the processor to execute an application, the execution of the application to include the execution of a program thread; and a memory, the memory to store a program component, the program component to include the information regarding the current execution environment for the program thread.
Embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference numerals refer to similar elements.
Embodiments of the invention are generally directed to a system and method for identification of the component execution context of a thread.
Under an embodiment of the invention, a component is attached to the context of a program thread. In this embodiment, the component contains information regarding the execution context. Under an embodiment of the invention, the object comprises a resource set for the thread.
Under an embodiment of the invention, an interface is provided to enable a user of a system to obtain runtime information about the process of request execution. Under an embodiment of the invention, a process provides for retrieving the existing context for a thread to provide execution context data and replacing such context as the execution of the thread proceeds.
Under an embodiment of the invention, the component and transaction that are currently with a particular thread are identified. Under an embodiment of the invention, an object is attached to the thread context of a thread and this object is utilized to maintain identity information for the thread. Under an embodiment of the invention, an object associated with a program thread carries information regarding the application that is working within the thread. The object may be referred to herein as the component execution context.
In a Java environment, a thread is a single sequential flow of control within a program, representing a thread of execution in a program. In a Java virtual machine, an application may have multiple threads of execution running wholly or partially concurrently. A thread may be referred to as an execution context or a lightweight process. A thread may be utilized to isolate tasks.
However, while threads are said to be concurrent, a computer may have only one physical or logical processor, or fewer processors than the number of threads, so threads actually must share a central processing unit (CPU) with other threads. The execution of multiple threads when sharing one or more CPUs in some order is referred to as scheduling. For example, the Java runtime supports a deterministic scheduling algorithm known as fixed priority scheduling. In this environment, each thread has a priority. Threads with higher priority are executed in preference to threads with lower priority according to the scheduling algorithm.
An embodiment of the invention may operate in a Java environment, such as described in the Java 2 Platform, Enterprise Edition J2EE™ environment provided under the J2EE specification, J2EE (Java 2 Platform, Enterprise Edition), including as provided in the J2EE specification, version 1.4, Nov. 24, 2003. An application sewer is a term used to indicate a component sewer that is compliant with the J2EE environment. In such environment, the application sewer dispatches threads to execute submitted work instances.
Under an embodiment of the invention, an interface may be provided to provide runtime information regarding the execution process. Under an embodiment of the invention, an object associated with a program thread may contain one or more methods to provide information regarding the current execution environment at some point in time. Certain conventional methods involve the context of a thread. For example, current( ) returns the current context for the current thread. Under an embodiment of the invention, a method will further allow a user to obtain additional data, which may include the name of the application, component, or method currently working within a thread; to retrieve the transaction associated with the current thread; to identify the isolation level of the underlying back end system; to manage the object; and additional methods regarding the current execution context.
In addition to ensuring the full completion or rollback of statements that it encloses, a transaction isolates the data modified by these statements. The isolation level describes how visible data being updated is to other transactions. Said in another way, the isolation level is the degree to which the intermediate state of the data being modified by a transaction is visible to other concurrent transactions and data being modified by other transactions is visible to it.
In a Java environment, an application is a program, such as a program running on a server system. An application may reside in a container, the container being an entity that manages life cycle, security, deployment, and runtime services for a component. Under an embodiment of the invention, a component execution context may be utilized by various applications contained on a server, including a sewer that is compatible with the J2EE specification. The applications may include applications utilizing components contained in an Enterprise JavaBean™ (EJB) container and a web container. In this context, a component is a software-unit supported by a container, with components generally being either enterprise beans Enterprise JavaBeans, web components, applets, or application clients.
A program object representing the component execution context may comprise a resource set. Generally a resource set is a program object that keeps handle wrappers. Handle wrappers are the wrappers of connection handles opened by an application component to shared and unshared resources. The resource set also contains information about the application, the program component and the method that uses the resources, and the transactions in which the program component is used. In general terms, a wrapper is an object that encapsulates another object and delegates to the object in some way to alter its interface or behavior.
In an embodiment of the invention, the component execution context object includes one or methods to allow a user to access information regarding the current execution environment. If an inquiry regarding the component execution context is received 530, the execution context data is provided 535. The thread may be destroyed (halted) or interrupted at some point in its operation, which will indicate that the application will continue as programmed 545. If the thread remains active, the process continues with the thread execution 520 and with the storing of current execution data 525.
The computer 605 further comprises a random access memory (RAM) or other dynamic storage as a main memory 625 to store information and instructions to be executed by the processor 615 through 620. The RAM or other main memory 625 also may be used for storing temporary variables or other intermediate information during execution of instructions by the processors 615 through 620.
A hard drive or other storage device 630 may be used by the computer 605 for storing information and instructions. The storage device 630 may include a magnetic disk or optical disc and its corresponding drive, flash memory or other nonvolatile memory, or other memory device. Such elements may be combined together or may be separate components. The computer 605 may include a read only memory (ROM) 635 or other static storage device for storing static information and instructions for the processors 615 through 620.
A keyboard or other input device 640 may be coupled to the bus 610 for communicating information or command selections to the processors 615 through 620. The input device 640 may include a keyboard, a keypad, a touch-screen and stylus, a voice-activated system, or other input device, or combinations of such devices. The computer may further include a mouse or other cursor control device 645, which may be a mouse, a trackball, or cursor direction keys to communicate direction information and command selections to the processors and to control cursor movement on a display device. The computer 605 may include a computer display device 650, such as a cathode ray tube (CRT), liquid crystal display (LCD), or other display technology, to display information to a user. In some environments, the display device may be a touch-screen that is also utilized as at least a part of an input device. In some environments, the computer display device 650 may be or may include an auditory device, such as a speaker for providing auditory information.
A communication device 650 may also be coupled to the bus 610. The communication device 650 may include a modem, a transceiver, a wireless modem, or other interface device. The computer 605 may be linked to a network or to other device using via an interface 655, which may include links to the Internet, a local area network, or another environment. The computer 605 may comprise a server that connects to multiple devices. In one embodiment the computer 605 comprises a Java compatible server that is connected to user devices and to external resources.
It should be appreciated that reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Therefore, it is emphasized and should be appreciated that two or more references to “an embodiment” or “one embodiment” or “an alternative embodiment” in various portions of this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined as suitable in one or more embodiments of the invention.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure aiding in the understanding of one or more of the various inventive aspects. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US5057996 *||Jun 29, 1989||Oct 15, 1991||Digital Equipment Corporation||Waitable object creation system and method in an object based computer operating system|
|US5421014 *||Jul 19, 1993||May 30, 1995||I-Tech Corporation||Method for controlling multi-thread operations issued by an initiator-type device to one or more target-type peripheral devices|
|US5613114 *||Apr 15, 1994||Mar 18, 1997||Apple Computer, Inc||System and method for custom context switching|
|US5752031 *||Apr 24, 1995||May 12, 1998||Microsoft Corporation||Queue object for controlling concurrency in a computer system|
|US5768587 *||Jul 28, 1997||Jun 16, 1998||International Business Machine Corp.||Operating a transaction manager with a non-compliant resource manager|
|US5790789 *||Aug 2, 1996||Aug 4, 1998||Suarez; Larry||Method and architecture for the creation, control and deployment of services within a distributed computer environment|
|US5815727 *||Dec 20, 1995||Sep 29, 1998||Nec Corporation||Parallel processor for executing plural thread program in parallel using virtual thread numbers|
|US5872971 *||Nov 20, 1996||Feb 16, 1999||International Business Machines Corporation||Data processing systems and methods providing interoperability between data processing resources|
|US6003061 *||Dec 7, 1995||Dec 14, 1999||Microsoft Corporation||Method and system for scheduling the use of a computer system resource using a resource planner and a resource provider|
|US6026424 *||Feb 23, 1998||Feb 15, 2000||Hewlett-Packard Company||Method and apparatus for switching long duration tasks from synchronous to asynchronous execution and for reporting task results|
|US6026428 *||Aug 13, 1997||Feb 15, 2000||International Business Machines Corporation||Object oriented thread context manager, method and computer program product for object oriented thread context management|
|US6125382 *||Jul 25, 1997||Sep 26, 2000||International Business Machines Corporation||Distributed thread mechanism and method|
|US6233585 *||Mar 12, 1998||May 15, 2001||Crossworlds Software, Inc.||Isolation levels and compensating transactions in an information system|
|US6260057 *||Mar 1, 1995||Jul 10, 2001||Sun Microsystems, Inc.||Apparatus and method for high performance implementation of system calls|
|US6269391 *||Jun 19, 1997||Jul 31, 2001||Novell, Inc.||Multi-processor scheduling kernel|
|US6349312 *||Jul 23, 1999||Feb 19, 2002||Sun Microsystems, Inc.||Method and apparatus for performing pre-allocation of memory to avoid triggering garbage collection operations|
|US6411983 *||Apr 28, 1998||Jun 25, 2002||International Business Machines Corporation||Mechanism for managing the locking and unlocking of objects in Java|
|US6519605 *||Apr 27, 1999||Feb 11, 2003||International Business Machines Corporation||Run-time translation of legacy emulator high level language application programming interface (EHLLAPI) calls to object-based calls|
|US6639687 *||Sep 8, 1998||Oct 28, 2003||International Business Machines Corporation||Progress indicator for multiple actions|
|US6687729 *||Dec 20, 1999||Feb 3, 2004||Unisys Corporation||System and method for providing a pool of reusable threads for performing queued items of work|
|US6691304 *||Feb 22, 2000||Feb 10, 2004||Sun Microsystems, Inc.||Monitor conversion in a multi-threaded computer system|
|US6721777||May 24, 2000||Apr 13, 2004||Sun Microsystems, Inc.||Modular and portable deployment of a resource adapter in an application server|
|US6766349 *||May 19, 2000||Jul 20, 2004||Sun Microsystems, Inc.||Mechanism for obtaining a thread from, and returning a thread to, a thread pool without attaching and detaching|
|US6778990||Jul 27, 2001||Aug 17, 2004||Hewlett-Packard Development Company, L.P.||Dynamic component activation method using a relational database as the repository for registration information|
|US6832238||May 24, 2000||Dec 14, 2004||Sun Microsystems, Inc.||Local transaction management|
|US6886041||Oct 3, 2002||Apr 26, 2005||Bea Systems, Inc.||System for application server messaging with multiple dispatch pools|
|US6976061||May 24, 2000||Dec 13, 2005||Sun Microsystems, Inc.||Resource adapter and XML descriptor for use in a client server environment utilizing an enterprise information system|
|US6990669 *||Mar 21, 2000||Jan 24, 2006||Microsoft Corporation||Real-time scheduler|
|US7007075||Dec 9, 1999||Feb 28, 2006||E-Lysium Transaction Systems Inc.||Flexible computer resource manager|
|US7036110||Mar 25, 2002||Apr 25, 2006||Sun Microsystems, Inc.||Mechanism to manage the lifecycle of a resource adapter|
|US7036124 *||Mar 1, 1999||Apr 25, 2006||Sun Microsystems, Inc.||Computer resource management for competing processes|
|US7080119||Jul 15, 2002||Jul 18, 2006||Bea Systems, Inc.||System and method for transaction processing with delegated commit feature|
|US7089317||Mar 25, 2002||Aug 8, 2006||Sun Microsystems, Inc.||Architecture for plugging messaging systems into an application server|
|US7089584||May 24, 2000||Aug 8, 2006||Sun Microsystems, Inc.||Security architecture for integration of enterprise information system with J2EE platform|
|US7100162 *||Jun 20, 2002||Aug 29, 2006||Hewlett-Packard Development Company, L.P.||System and method for process management|
|US7191441 *||Aug 6, 2002||Mar 13, 2007||International Business Machines Corporation||Method and apparatus for suspending a software virtual machine|
|US7206805 *||Nov 17, 2000||Apr 17, 2007||Oracle International Corporation||Asynchronous transcription object management system|
|US7246353 *||Jun 12, 2002||Jul 17, 2007||Microsoft Corporation||Method and system for managing the execution of threads and the processing of data|
|US7318128 *||Aug 1, 2003||Jan 8, 2008||Sun Microsystems, Inc.||Methods and apparatus for selecting processes for execution|
|US7406542 *||Mar 3, 2003||Jul 29, 2008||Google Inc.||Method and system for assured denotation of application semantics|
|US7444620 *||Feb 11, 2004||Oct 28, 2008||Bea Systems, Inc.||Systems and methods for a common runtime container framework|
|US7493622 *||Aug 12, 2003||Feb 17, 2009||Hewlett-Packard Development Company, L.P.||Use of thread-local storage to propagate application context in Java 2 enterprise edition (J2EE) applications|
|US7496654 *||Jun 29, 2001||Feb 24, 2009||Microsoft Corporation||Multi-threaded system for activating a process using a script engine and publishing data descriptive of the status of the process|
|US20010056457 *||Mar 10, 1997||Dec 27, 2001||Michio Kikuchi||Method and system of processing a plurality of data processing requests, and method and system of executing a program|
|US20020046230 *||Apr 29, 1998||Apr 18, 2002||Daniel J. Dieterich||Method for scheduling thread execution on a limited number of operating system threads|
|US20020107872||Feb 13, 2002||Aug 8, 2002||Irena Hudis||Object manager for common information model|
|US20020144002||Mar 19, 2001||Oct 3, 2002||Vladimir Matena||Method and apparatus for providing application specific strategies to a JAVA platform including start and stop policies|
|US20030023599||Jul 27, 2001||Jan 30, 2003||Garcia Julio Cesar||Dynamic component activation method using a relational database as the repository for registration information|
|US20030074217||Oct 9, 2002||Apr 17, 2003||International Business Machines Corporation||Resource adapter and integrated development environment|
|US20030093402||Oct 15, 2002||May 15, 2003||Mitch Upton||System and method using a connector architecture for application integration|
|US20030145074||Dec 13, 2002||Jul 31, 2003||David Penick||System and method for resource management|
|US20030182426||Sep 30, 2002||Sep 25, 2003||Sun Microsystems, Inc.||Apparatus and method of lazy connection transaction enlistment|
|US20030191803||Apr 9, 2002||Oct 9, 2003||Sun Microsystems, Inc.||Methods, systems and articles of manufacture for providing an extensible serialization framework for an XML based RPC computing environment|
|US20030229888||Feb 20, 2003||Dec 11, 2003||Mark Spotswood||System and method for software application scoping|
|US20030236923||Mar 25, 2002||Dec 25, 2003||Sun Microsystems, Inc.||Architecture for plugging messaging systems into an application server|
|US20040015859||Mar 27, 2003||Jan 22, 2004||Timothy Potter||Systems and methods for modular component deployment|
|US20040015974||Mar 25, 2002||Jan 22, 2004||Sun Microsystems, Inc.||Callback event listener mechanism for resource adapter work executions performed by an application server thread|
|US20040078495||Jul 11, 2003||Apr 22, 2004||Richard Mousseau||System and method for implementing J2EE connector architecture|
|US20040098726||May 29, 2003||May 20, 2004||International Business Machines Corporation||JMS integration into an application server|
|US20040109413||Aug 29, 2001||Jun 10, 2004||Peter Hierholzer||Method for establishment of connections of pre-determined performance for a packet-oriented communication network with a resource manager|
|US20040172639||Nov 12, 2003||Sep 2, 2004||Bea Systems, Inc.||Method for dynamically generating a wrapper|
|US20040215473||Apr 24, 2003||Oct 28, 2004||Sun Microsystems, Inc.||Simultaneous global transaction and local transaction management in an application server|
|US20040244004||Dec 29, 2003||Dec 2, 2004||Guy Pardon||Decentralized, Distributed Internet Data Management|
|US20050060169||Sep 15, 2003||Mar 17, 2005||Sun Microsystems, Inc.||Frameworks for integrating information systems|
|US20050222689 *||Mar 29, 2005||Oct 6, 2005||Tonic Solutions, Inc.||Method of determining performance of an application server environment relating to a transaction|
|US20050240663||Apr 21, 2004||Oct 27, 2005||Andreas Wolber||Message-oriented middleware provider having multiple server instances|
|US20060041662||May 24, 2004||Feb 23, 2006||Georgiev Anton G||Application loading and visualization|
|US20060075115||Feb 14, 2005||Apr 6, 2006||Oracle International Corporation||System and method for serving an application to a heterogeneous collection of client devices|
|1||"Final Office Action Mailed Apr. 4, 2008 for U.S. Appl. No. 10/858,661", (Apr. 4, 2008), Whole Document.|
|2||"OA mailed Dec. 14, 2007 for U.S. Appl. No. 10/863,159".|
|3||"OA Mailed Dec. 28, 2007 for U.S. Appl. No. 10/861,267", (Dec. 28, 2007), Whole Document.|
|4||"OA mailed Sep. 13, 2007 for U.S. Appl. No. 10/858,661".|
|5||Core Contracts and Requirements, Sun Microsystems, EJB 3.0 Expert Group, (May 2, 2006), Whole Document.|
|6||DeMichiel, Linda, et al., "JSR 220: Enterprise JavaBeansTM, Version 3.0, Java Persistence API", Sun Microsystems, EJB 3.0 Expert Group, (May 2, 2006), Whole Document.|
|7||DeMichiel, Linda, et al., JSR 220: Enterprise JavaBeansTM, Version 3.0, EJB.|
|8||Shannon, Bill, "JavÅ 2 Platform, Enterprise Edition Specification, v1.4", Sun Microsystems, (Nov. 24, 2003), Whole Document.|
|9||Shannon, Bill, "JavÅ 2 Platform, Enterprise Edition Specification, v1.4", Sun Microsystems, (Nov. 24, 2003), Whole Document.|
|10||Sun Microsystems, "Sun Trademarks", http://www.sun.com/suntrademarks/, (Printed / Downloaded Jan. 15, 2009), 1-6.|
|11||USPTO, "FOA Mailed Jul. 9, 2008 for U.S. Appl. No. 10/861,267", (Jul. 9, 2008), Whole Document.|
|12||USPTO, "OA Mailed Aug. 11, 2008 for U.S. Appl. No. 10/856,249", (Aug. 11, 2008), Whole Document.|
|13||USPTO, "OA Mailed Sep. 18, 2008 for U.S. Appl. No. 10/858,661", (Sep. 18, 2008), Whole Document.|
|14||USPTO, "OA Mailed Sep. 3, 2008 for U.S. Appl. No. 10/858,657", (Sep. 3, 2008), Whole Document.|
|U.S. Classification||718/108, 718/104, 717/127, 717/116, 718/100|
|International Classification||G06F9/46, G06F9/44|
|Nov 8, 2004||AS||Assignment|
Owner name: SAP AKTIENGESELLSCHAFT,GERMANY
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:TANKOV, NIKOLAI D.;ZEORT, SAMIR A.;MATOV, PETER K.;REEL/FRAME:015961/0412
Effective date: 20041103
|Mar 18, 2013||FPAY||Fee payment|
Year of fee payment: 4
|Aug 26, 2014||AS||Assignment|
Owner name: SAP SE, GERMANY
Free format text: CHANGE OF NAME;ASSIGNOR:SAP AG;REEL/FRAME:033625/0334
Effective date: 20140707