Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Assignment
1. Introduction
This assignment is concerned with simulating some aspects of a simple embedded computer
system. You may choose between two versions: A1 or A2. Each is worth a different percentage
of the overall coursework mark: A1 is a simplified version of the assignment and is worth 50%,
while A2 is the full version and is worth 100%.
The diagram shown in Figure 1 is a model of a system that is responsible for gathering
environmental data from a set of three sensors, each of a different type. In the model a set of
threads (initially six) are used to gather the data, and then transmit it to a Receiver.
Access to the sensors is via a Bus Controller (BC), such that only one thread is granted access at
a time. Thus, in order to acquire data, each thread must gain sole access to the BC, configure it to
sample from a specific sensor, and sample the data. In order to transmit the data, a thread must
gain access to one of two communications links via a Link Access Controller. Having gained
access, it sends its data, and then releases the link. Each thread may use either communications
link, but once it has gained access to a particular link, no other thread should be allowed to use
that link until it is released.