US7886297B2 - Program control process for an information processing apparatus - Google Patents
Program control process for an information processing apparatus Download PDFInfo
- Publication number
- US7886297B2 US7886297B2 US11/283,117 US28311705A US7886297B2 US 7886297 B2 US7886297 B2 US 7886297B2 US 28311705 A US28311705 A US 28311705A US 7886297 B2 US7886297 B2 US 7886297B2
- Authority
- US
- United States
- Prior art keywords
- thread
- execution
- run duration
- processing
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related, expires
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5083—Techniques for rebalancing the load in a distributed system
Definitions
- the present invention relates to a program control method for an information processing apparatus, as well as to the information processing apparatus and a program.
- the present invention was conceived in view of the above problem, and it is therefore an object of the present invention to provide a program control method for an information processing apparatus, the information processing apparatus and a program that can ensure consistency of the processing for each thread.
- a process for a method in an information processing apparatus executing first and second threads executing methods.
- the first thread transmits an execution termination instruction of the second thread to the second thread.
- the second thread in response to the reception of the execution termination instruction, terminates execution of a first method in execution and initiates execution of a second method that is to be executed subsequent to the first method.
- FIG. 1 is a diagram showing an overall configuration of an information processing system 1 of the implementation, according to one implementation of the present invention
- FIG. 2 is a diagram showing an example of a hardware configuration of a server apparatus 20 , according to one implementation of the present invention
- FIG. 3 is a functional block diagram of the server apparatus 20 , according to one implementation of the present invention.
- FIG. 4 is a diagram showing a configuration example of a method processing information storage unit 251 , according to one implementation of the present invention.
- FIG. 5 is a diagram showing a configuration example of a maximum run duration storage unit 252 , according to one implementation of the present invention.
- FIG. 6 is a diagram showing a configuration example of a thread information storage unit 253 , according to one implementation of the present invention.
- FIG. 7 is a diagram showing an example of a protection target class storage unit 254 , according to one implementation of the present invention.
- FIG. 8 is a diagram showing an example of a protection target processing condition storage unit 255 , according to one implementation of the present invention.
- FIG. 9 is a diagram showing an example of a content of a setup file read by a protection target setup information reading unit, according to one implementation of the present invention.
- FIG. 10 is a diagram for describing a flow of method termination processing, according to one implementation of the present invention.
- FIG. 11 is a diagram showing a specific example of the flow of method termination processing, according to one implementation of the present invention.
- FIG. 12 is a diagram showing a flow of time-out monitor processing, according to one implementation of the present invention.
- FIG. 13 is a diagram for describing the flow of method termination processing, according to one implementation of the present invention.
- FIG. 14 is a diagram for describing the flow of method termination processing, according to one implementation of the present invention.
- FIG. 15 is a diagram showing a flow of processing which determines whether a method is defined as a protection target or not, according to one implementation of the present invention.
- FIG. 16 is a diagram showing a flow of processing when a thread termination exception occurs.
- FIG. 1 shows an overall configuration of an information processing system 1 of the implementation.
- the information system 1 is constituted by including client apparatuses 10 and server apparatus 20 .
- the client apparatuses 10 and server apparatus 20 are connected via communication network 30 in a manner enabling mutual communication.
- the communication network 30 is the Internet, LAN (Local Area Network), wireless network, public telephone lines or cellular telephone network, for example.
- the client apparatus (an information processing apparatus) 10 is a personal computer or workstation, for example.
- the client apparatus 10 runs a web browser.
- the server apparatus 20 provides a web service, for example, an online bookstore and the like, and a user accesses the server apparatus 20 by operating the web browser running on the client apparatus 10 .
- the server apparatus 20 is a personal computer or workstation, for example.
- the server apparatus 20 runs an application server with server-side Java (trademark or registered trademark of Sun Microsystems, Inc.) providing dynamic web pages or images in response to a request for a certain URL (Uniform Resource Locator).
- server-side Java trademark or registered trademark of Sun Microsystems, Inc.
- the application server realizes a function which provides a function for connecting to a database and a transaction management function for coupling a plurality of pieces of processing (hereinafter, referred to as a container).
- the container executes a program written in the Java (trademark or registered trademark of Sun Microsystems, Inc.) language. In this way, various functions are realized in the application server.
- a specific container is, for example, a servlet container or EJB (Enterprise JavaBeans: trademark or registered trademark of Sun Microsystems, Inc.) container, for example.
- the application server executes a plurality of threads. If a program realizing the application is written in a functional or a procedural language, the thread is a process which is a unit of processing managed by an operating system.
- a specific example of the thread is, for example, a thread which is a unit of processing in the Java Virtual Machine (trademark or registered trademark of Sun Microsystems, Inc.).
- the thread executes a series of procedures. These procedures are methods or programs of objects generated from classes of Java (trademark or registered trademark of SunMicrosystems, Inc.), for example.
- the methods and programs of objects i.e., the procedures executed in the thread are collectively referred to as methods.
- FIG. 2 shows a hardware configuration of the server apparatus 20 .
- the server apparatus 20 is comprised of a CPU 201 , a memory 202 , a storage apparatus 203 , a recording medium readout apparatus 204 and a communication interface 205 .
- the storage apparatus 203 is a hard disk or flash memory, for example.
- the storage apparatus 203 stores programs and data.
- the recording medium readout apparatus 204 reads out programs and data stored in a recording medium 206 to store into the memory 202 or storage apparatus 203 .
- the recording medium readout apparatus 204 is a CD-ROM drive, a DVD-ROM drive, a magnetic tape drive, a memory card reader and the like, for example.
- the recording medium 206 is a CD-ROM, a DVD-ROM, a magnetic tape, a hard disk, a flash memory and the like, for example.
- the CPU 201 is responsible for overall control of the server apparatus 20 and realizes various functions by reading out to the memory 202 and executing programs stored in the storage apparatus 203 .
- the communication interface 205 is an interface for connecting to the communication network 30 .
- the communication interface 205 is a modem connected to a public telephone line or an Ethernet (registered trademark) adapter, for example.
- the server apparatus 20 may be comprised of a plurality of CPUs 201 or may be realized by a cluster system connecting a plurality of computers.
- FIG. 3 shows functions realized in the server apparatus 20 .
- the server apparatus 20 realizes a user program execution unit 211 , a method termination processing unit 212 , a monitor unit 213 , a command acceptance unit 214 , a protection target setup information reading unit 215 , a log writing unit 216 , a maximum run duration reading unit 217 , a method processing information storage unit 251 , a maximum run duration storage unit 252 , a thread information storage unit 253 , a protection target class storage unit 254 , a protection target processing condition storage unit 255 and a termination target queue 256 .
- the method processing information storage unit 251 stores information about processing of method executed by a thread for each thread executed in the Java (trademark or registered trademark of Sun Microsystems, Inc.) virtual machine.
- FIG. 4 shows a configuration of the method processing information storage unit 251 .
- the method processing information storage unit 251 stores a list of information about methods called in a thread (hereinafter, referred to as method information), a list of object IDs identifying an object to which an exclusive lock is obtained (hereinafter, referred to as lock information) and a list of database names identifying a database for which transaction processing is initiated, correspondingly to information for identifying each thread (hereinafter, referred to as a thread ID).
- the virtual machine manages objects to which exclusive locks are obtained and the lock information is a list of IDs of the objects which are the targets of the management.
- the list of the method information is a call stack managed by the virtual machine.
- the transaction information is managed by the container. When a transaction for a database is initiated by the container, the database name is registered into the transaction information, and when the transaction is committed or rolled back, the database name is deleted from the transaction information.
- each functional unit of the server apparatus 20 can obtain the method information about a series of executed methods from the call stack, determine from the lock information whether the exclusive lock is currently obtained or not and determine from the transaction information whether the transaction processing is initiated or not.
- the maximum run duration storage unit 252 stores information for identifying a method executed in a thread and a maximum run duration of the method in a corresponding manner.
- FIG. 5 shows a configuration of the maximum run duration storage unit 252 .
- the maximum run duration storage unit 252 sets conditions for class names or method names and maximum values of runtime when the methods in accordance with the conditions are executed on the virtual machine.
- a value is set in units of time, for example.
- the maximum run duration reading unit 217 reads the condition and the maximum run duration of the method from a setup file to set into the maximum run duration storage unit 252 .
- the thread information storage unit 253 (corresponding to “execution start time storage unit” of the present invention) stores a state of a thread and the method information of the method executed in the thread.
- FIG. 6 shows a configuration of the thread information storage unit 253 .
- the thread information storage unit 253 stores the states of the threads correspondingly to the thread IDs and stores a method name, a time when the execution of the method is initiated, and the maximum run duration set to the method for each method executed in the thread.
- the state of the thread includes “in execution” indicating that the thread is normally executed, “time-out” indicating that the method executed in the thread is timed out, “in termination execution” indicating that termination processing of the method is being executed which is described later, “termination completed” indicating that the termination processing of the method is completed, and the like.
- the user program execution unit 211 provides a container function in the application server. Also, by generating an object from a class of a program written by a user (hereinafter referred to as a user program) or by calling a method of the generated object, the user program execution unit 211 executes the user program. Further, the user program execution unit 211 can be provided as a Java class (trademark or registered trademark of Sun Microsystems, Inc.) which is a base class succeeded by user-defined classes.
- the monitorunit 213 For each thread executed in the virtual machine, the monitorunit 213 performs time-out monitor processing which detects the time-out of the method in execution by checking whether the runtime of the method executed in the thread exceeds the maximum run duration stored in the maximum run duration storage unit 252 .
- the monitor unit 213 performs the time-out monitor processing in an independent thread to detect the time-out of the method executed in another thread. Details of the time-out monitor processing are described later.
- the command acceptance unit 214 accepts input of a command (hereinafter, referred to as a method termination command) instructing to perform processing for terminating execution of a method executed in a specified thread (hereinafter, referred to as method termination processing) from a user.
- a command hereinafter, referred to as a method termination command
- method termination processing a thread ID specified by the user is set.
- the command acceptance unit 214 may accept the method termination command from the input apparatus such as a keyboard or mouse or may receive a request including the method termination command from the client apparatus 10 .
- the termination target queue 256 is a queue for registering a thread ID identifying a thread which is a target of the method termination processing with the method termination processing unit 212 described later.
- the monitor unit 213 performs registration of a thread ID of the thread executing the detected method into the termination target queue 256 .
- the command acceptance unit 214 registers a thread ID set in the method termination command into the termination target queue 256 .
- the method termination processing unit 212 performs the method termination processing targeted for a method executed in a thread indicated by a thread ID registered in the termination target queue 256 . Details of the method termination processing are described later.
- the protection target class storage unit 254 and the protection target processing condition storage unit 255 (corresponding to a “protection method storage unit” of the present invention) stores information identifying a method which is not the target of the method termination processing of the method termination processing unit 212 (which should not be terminated).
- FIG. 7 shows an example of the protection target class storage unit 254 .
- the protection target class storage unit 254 sets conditions for package names and class names of the Java (trademark or registered trademark of Sun Microsystems, Inc.) classes.
- FIG. 8 is an example of the protection target processing condition storage unit 255 .
- the protection target processing condition storage unit 255 sets conditions for processing performed in a method.
- the target method processing of the conditions specified in the protection target processing condition storage unit 255 is the processing which can be obtained from the call stack, the lock information and the transaction information stored in the method processing information storage unit 251 .
- the conditions are, for example, that a certain method is called, that a lock is obtained for a certain object, and that transaction processing is initiated for a certain database.
- the method termination processing is not performed by the method termination processing unit 212 , as described later.
- the protection target setup information reading unit 215 reads out conditions of the package names or class names and conditions for the processing content of the method from a predetermined setup file to register the conditions into the protection target class 254 and protection target processing condition storage units 255 .
- FIG. 9 is an example of the content of the setup file read by the protection target setup information reading unit 215 .
- Each line of the setup file describes the condition of the package name or class name, the condition for the processing of the method and the like. In the setup file, a line started with “#” is a comment.
- the log writing unit 216 writes data stored in the call stack, the lock information, the transaction information and the like stored in the method processing information storage unit 251 into a log file when the monitor unit 213 detects time-out of a method executed in a thread. Also, after the method termination processing is performed by the method termination processing unit 212 , the log writing unit 216 writes data stored in the call stack into a log file.
- the log writing unit 216 may write the data into a file on a file system managed by an operating system running on the server apparatus 20 or may write the data directly into a recording medium such as a hard disk, magnetic tape, magnet-optical disk, flash memory and the like.
- Each functional unit of the user program execution unit 211 , the method termination processing unit 212 , the monitor unit 213 , the command acceptance unit 214 , the protection target setup information reading unit 215 , the log writing unit 216 and the maximum run duration reading unit 217 is realized by the CPU 201 of the server apparatus 20 executing the program, the method of the object or thread stored in the memory 202 , or is realized by hardware.
- the method processing information storage unit 251 , the maximum run duration storage unit 252 , the thread information storage unit 253 , the protection target class storage unit 254 , the protection target processing condition storage unit 255 and the termination target queue 256 are realized on storage areas provided by the memory 202 or storage apparatus 203 of the server apparatus 20 .
- Each functional unit 211 to 217 , each storage unit 251 to 255 and the termination target queue 256 can be realized by any one of hardware, a program, an object, a thread and a process.
- FIG. 10 is a diagram for describing a flow of the method termination processing.
- a first thread 310 executes a series of methods realizing the method termination processing unit 212 and a second thread 320 executes a series of methods realizing the user program execution unit 211 .
- the thread ID of the second thread 320 is registered into the termination target queue 256 , the following method termination processing is performed.
- the user program execution unit 211 reads the thread ID from the termination target queue 256 (S 301 ) and sends a thread stop instruction to the second thread 320 identified by the read thread ID (S 302 ).
- the second thread 320 In response to the reception of the thread stop instruction, the second thread 320 terminates execution of the method being executed (S 303 ) and throws an exception indicating that the thread is terminated (hereinafter, referred to as a thread termination exception) (S 304 ).
- the user program execution unit 211 catches the thread termination exception (S 305 ) and executes a method which should be executed following to the terminated method (S 306 ). In stead of the caught thread termination exception, the user program execution unit 211 throws an exception indicating a general error (hereinafter, referred to as a general exception) (S 307 ).
- the execution is terminated for each method rather than each thread and a method subsequent to the terminated method is executed. Therefore, during or before the execution of the method, a lock is obtained for a shared resource among threads or transaction processing is initiated for a database, and if the method subsequent to the terminated method will release the lock and will commit or roll back the transaction processing, only the execution of the method being executed is terminated and the subsequent method is continuously executed. In this way, consistency of the processing can be ensured by avoiding a situation where the lock remains obtained and where the transaction processing remains initiated. Therefore, the overall credibility of the information system 1 can be improved.
- FIG. 11 is a diagram showing a specific example of applying the method termination processing to the request processing of the application server.
- processing from (S 336 ) to (S 340 ) corresponds to the method termination processing described above.
- a servlet 321 is an object receiving a HTTP request transmitted from the client apparatus 10 in the application server.
- a container object 322 is an object realizing the user program execution unit 211 in the second thread 320 .
- a processing object 323 is an object generated from a class of the user program in the second thread 320 .
- the processing object 323 is implemented as the EJB (trademark or registered trademark of Sun Microsystems, Inc.) object.
- a termination processing object 311 is an object realizing the method termination processing unit 212 in the first thread 311 .
- the servlet 321 has a request processing method for performing the processing corresponding to the HTTP request and the second thread initiates a series of methods by executing the request processing method of the servlet 321 .
- the processing object 311 does not have a processing method 2 and the container object 322 has a processing method 1 calling the processing method 2 of the processing object 323 , a lock acquisition method performing the processing for obtaining an exclusive lock against other threads, and a lock release method performing the processing for releasing the exclusive lock.
- the second thread 320 executes the request processing method of the servlet 321 in response to the HTTP request transmitted from the client apparatus 10 (S 331 ).
- the servlet 321 calls the processing method 1 of the container object 322 (S 332 ).
- the container object 322 calls the lock acquisition method from the processing method 1 (S 333 ) and performs the processing for obtaining an exclusive lock in the lock acquisition method.
- the container object 322 calls the processing method 2 of the processing object 323 (S 334 ), and the processing object 323 executes the processing method 2 (S 335 ).
- the termination processing object 311 reads the thread ID of the second thread from the termination target queue 256 in the first thread 310 and transmits a thread stop instruction (e.g., “stop” in Java (trademark or registered trademark of Sun Microsystems, Inc.)) to the second thread 320 (S 336 ).
- a thread stop instruction e.g., “stop” in Java (trademark or registered trademark of Sun Microsystems, Inc.)
- the second thread 320 throws a thread termination exception (e.g., ThreadDeath in Java (trademark or registered trademark of Sun Microsystems, Inc.)) and the processing object 323 terminates the execution of the processing method 2 (S 337 ).
- a thread termination exception e.g., ThreadDeath in Java (trademark or registered trademark of Sun Microsystems, Inc.)
- the processing object 323 terminates the execution of the processing method 2 (S 337 ).
- the thread termination exception is passed to the container object 322 (S 338 )
- the container object 322 catches the thread termination exception and call the lock release method to be executed subsequent to execution of the processing method 2 of the processing object 323 (S 339 ) to release the exclusive lock.
- the container object 322 throws a general exception (e.g., in Java (trademark or registered trademark of Sun Microsystems, Inc.), RuntimeException and the like, for example) in stead of the caught thread termination exception.
- the general exception is passed to the main object (S
- the servlet 321 can returns the response by the exceptional processing, indicating that an error occurs in the execution of the processing method 2 .
- the second thread 320 since the second thread is continuously executed, the second thread 320 does not have to be activated again and a response can be quickly returned to the subsequent request from the client apparatus 10 . Therefore, the responsiveness of the information processing system can be improved.
- time-out monitor processing is described, which is a trigger for performing the method termination processing described above.
- FIG. 12 is a diagram for describing a flow of the time-out monitor processing.
- the monitor unit 213 performs the processing shown in FIG. 12 by considering each of all the threads stored in the thread information storage unit 253 as an inspection target thread.
- the monitor unit 213 refers to the thread information storage unit 253 to determine whether a state of a thread corresponding to the thread ID of the inspection target thread (hereinafter, referred to as an inspection target ID) is “time-out” or not (S 401 ). If the state of the thread is “time-out” (S 401 : YES), the monitor unit 213 exits the processing.
- the monitor unit 213 If the state of the thread is not “time-out” (S 401 : NO), the monitor unit 213 reads out a method name of the method for which the inspection target thread is being executed from the call stack of the method processing information storage unit 251 corresponding to the inspection target ID and reads out a start time and a maximum run duration corresponding to the read thread name and the inspection target ID from the thread information storage unit 253 . If current time is exceeded by a time obtained by adding the maximum run duration to the start time of the method (S 402 : YES), i.e., if the runtime from the start time of the method to the current time (a run duration calculation unit) exceeds the maximum time and is not timed out, the monitor unit 213 exits the processing.
- the monitor unit 213 sets the state of the thread of the thread information storage unit 253 corresponding to the inspection target ID to “time-out” (S 403 ) and registers the inspection target ID into the termination target queue 256 (S 404 ).
- FIG. 13 to FIG. 15 are diagrams for describing details of the processing corresponding to (S 301 ) to (S 302 ) of FIG. 10 out of the method termination processing described above which is performed when the runtime of the method is timed out.
- the method termination processing unit 212 reads out a thread ID registered in the termination target queue 256 (S 421 ) and determines for a thread corresponding to the read thread ID (hereinafter, referred to as a termination target ID) whether the state is “time-out” or not (S 422 ). If the state of the thread is not “time-out” (S 422 : NO), the method termination processing unit 212 terminates the processing.
- the method termination processing unit 212 sets a state of a thread of the thread information storage unit 253 corresponding to the termination target ID to “in termination processing” (S 423 ), and the log writing unit 216 reads out data relating to the method (hereinafter, referred to as a termination target method) for which the thread identified by the termination target ID is being executed from the call stack of the method processing information storage unit 251 corresponding to the termination target ID and writes the data into a log-file (S 424 ).
- the method termination processing unit 212 terminates the termination target method with the processing shown in FIG. 14 .
- the method termination processing unit 212 transmits a suspend instruction (e.g., “suspend” in Java (trademark or registered trademark of Sun Microsystems, Inc.)) to the termination target thread to suspend the termination target thread (S 441 ).
- a suspend instruction e.g., “suspend” in Java (trademark or registered trademark of Sun Microsystems, Inc.)
- the method termination processing unit 212 obtains the method name of the method for which the termination target thread is being executed and determines with the processing shown in FIG. 15 whether this method is set as the protection target (S 442 ) (a protection determination unit).
- the method termination processing unit 212 determines whether or not the registration into the protection target class storage unit 254 has been performed for the method name of the termination target method or the class name of the class to which the termination target method belongs (S 461 ). If the method name of class name is not registered (S 461 : NO), the method termination processing unit 212 reads out data relating to the termination target method from the call stack corresponding to the termination target ID of the method processing information storage unit 251 (S 462 ).
- the method termination processing unit 212 determines whether or not the read data relating to the termination target method fulfill each condition stored in the protection target processing condition storage unit 255 (S 463 ), and if the condition is not fulfilled (S 463 : NO), it is determined that the termination target method is not defined as a protection target (S 464 ).
- the method termination processing unit 212 determines that the termination target method is defined as a protection target (S 465 ).
- the method termination processing unit 212 transmits a suspend release instruction (e.g., resume in Java (trademark or registered trademark of Sun Microsystems, Inc.)) to the termination target thread to release the suspension of the termination target thread (S 444 ).
- the method termination processing unit 212 restores the state of the thread of the thread information storage unit 253 corresponding to the termination target ID to “time-out” (S 445 ) and terminates the processing.
- the method termination processing unit 212 transmits a thread termination instruction to the termination target thread (S 446 ). From the call stack of the method processing information storage unit 251 corresponding to the termination target ID, the log writing unit 216 reads out information about the termination target thread and writes the information into a log file (S 447 ). The method termination processing unit 212 transmits a suspend release instruction to the termination target thread to release the suspension of the termination target thread (S 448 ) and sets the state of the thread of the thread information storage unit 253 corresponding to the termination target ID to “termination completed” (S 449 ).
- FIG. 16 is a diagram for describing details of the processing corresponding to (S 303 ) to (S 308 ) of FIG. 10 out of the method termination processing described above which is performed when the runtime of the method is timed out.
- the thread termination exception is passed to an object of the user program (hereinafter, referred to as a user object) and the user object terminates the execution of the method (S 482 ). Then, the thread termination exception is transmitted to the user program execution unit 211 , and the user program execution unit 211 catches the thread termination exception (S 483 ).
- the user program execution unit 211 performs post-processing (S 484 ) such as the release of the lock and the rollback of the transaction for the database, for example, and throws an exception indicating a general error (S 485 ). Also, for the state of the thread of the thread information storage unit 253 corresponding to the thread ID of the thread for which the user program execution unit 211 is executed, the user program execution unit 211 sets the state of the thread to “in execution” (S 486 ).
- the thread termination exception occurred in the thread is caught by the user program execution unit 211 , and after the post-processing such as the release of the lock and the rollback of the transaction for the database, the exception indicating a general error is thrown. Therefore, if the method of the user object is stopped, since the post-processing is performed by the user program execution unit 211 , a deadlock between threads or inconsistency of data can be prevented. Thus, the credibility of the information processing system 1 can be enhanced. Also, since the processing of the thread itself is continued, the thread does not have to be activated again. Therefore, the processing load due to the activation of the thread is reduced and the overall processing efficiency of the information processing system 1 can be enhanced.
- the server apparatus 20 of the implementation if processing of a method is not terminated within a predetermined time, the execution of that method is terminated. Therefore, if a method exists which performs the processing wasting the CPU resource of the system and increasing the overall load of the information processing system 1 due to, for example, an endless loop, the method can be terminated after the predetermined time elapses. In this way, by limiting the time period when the processing load of the server apparatus 20 is increased due to an endless loop to the predetermined time, a high-load state can be prevented from being continued. Therefore, the overall processing efficiency of the information processing system 1 can be enhanced.
- the server apparatus 20 of the implementation by setting a method to be the protection target in accordance with the class name, the method name and the processing performed in the method, the execution can be allowed not to be terminated for the method set as the protection target. Therefore, more flexible operation is enabled. For example, if a user program is developed which performs exclusion control without utilizing the container function, prevention can be provided against a situation where the lock remains obtained or against a deadlock by setting a method executed between the acquisition and release of the exclusive lock as the protection target. In this way, the overall credibility of the information processing system 1 can be enhanced.
- the contents of the call stack, log information and transaction information is written into log files twice, i.e., when runtime of a method is timed out and when a method is terminated. Therefore, by comparing these log files, a developer of a user program can closely compare a state of a thread when the runtime is timed out to a state of a thread after the method is terminated. In this way, the developer can easily comprehend recursive calling of a method, an abnormal variable value, an access to an unauthorized address and the like, for example. Therefore, the developer can easily examine the cause of a bug. Also, for example, by application to a test at the time of the development of the user program, an effective and efficient test can be performed.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
Claims (10)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004-337560 | 2004-11-22 | ||
| JP2004337560A JP2006146678A (en) | 2004-11-22 | 2004-11-22 | Program control method, information processing apparatus, and program in information processing apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| US20060136920A1 US20060136920A1 (en) | 2006-06-22 |
| US7886297B2 true US7886297B2 (en) | 2011-02-08 |
Family
ID=36597709
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US11/283,117 Expired - Fee Related US7886297B2 (en) | 2004-11-22 | 2005-11-17 | Program control process for an information processing apparatus |
Country Status (2)
| Country | Link |
|---|---|
| US (1) | US7886297B2 (en) |
| JP (1) | JP2006146678A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120137299A1 (en) * | 2010-11-30 | 2012-05-31 | Moyer Jeffrey E | Mechanism for yielding input/output scheduler to increase overall system throughput |
| US8935395B2 (en) * | 2009-09-10 | 2015-01-13 | AppDynamics Inc. | Correlation of distributed business transactions |
| US8938533B1 (en) * | 2009-09-10 | 2015-01-20 | AppDynamics Inc. | Automatic capture of diagnostic data based on transaction behavior learning |
| US9311598B1 (en) | 2012-02-02 | 2016-04-12 | AppDynamics, Inc. | Automatic capture of detailed analysis information for web application outliers with very low overhead |
| US9400701B2 (en) | 2014-07-07 | 2016-07-26 | International Business Machines Corporation | Technology for stall detection |
| US12155543B2 (en) | 2012-02-02 | 2024-11-26 | Cisco Technology, Inc. | Automatic capture of detailed analysis information based on remote server analysis |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100714710B1 (en) * | 2006-02-22 | 2007-05-04 | 삼성전자주식회사 | Apparatus and method for forcibly terminating a thread blocked by an I / O operation |
| JP4882537B2 (en) * | 2006-06-20 | 2012-02-22 | 株式会社日立製作所 | Request control method by timer cooperation |
| US8260864B2 (en) * | 2008-02-13 | 2012-09-04 | Microsoft Corporation | Push mechanism for efficiently sending aggregated data items to client |
| US7882173B2 (en) * | 2008-06-30 | 2011-02-01 | International Business Machines Corporation | Interactive remote command execution over a stateless client/server network protocol |
| US8443375B2 (en) * | 2009-12-14 | 2013-05-14 | Verisign, Inc. | Lockless queues |
| CN102736945B (en) * | 2011-03-31 | 2016-05-18 | 国际商业机器公司 | A kind of method and system of the Multi-instance running application |
| JP6149671B2 (en) * | 2013-10-07 | 2017-06-21 | 住友電気工業株式会社 | Virtual machine execution method, computer program, and information processing apparatus |
| EP3220273A1 (en) * | 2016-03-17 | 2017-09-20 | Tata Consultancy Services Limited | Methods and systems for anomaly detection in a multithreaded application |
Citations (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS63280347A (en) | 1987-05-12 | 1988-11-17 | Nec Corp | Memory dump gathering system |
| JPH01140237A (en) | 1987-11-26 | 1989-06-01 | Nec Corp | Task operating system |
| US5065310A (en) * | 1989-05-10 | 1991-11-12 | International Business Machines Corporation | Reducing cache-reload transient at a context swap |
| JPH03260838A (en) | 1990-03-12 | 1991-11-20 | Nec Corp | Limiting system for cpu using time |
| JPH04175938A (en) | 1990-11-09 | 1992-06-23 | Hitachi Ltd | Dump acquisition quantity reduction system |
| JPH0659914A (en) | 1992-08-10 | 1994-03-04 | Casio Comput Co Ltd | Program processor |
| JPH113231A (en) | 1997-06-10 | 1999-01-06 | Mitsubishi Electric Corp | Software processing method |
| JP2001125800A (en) | 1999-09-10 | 2001-05-11 | Sun Microsyst Inc | Terminate the associated thread group by changing the program counter of the selected stack frame |
| JP2002530737A (en) | 1998-11-16 | 2002-09-17 | テレフオンアクチーボラゲツト エル エム エリクソン(パブル) | Simultaneous processing of event-based systems |
| JP2002297402A (en) | 2001-01-25 | 2002-10-11 | Matsushita Electric Ind Co Ltd | Digital device, task management method and program therefor |
| WO2003062988A2 (en) | 2002-01-24 | 2003-07-31 | Koninklijke Philips Electronics N.V. | Executing processes in a multiprocessing environment |
| JP2004005612A (en) | 2002-04-26 | 2004-01-08 | Ricoh Co Ltd | Apparatus and method for acquiring resource information |
| US20040154020A1 (en) * | 2002-12-31 | 2004-08-05 | Rong Chen | Component oriented and system kernel based process pool/thread pool managing method |
| US6865739B1 (en) * | 2000-06-06 | 2005-03-08 | Polysecure Systems, Inc. | Method for implementing polyinstantiated access control in computer operating systems |
| US7185339B2 (en) * | 2001-08-03 | 2007-02-27 | Oracle International Corporation | Victim selection for deadlock detection |
| US7216346B2 (en) * | 2002-12-31 | 2007-05-08 | International Business Machines Corporation | Method and apparatus for managing thread execution in a multithread application |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62226236A (en) * | 1986-03-27 | 1987-10-05 | Nec Corp | Intermission and restart processing system for state waiting resources in transaction processing system |
| FI91456C (en) * | 1992-07-29 | 1994-06-27 | Nokia Telecommunications Oy | A method for managing the resources allocated on a computer |
| JPH11327937A (en) * | 1998-05-14 | 1999-11-30 | Nec Corp | Resource exclusive control system |
| JP4062995B2 (en) * | 2002-07-08 | 2008-03-19 | 富士ゼロックス株式会社 | Image processing device |
-
2004
- 2004-11-22 JP JP2004337560A patent/JP2006146678A/en active Pending
-
2005
- 2005-11-17 US US11/283,117 patent/US7886297B2/en not_active Expired - Fee Related
Patent Citations (17)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS63280347A (en) | 1987-05-12 | 1988-11-17 | Nec Corp | Memory dump gathering system |
| JPH01140237A (en) | 1987-11-26 | 1989-06-01 | Nec Corp | Task operating system |
| US5065310A (en) * | 1989-05-10 | 1991-11-12 | International Business Machines Corporation | Reducing cache-reload transient at a context swap |
| JPH03260838A (en) | 1990-03-12 | 1991-11-20 | Nec Corp | Limiting system for cpu using time |
| JPH04175938A (en) | 1990-11-09 | 1992-06-23 | Hitachi Ltd | Dump acquisition quantity reduction system |
| JPH0659914A (en) | 1992-08-10 | 1994-03-04 | Casio Comput Co Ltd | Program processor |
| JPH113231A (en) | 1997-06-10 | 1999-01-06 | Mitsubishi Electric Corp | Software processing method |
| JP2002530737A (en) | 1998-11-16 | 2002-09-17 | テレフオンアクチーボラゲツト エル エム エリクソン(パブル) | Simultaneous processing of event-based systems |
| JP2001125800A (en) | 1999-09-10 | 2001-05-11 | Sun Microsyst Inc | Terminate the associated thread group by changing the program counter of the selected stack frame |
| US6865739B1 (en) * | 2000-06-06 | 2005-03-08 | Polysecure Systems, Inc. | Method for implementing polyinstantiated access control in computer operating systems |
| JP2002297402A (en) | 2001-01-25 | 2002-10-11 | Matsushita Electric Ind Co Ltd | Digital device, task management method and program therefor |
| US7185339B2 (en) * | 2001-08-03 | 2007-02-27 | Oracle International Corporation | Victim selection for deadlock detection |
| WO2003062988A2 (en) | 2002-01-24 | 2003-07-31 | Koninklijke Philips Electronics N.V. | Executing processes in a multiprocessing environment |
| US20050125789A1 (en) | 2002-01-24 | 2005-06-09 | Koninklijke Philips Electronics N.V. Groenewoudseweg 1 | Executing processes in a multiprocessing environment |
| JP2004005612A (en) | 2002-04-26 | 2004-01-08 | Ricoh Co Ltd | Apparatus and method for acquiring resource information |
| US20040154020A1 (en) * | 2002-12-31 | 2004-08-05 | Rong Chen | Component oriented and system kernel based process pool/thread pool managing method |
| US7216346B2 (en) * | 2002-12-31 | 2007-05-08 | International Business Machines Corporation | Method and apparatus for managing thread execution in a multithread application |
Non-Patent Citations (4)
| Title |
|---|
| Japan Patent Office (JPO) office action dated Mar. 3, 2009 for JPO patent application JP2008-144669. |
| Japan Patent Office (JPO) office action dated Sep. 26, 2008 for JPO patent application JP2008-144669. |
| Japan Patent Office (JPO) office action for patent application JP2004-337560 (Jul. 8, 2008). |
| Japan Patent Office (JPO) office action for patent application JP2004-337560 (Mar. 27, 2008). |
Cited By (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9037707B2 (en) * | 2009-09-10 | 2015-05-19 | AppDynamics, Inc. | Propagating a diagnostic session for business transactions across multiple servers |
| US9077610B2 (en) * | 2009-09-10 | 2015-07-07 | AppDynamics, Inc. | Performing call stack sampling |
| US8938533B1 (en) * | 2009-09-10 | 2015-01-20 | AppDynamics Inc. | Automatic capture of diagnostic data based on transaction behavior learning |
| US9369356B2 (en) | 2009-09-10 | 2016-06-14 | AppDynamics, Inc. | Conducting a diagnostic session for monitored business transactions |
| US9015315B2 (en) * | 2009-09-10 | 2015-04-21 | AppDynamics, Inc. | Identification and monitoring of distributed business transactions |
| US9015278B2 (en) * | 2009-09-10 | 2015-04-21 | AppDynamics, Inc. | Transaction correlation using three way handshake |
| US8935395B2 (en) * | 2009-09-10 | 2015-01-13 | AppDynamics Inc. | Correlation of distributed business transactions |
| US9015316B2 (en) * | 2009-09-10 | 2015-04-21 | AppDynamics, Inc. | Correlation of asynchronous business transactions |
| US9167028B1 (en) * | 2009-09-10 | 2015-10-20 | AppDynamics, Inc. | Monitoring distributed web application transactions |
| US9015317B2 (en) * | 2009-09-10 | 2015-04-21 | AppDynamics, Inc. | Conducting a diagnostic session for monitored business transactions |
| US20120137299A1 (en) * | 2010-11-30 | 2012-05-31 | Moyer Jeffrey E | Mechanism for yielding input/output scheduler to increase overall system throughput |
| US8949835B2 (en) * | 2010-11-30 | 2015-02-03 | Red Hat, Inc. | Yielding input/output scheduler to increase overall system throughput |
| US9311598B1 (en) | 2012-02-02 | 2016-04-12 | AppDynamics, Inc. | Automatic capture of detailed analysis information for web application outliers with very low overhead |
| US12155543B2 (en) | 2012-02-02 | 2024-11-26 | Cisco Technology, Inc. | Automatic capture of detailed analysis information based on remote server analysis |
| US9400701B2 (en) | 2014-07-07 | 2016-07-26 | International Business Machines Corporation | Technology for stall detection |
| US9558058B2 (en) | 2014-07-07 | 2017-01-31 | International Business Machines Corporation | Technology for stall detection |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2006146678A (en) | 2006-06-08 |
| US20060136920A1 (en) | 2006-06-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7886297B2 (en) | Program control process for an information processing apparatus | |
| US7424720B2 (en) | Process and implementation for dynamically determining probe enablement using out of process correlating token | |
| JP5128944B2 (en) | Method and system for minimizing data loss in computer applications | |
| US8332845B2 (en) | Compile timing based on execution frequency of a procedure | |
| US8140908B2 (en) | System and method of client side analysis for identifying failing RAM after a user mode or kernel mode exception | |
| US8601469B2 (en) | Method and system for customizing allocation statistics | |
| US7386859B2 (en) | Method and system for effective management of client and server processes | |
| EP2386951B1 (en) | Failsafe mechanism for dynamic instrumentation of software using callbacks | |
| US7302613B2 (en) | System and method for capturing kernel-resident information | |
| JP5782543B2 (en) | Debugger data processing system, debugging method and computer program | |
| US9311214B2 (en) | System and methods for tracing individual transactions across a mainframe computing environment | |
| US20110214017A1 (en) | Failed process reporting | |
| US9436534B2 (en) | Method and system for preemptive detection of occurrence of faulty conditions based on resource usage | |
| EP2454665A1 (en) | Managing availability of a component having a closed address space | |
| US8904359B2 (en) | On-demand monitoring of memory usage | |
| CN113220535A (en) | Method, device and equipment for processing program exception and storage medium | |
| US20070143766A1 (en) | Deadlock detection in a computing environment | |
| EP2100225B1 (en) | Method, system and computer program for identifying interpreted programs through class loading sequences | |
| CN118916232A (en) | Exception handling system, method, electronic device, storage medium, and program product | |
| US20070033640A1 (en) | Generic context service in a distributed object environment | |
| US11288272B2 (en) | Query cancelation using a signal handler throwing an exception | |
| JP4327226B2 (en) | Method processing method, information processing apparatus, and program in information processing apparatus | |
| Chung et al. | Fault-injection experiments for distributed objects | |
| CN119603299B (en) | Method, device, equipment and medium for cross-cloud resource operation based on task orchestration | |
| CN116339866B (en) | A method, device and storage medium for obtaining thread stack in a safe point with low performance loss |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| AS | Assignment |
Owner name: HITACHI, LTD., JAPAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:NAGANO, KYOHEI;KONDO, MUTSUKO;REEL/FRAME:017623/0031 Effective date: 20060202 |
|
| AS | Assignment |
Owner name: HITACHI, LTD., JAPAN Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE SECOND INVENTOR'S DOC. DATE. PREVIOUSLY RECORDED ON REEL 017623 FRAME 0031. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT;ASSIGNORS:NAGANO, KYOHEI;KONDO, MUTSUKO;SIGNING DATES FROM 20060202 TO 20060204;REEL/FRAME:025195/0660 |
|
| FEPP | Fee payment procedure |
Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
| STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
| FPAY | Fee payment |
Year of fee payment: 4 |
|
| MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552) Year of fee payment: 8 |
|
| FEPP | Fee payment procedure |
Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
| LAPS | Lapse for failure to pay maintenance fees |
Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
| STCH | Information on status: patent discontinuation |
Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362 |
|
| FP | Lapsed due to failure to pay maintenance fee |
Effective date: 20230208 |