2. Data Storage and Access Models

Most designs deal with process data by collecting it from field I/O device drivers, control tasks, and user interface tasks into a common data area, or database.

Figure 10. Simplified design model for data storage and access.

The individual data items within this database are associated implicitly or explicitly with process I/O tags. In some cases, more commonly with shared memory , these may be grouped into larger structures encapsulating the data for a particular process area. The choice of access methods to this database normally falls into four broad categories:

In virtually all cases, access to shared memory will be faster than data access through message passing in terms of simple read times. Message passing contains more operating system overhead in both system calls and context switches. This benchmark trivializes the real-world situation however, making shared memory seem more attractive than it actually is. In reality, the choice of message passing vs. shared memory is related to the type of application being designed, the size of the data set and the characteristics of the clients of that data.

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.