Method, system and computer program product for testing computer programs
    1.
    发明授权
    Method, system and computer program product for testing computer programs 失效
    方法,系统和计算机程序产品用于测试计算机程序

    公开(公告)号:US07546585B2

    公开(公告)日:2009-06-09

    申请号:US11041630

    申请日:2005-01-24

    申请人: Donald F. Ault

    发明人: Donald F. Ault

    IPC分类号: G06F9/44 G06F11/00

    CPC分类号: G06F11/3688

    摘要: A method for testing computer programs including defining one or more selected force stop points for a target computer program. For each of the selected force stop points the target computer program is executed in a force stop mode and executed again in a non-force stop mode. Input to execution in the force stop mode includes the selected force stop point. The target program is terminated as a result of execution in the force stop mode when the selected force stop point has been reached. Executing in the force stop mode results in a residual environment. The target computer program is executed in a non-force stop mode in the residual environment. Output from executing in a non-force stop mode includes test result data. For each of the selected force stop points it is determined if the test result data is consistent with expected test results.

    摘要翻译: 一种用于测试计算机程序的方法,包括为目标计算机程序定义一个或多个所选的力停止点。 对于每个所选择的停止点,目标计算机程序以强制停止模式执行并且以非强制停止模式再次执行。 在强制停止模式下执行的输入包括所选的力停止点。 当达到所选择的力停止点时,作为执行强制停止模式的结果,终止目标程序。 在强制停止模式下执行会导致残留环境。 目标计算机程序在残留环境中以非强制停止模式执行。 在非强制停止模式下执行的输出包括测试结果数据。 对于每个选定的力停止点,确定测试结果数据是否与预期的测试结果一致。

    Method and apparatus for providing for notification of task termination
    3.
    发明授权
    Method and apparatus for providing for notification of task termination 失效
    提供任务终止通知的方法和装置

    公开(公告)号:US06907605B1

    公开(公告)日:2005-06-14

    申请号:US09080504

    申请日:1998-05-18

    摘要: A method and apparatus for ensuring that a process interacting with a failing process is notified of the failure of that process. Each process has a unique process identifier (PID) associated with it. Each process optionally has an affinity list containing one or more entries, each of which contains the identifier of a process that is to be notified when the process fails. A process updates the affinity list of a target process (either itself or another process) by calling an affinity service of the operating system (OS) kernel, specifying the type of operation (add or delete), the identifier of the target process, the identifier of the process that is to notified, and the type of event that is to be generated for the process that is to be notified. When a process fails, a process termination service of the OS kernel examines the affinity list of the failing process and, for each entry in the list, generates an event of the specified type for the process specified as to be notified.

    摘要翻译: 用于确保与失败过程相互作用的过程被通知该过程失败的方法和装置。 每个进程都有一个与之相关联的唯一进程标识符(PID)。 每个进程可选地具有包含一个或多个条目的关联列表,每个条目包含当进程失败时要被通知的进程的标识符。 进程通过调用操作系统(OS)内核的关联服务,指定操作类型(添加或删除),目标进程的标识符,更新目标进程的标识符,更新目标进程的关联列表 要通知的进程的标识符以及要为要通知的进程生成的事件的类型。 当进程失败时,OS内核的进程终止服务检查失败进程的关联列表,并且对于列表中的每个条目,为指定通知的进程生成指定类型的事件。

    Method, system, and storage medium for managing computer processing functions
    4.
    发明授权
    Method, system, and storage medium for managing computer processing functions 有权
    用于管理计算机处理功能的方法,系统和存储介质

    公开(公告)号:US08281315B2

    公开(公告)日:2012-10-02

    申请号:US12061719

    申请日:2008-04-03

    IPC分类号: G06F9/46 G06F15/76 G06F9/455

    CPC分类号: G06F9/5044 G06F2209/503

    摘要: Exemplary embodiments include a system and storage medium for managing computer processing functions in a multi-processor computer environment. The system includes a physical processor, a standard logical processor, an assist logical processor sharing a same logical partition as the standard logical processor, and a single operating system instance associated with the logical partition, the single operating system instance including a switch-to service and a switch-from service. The system also includes a dispatch component managed by the single operating system instance. Upon invoking the switch-to service by standard code, the switch-to service checks to see if an assist logical processor is online and, if so, it updates an integrated assist field of a work element block associated with the task for indicating the task is eligible to be executed on the assist logical processor. The switch-to service also assigns a work queue to the work element block.

    摘要翻译: 示例性实施例包括用于在多处理器计算机环境中管理计算机处理功能的系统和存储介质。 该系统包括物理处理器,标准逻辑处理器,共享与标准逻辑处理器相同的逻辑分区的辅助逻辑处理器以及与逻辑分区相关联的单个操作系统实例,该单个操作系统实例包括交换服务 和切换服务。 该系统还包括由单个操作系统实例管理的调度组件。 在通过标准代码调用切换到服务时,切换到服务检查以查看辅助逻辑处理器是否在线,如果是,则更新与任务相关联的工作元素块的集成辅助字段以指示任务 有资格在辅助逻辑处理器上执行。 切换到服务还将工作队列分配给工作元素块。

    METHOD, SYSTEM, AND STORAGE MEDIUM FOR MANAGING COMPUTER PROCESSING FUNCTIONS
    5.
    发明申请
    METHOD, SYSTEM, AND STORAGE MEDIUM FOR MANAGING COMPUTER PROCESSING FUNCTIONS 有权
    用于管理计算机处理功能的方法,系统和存储介质

    公开(公告)号:US20110113434A1

    公开(公告)日:2011-05-12

    申请号:US13010104

    申请日:2011-01-20

    IPC分类号: G06F9/50

    CPC分类号: G06F9/5044 G06F2209/503

    摘要: Exemplary embodiments include a system and storage medium for managing computer processing functions in a multi-processor computer environment. The system includes a physical processor, a standard logical processor, an assist logical processor sharing a same logical partition as the standard logical processor, and a single operating system instance associated with the logical partition, the single operating system instance including a switch-to service and a switch-from service. The system also includes a dispatch component managed by the single operating system instance. Upon invoking the switch-to service by standard code, the switch-to service checks to see if an assist logical processor is online and, if so, it updates an integrated assist field of a work element block associated with the task for indicating the task is eligible to be executed on the assist logical processor. The switch-to service also assigns a work queue to the work element block.

    摘要翻译: 示例性实施例包括用于在多处理器计算机环境中管理计算机处理功能的系统和存储介质。 该系统包括物理处理器,标准逻辑处理器,共享与标准逻辑处理器相同的逻辑分区的辅助逻辑处理器以及与逻辑分区相关联的单个操作系统实例,该单个操作系统实例包括交换服务 和切换服务。 该系统还包括由单个操作系统实例管理的调度组件。 在通过标准代码调用切换到服务时,切换到服务检查以查看辅助逻辑处理器是否在线,如果是,则更新与任务相关联的工作元素块的集成辅助字段以指示任务 有资格在辅助逻辑处理器上执行。 切换到服务还将工作队列分配给工作元素块。

    Method and apparatus for transferring file descriptors in a multiprocess, multithreaded client/server system
    6.
    发明授权
    Method and apparatus for transferring file descriptors in a multiprocess, multithreaded client/server system 失效
    用于在多进程,多线程客户端/服务器系统中传输文件描述符的方法和装置

    公开(公告)号:US06192389B1

    公开(公告)日:2001-02-20

    申请号:US08825302

    申请日:1997-03-28

    IPC分类号: G06F900

    摘要: In a client/server system, a method and apparatus for a listening daemon to distribute work and client connectivity across multiple processes each supporting multiple threads. Upon receiving a request from a client, a listening daemonaccepts the conversation, thus creating a socket. The listening daemon then does a putwork( ) call which places a work request on a system managed work queue. The work request behaves in a manner very similar to spawn in that it provides for parameters to be passed as well as transfer of ownership of the socket. In the meantime, server processes that are created either manually or by the operating system create multiple threads, which invoke a getwork( ) service to retrieve work requests created by the listening daemon. The getwork( ) service transfers the socket to the calling process and notifies the thread which file descriptors it has inherited. The thread is then able to process the client request and respond directly to the client without requiring an intermediate process to provide the communication link. The present invention allows a server in a client/server system to spread the workload across multiple threads in multiple processes, avoiding the creation of too many processes or too many threads in a single process. The direct transfer of the socket eliminates the unnecessary overhead typically required to rebind a new process to the client application.

    摘要翻译: 在客户机/服务器系统中,用于监听守护进程的方法和装置在跨多个进程分发工作和客户端连接,每个进程支持多个线程。 一旦接收到来自客户端的请求,一个侦听守护进程接听对话,从而创建一个套接字。 然后,监听守护程序执行putwork()调用,将工作请求放在系统管理的工作队列上。 工作请求的行为方式非常类似于生成,它提供要传递的参数以及套接字的所有权传输。 同时,由手动或由操作系统创建的服务器进程创建多个线程,该线程调用getwork()服务来检索由监听守护程序创建的工作请求。 getwork()服务将套接字传输给调用进程,并通知线程其继承的文件描述符。 线程然后能够处理客户端请求并直接响应客户端,而不需要中间过程来提供通信链路。 本发明允许客户机/服务器系统中的服务器在多个进程中跨多个线程传播工作负载,避免在单个进程中创建太多进程或太多线程。 套接字的直接传输消除了将新进程重新绑定到客户端应用程序所需的不必要开销。

    Method and apparatus for controlling the assignment of units of work to
a workload enclave in a client/server system
    7.
    发明授权
    Method and apparatus for controlling the assignment of units of work to a workload enclave in a client/server system 失效
    用于控制工作单位分配给客户机/服务器系统中的工作负载分布的方法和装置

    公开(公告)号:US6085217A

    公开(公告)日:2000-07-04

    申请号:US825304

    申请日:1997-03-28

    IPC分类号: G06F9/50 G06F9/00

    摘要: A method and apparatus for controlling the assignment of units of work to workload enclaves in a client/server system in which units of work are organized into enclaves with the units of work in each enclave being managed as a single entity. Incoming work requests are queued for processing by one or more worker threads of one or more server processes. In response to the receipt of an incoming work request, a putwork() service of the operating system kernel defines an workload enclave for the work request and adds the work request to a queue of incoming work requests to enqueue the request. In response to a request from a worker thread for more work, a getwork() service of the operating system kernel removes a work request from the queue to dequeue the request and associates the worker thread with the enclave defined for the request. If a worker thread must create a new unit of work while processing a work request, it calls an appropriate service of the operating system kernel, which creates the new unit of work and associates the new process with the enclave of the worker thread. The worker thread is disassociated from the enclave upon completion of the work request.

    摘要翻译: 一种用于控制将工作单元分配到客户/服务器系统中的工作负载分布的方法和装置,其中工作单元被组织成包围,每个飞地中的工作单元被作为单个实体来管理。 一个或多个服务器进程的一个或多个工作线程进入处理进入的工作请求。 响应于接收到的工作请求,操作系统内核的putwork()服务定义工作请求的工作负载,并将工作请求添加到入站工作请求的队列以排队请求。 响应于来自工作线程的更多工作的请求,操作系统内核的getwork()服务将从队列中删除工作请求以使该请求出队,并将工作线程与为该请求定义的飞地相关联。 如果工作线程在处理工作请求时必须创建新的工作单元,则它会调用操作系统内核的适当服务,从而创建新的工作单元,并将新进程与工作线程的飞地相关联。 完成工作请求后,工作线程与飞地分离。

    METHOD, SYSTEM, AND STORAGE MEDIUM FOR MANAGING COMPUTER PROCESSING FUNCTIONS
    9.
    发明申请
    METHOD, SYSTEM, AND STORAGE MEDIUM FOR MANAGING COMPUTER PROCESSING FUNCTIONS 有权
    用于管理计算机处理功能的方法,系统和存储介质

    公开(公告)号:US20080189714A1

    公开(公告)日:2008-08-07

    申请号:US12061719

    申请日:2008-04-03

    IPC分类号: G06F9/50

    CPC分类号: G06F9/5044 G06F2209/503

    摘要: Exemplary embodiments include a system and storage medium for managing computer processing functions in a multi-processor computer environment. The system includes a physical processor, a standard logical processor, an assist logical processor sharing a same logical partition as the standard logical processor, and a single operating system instance associated with the logical partition, the single operating system instance including a switch-to service and a switch-from service. The system also includes a dispatch component managed by the single operating system instance. Upon invoking the switch-to service by standard code, the switch-to service checks to see if an assist logical processor is online and, if so, it updates an integrated assist field of a work element block associated with the task for indicating the task is eligible to be executed on the assist logical processor. The switch-to service also assigns a work queue to the work element block.

    摘要翻译: 示例性实施例包括用于在多处理器计算机环境中管理计算机处理功能的系统和存储介质。 该系统包括物理处理器,标准逻辑处理器,共享与标准逻辑处理器相同的逻辑分区的辅助逻辑处理器以及与逻辑分区相关联的单个操作系统实例,该单个操作系统实例包括交换服务 和切换服务。 该系统还包括由单个操作系统实例管理的调度组件。 在通过标准代码调用切换到服务时,切换到服务检查以查看辅助逻辑处理器是否在线,如果是,则更新与任务相关联的工作元素块的集成辅助字段以指示任务 有资格在辅助逻辑处理器上执行。 切换到服务还将工作队列分配给工作元素块。

    Method and apparatus for fully restoring a program context following an
interrupt

    公开(公告)号:US5987495A

    公开(公告)日:1999-11-16

    申请号:US966374

    申请日:1997-11-07

    IPC分类号: G06F9/46

    CPC分类号: G06F9/463

    摘要: A method and apparatus for fully restoring the context of a user program, including program status word (PSW) and CPU register contents, following an asynchronous interrupt. Upon the occurrence of an asynchronous interrupt event, control is transferred from the normally executing part of the user program to an interrupt handler of the operating system kernel. The kernel interrupt handler saves the contents of the CPU registers and PSW as they existed at the time of the interrupt in a save area associated with the user program before transferring control to a signal catcher routine of the user program. When it has finished handling the interrupt, the signal catcher routine restores the previous state of program execution as it existed before the interrupt by storing the address of the save area in a selected register (which may be a general register/access register pair), restoring the contents of the registers other than the selected register containing the address of the save area, and then restoring the contents of the PSW and selected register by using a new Resume Program (RP) instruction. The RP instruction contains an operand field specifying through the selected register the base address of the save area together with offset fields specifying the offsets of the saved contents of the PSW and selected register relative to the beginning of the save area. Upon decoding an RP instruction, the CPU executing the instruction adds the displacement to the base address contained in the specified register to form the beginning address of the save area, to which it adds the specified offsets to access the saved PSW and selected register contents. The current PSW and selected register contents are then restored with the saved contents to fully restore the previous program context and return control to the instruction being executed at the point of interrupt. To ensure system integrity, only those fields of the PSW are restored that could have otherwise been restored by a program operating in problem state.