Section 4: Synchronization, Data Generation and Data transfer Flashcards
What is the producer/consumer model
Producer: software or hardware responsible for producing data or events for the consumer
Consumer: software or hardware that consumes data or events from producer
What is data
the information transferred between producers and consumers
What is an Event
The control information transferred to represent that some event has occured
What are the three levels of data synchronization?
Data Generation (when/why is data generated) Data Notification (when/how do we inform the other party that we want to synchronize) Data transfer (how do we send data between the two systems)
Which of the data synchronization levels is mandatory
Data Transfer
What is synchronization
The interaction required to allow interaction of two devices with different views of time
What are the two types of synchronziation
Active: One system can force a change in the operation of the other (ie Interupts)
Passive Synchronization: One of the communicating entities requests service, however the receiving entity does not need to respond
What are three types of data sources
Spontaneous: (data produced independent of consumer)
Consumer Sensitive: Data is produced only after prior data is consumed
Consumer Responsive: Data is produced when requested
What is a consumer initiated notification scenario? What are some examples?
Consumer requests data from the consumer. Once data is available request is completed. Examples (polling for a key to be pressed, interrupt from a printer)
What is a producer initiated notification scenario? What are some examples?
In producer initiated notification, the producer informs the consumer when data is available. Examples:
Polling for printer to be ready for next page, Sending an interrupt to be handled
What is Data transfer
The exchange of info between two entities.
What are three concerns with data transfer
Persistence: How long is data valid?
Tim syncrho: How signals are enabled to make transfer happen
Control Signals: How control info is exchanged
What is persistent Data
data is valid until consumer signals data has been read
What is transient data
data is valid for a finite amount of time. (most data)