Friday, March 7, 2014

Basics of Guardian Programming

Process Files and $RECEIVE: 

The file system allows you to open and access processes as files. A process can open
another process using a process file name and then send data to the process by

writing to the open file.

A process can receive data from other processes by opening a file using the special
file name “$RECEIVE.” Through $RECEIVE, you can read not only messages from
other processes but also operating-system messages.


File Names: 

Every file has at least one unique name by which the file is accessed. The file name is unique not only on the system where the file is physically located but also within the system’s network. The file name is used by a process when gaining access to (or opening) a file. The file is named when the file is created.


The rules for naming a file depend on whether you are naming a disk file, a device file,
or a process file.

Permanent disk files are named when they are created. Once a permanent disk file is
created, it remains on disk until explicitly purged. The name of a disk file when fully qualified consists of four parts: the node name, the volume, the subvolume, and the file ID. Periods separate the parts from each other.

[node-name.][[volume-name.]subvolume-name.]file-id