Skip to main content

Applications

I. Single Copy​

The first application is a solution to what I have dubbed the single copy problem for information resources. Whenever a process receives information from a information resource, it can only receive a local copy of the information. This fact is apparent when the information come from a distributed data base, but is also true in tightly coupled virtual memory situations where information from shared memory must be copied into local registers for processing. Once a process has a local copy of some information, it might like to try to insure that the information remains current, i.e., that it is the single copy.

The traditional solution to this problem is to lock the information resource with a semaphore before making a local copy and then invalidate the local copy before unlocking the resource. This solution suffers from the fact that, even though other processes may not be requesting the copied data, the data must be unlocked quickly just in case. This can result in many needless copies being made.

What is needed is a mechanism for invalidating local copies exactly when requests by other processes would force invalidation. To offer such a mechanism, an information resource can have, in addition to the usual reading and writing invocations, the following:

"White lock", portion; > ; write notify

"RW lock", portion; >; RW notify

The important invocation on the notify capabilities is:

"Wait for notification"; > reason;

The basic idea is to allow a process to request that it be notified if an attempt is being made to invalidate its copy. If the copy is used for reading only, the process need only request notifications of attempted modifications of the data ("Write lock"). When a process is so notified, it is expected to invalidate its copy and delete its write notify capability to inform the information resource server that the pending write access may proceed.

In the read write lock case, the RW notify capability may also be used for reading and writing the portion. Any other access to the portion will cause notification. When notified, the process with the RW notify capability is expected to write back the latest copy of the information before deleting its RW notify capability.

Space does not permit presenting more details for this mechanism. The important fact to notice is that it permits an information resource to be shared in such a way that, though the information may be widely distributed, it is made to appear as a single copy. This mechanism has important applications to distributed data bases.

II. Network Resource Optimization​

The application that probably best demonstrates the usefulness of the DCCS is the sort of network optimization capability that can be used to create at least the primitive capabilities introduced earlier:

9. Account Capability

a. "Create", type; >; capability

The passed type parameter could at least be any of: "File", "Directory", "Process", or "Server". The appropriate type of capability would be returned. The resources used for the capability are charged to the particular account.

Now suppose that a user on one CCS system within a DCCS network has remote access to account capabilities on several other CCS systems. This user could create what might be called a super account capability to optimize use of his network resources. The super account capability would actually be a requestor serviced by a process with optimization desired would be completely under user control, but some of the more obvious examples are presented:

  1. Static Object Creation Optimization

    a. When a new file is requested, create it on the system with the fastest access or the least cost per bit.

    b. When a process is requested, create it on the system with the fastest current response or with the least cost per instruction.

  2. Dynamic optimization.

    To do dynamic optimization, the super account would not give the requesting process the capability that it received from the remote account after its static optimization, but would give out a requestor that it would make function like the actual capability except optimized.

    a. When network conditions or user needs charges, files can be moved to more effective systems. changes in cost conditions might result in file movement. Charges in reliability conditions might result in movement of files and/or in addition or deletion of multiple copies.

    b. If system load conditions or CPU charges change, it might be effective to relocate a process. The super account service process could: create a new process on a more effective system, stop the old process, move the old C-list and memory to the new process and start the new process up. The emulation process given to the user would never appear to change.

    c. Similar optimizations can be done on any other capabilities.

    Such a super account can automatically optimize a user's network resources to suit the user's needs without changing the functional characteristics of the objects being optimized.