Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Cheng A.Real-time systems.Scheduling,analysis,and verification.2002.pdf
Скачиваний:
59
Добавлен:
23.08.2013
Размер:
3.68 Mб
Скачать

236 TIMED PETRI NETS

the types of tokens for enabling the transitions and the types of tokens produced by the firing.

To extend ER nets to specify the notions of time, a variable chronos is used to represent the time-stamp of the token in each environment. This time-stamp gives the time when the token is produced. The time-stamps of the tokens put in output places are produced by the actions associated with the transitions and are based on the values of the environments of the selected input enabling tuple.

EXERCISES

1.Explain the difference between an untimed Petri net and a timed/time Petri net.

2.Consider the Petri net in Figure 8.1 modeling three tasks competing to execute the critical section. There are 10 places, one shared by all three tasks, and three places for each task. If we need to model an additional task, we need to add only three more places to model the internal events in this new task. Thus the size of the net is linearly proportional to the number of tasks. However, if we model this mutual-exclusion solution as a state-transition graph or Kripke structure (chapter 4), the number of states in this state graph grows exponentially as the number of modeled tasks increases. Explain why this is the case. On the other hand, a Statechart specification avoids this state explosion in its modeling of this mutualexclusion problem (chapter 5). Explain why this is the case.

3.Explain the differences between strong and weak time ER nets. Under what conditions should

(a)a strong time ER net be used?

(b)a weak time ER net be used?

4.Consider the ER net in Figure 8.2. Specify an alternate action with a predicate satisfying:

(a)token2 and token3.

(b)all 3 tokens.

5.Specify the car pedals system described as an MMT automaton using a time ER net.

6.Specify the hospital intensive care unit monitoring subsystem in chapter 6 (exercise 2) as a time ER net.

7.Construct a TERN corresponding to the example of the resource center with client requests (section 8.3).

8.Specify the smart airbag deployment system described in chapter 4 (exercise 6) as a TERN. Compare the expressiveness and space requirement for the TERN model and the timed transition graph model.

9.What is the run-time and space complexity of the Berthomieu–Diaz analysis algorithm?

Соседние файлы в предмете Электротехника