Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Co-operating Program Interface

IP.com Disclosure Number: IPCOM000107996D
Original Publication Date: 1992-Apr-01
Included in the Prior Art Database: 2005-Mar-22
Document File: 2 page(s) / 102K

Publishing Venue

IBM

Related People

Andrews, K: AUTHOR [+3]

Abstract

Disclosed is a programming technique that allows more than one distributed program to operate in a single-threaded distributed messaging environment.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Co-operating Program Interface

       Disclosed is a programming technique that allows more
than one distributed program to operate in a single-threaded
distributed messaging environment.

      In a message-driven operating system environment such as that
provided by OS/2* Presentation Manager*, one program can request a
function from another program or from the operating system by calling
the other program or posting it a message.   Inherent in such a
programming environment is that only one message queue is allowed to
be created per execution thread.   In a multi-threaded distributed
programming environment, one program can request a function from
another distributed program.   The called distributed program can
create its own threads and have these threads communicate privately
between themselves because each thread can create its own message
queue.   In a single-threaded programming environment such as that
provided by VM/ CMS, one distributed program can not normally request
a function from another distributed program because with only one
thread the called program is unable to create its own message queue
for its own communications (see diagram on next page).  This article
describes a solution which allows one distributed program to request
functions from one or more other distributed programs.

      The problem of allowing more than one or more distributed
programs to communicate in single-threaded distributed messaging
environment has been solved by the use of a special type of
Application Programming Interface (API) call and some simple
associated logic.   This special API call allows the original calling
distributed program to request a function from another distributed
program without requiring the called distributed program to create
its own message queues (which it is not allowed to do).  It is
achieved by allowing the original calling distributed program to act
as a communications vehicle for the called distributed program which
does not need its own message queues to communicate.   Thus the
restriction is met that only one distributed program may be active at
a time over one communicat...