Methods of Sharing Objects

The system provides several methods of sharing objects among processes. Your choice of which method to use is affected by several factors that are listed in Methods of Sharing Objects. The following are the meanings of the various columns in this table:

  • IPC Method.

    The name of the method used for sharing objects among processes.

  • Language Support.

    The programming languages that support this IPC method.

  • Objects Shared.

    The types of objects that can be shared by using this method.

  • Between Process Families.

    Indicates whether this method permits communication between processes in different process families.

  • Multihost Networks.

    Indicates whether this method permits communication among processes running on different hosts. If such communication is permitted, this column also indicates whether the hosts must all be ClearPath MCP hosts, or whether they can be from a variety of vendors.

Table 9. Methods of Sharing Objects

IPC Method

Language Support

Objects Shared

Between Process Families

Multihost Networks

More Information

Task Attributes

WFL

ALGOL

COBOL

NEWP

Boolean

Event

Integer

Real

String

No

No

Using Task Attributes

Global Objects

ALGOL

NEWP

WFL

Any

No

No

Using Global Objects

Tasking Parameters

(by reference or by name)

ALGOL

C

COBOL

NEWP

Pascal

WFL

Most types of objects

No

No

Using Parameters

Tasking Parameters

(by value)

ALGOL

C

COBOL

NEWP

Pascal

WFL

Most types of objects

Yes

Yes

Using Parameters

Server Libraries

ALGOL

C

COBOL

FORTRAN77

NEWP

Pascal

Procedures

Yes

No

Using Libraries

Connection Libraries

ALGOL

NEWP

Procedures

Yes

No

Using Libraries

Port Files

All but WFL

Multiple text records

Yes

Yes; ClearPath MCP only

Using Shared Files

Shared Logical Files

All

Multiple text records

Yes

No

Using Shared Files

Disk Files with Buffer Sharing and Record Locking

COBOL85 native; library support for others

Multiple text records

Yes

No

Using Shared Files

CRCR

COBOL85 native; library support for others

Single text string

Yes

No

Using Core-to-Core (CRCR) and Storage Queue (STOQ)

STOQ

COBOL85 native; library support for others

Multiple text strings

Yes

No

Using Core-to-Core (CRCR) and Storage Queue (STOQ)

Shared Memory

C native; library support for others

Boolean

Character

Double

Integer

Real

Yes

No

POSIX User's Guide