• Keine Ergebnisse gefunden

Exercise 8.1 Verifying Operating Systems

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise 8.1 Verifying Operating Systems"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Applied Automata Theory (WS 2014/2015) Technische Universit¨ at Kaiserslautern

Exercise Sheet 8

Prof. Dr. Roland Meyer, Reiner H¨ uchting Due: Tue, Jan 06

Exercise 8.1 Verifying Operating Systems

Our goal is to verify an operating system that runs k processes and has a scheduler.

Consider the following B¨ uchi automata:

A OS := A P

1

k . . . k A P

k

: Describes the behaviour of the operating system, where A P

i

represents the behavior of process P i .

A Sched : Describes the scheduling strategy.

A Prop : Describes a property to be checked.

Our verification task amounts to solving the following model checking problem:

L(A OS ) ∩ L(A Sched ) ⊆ L(A Prop ).

To solve this problem in a general way, we introduce a most general scheduling B¨ uchi automaton A MG that allows for arbitrary behaviours of the scheduler:

q 0

P 1 w(P 1 )

s(P 1 )

P k w(P k )

s(P k ) . . . . . . . . .

The scheduler can randomly wake up (w(P i )) and suspend (s(P i )) processes and the processes only work when awake. Unfortunately, this general scheduler is not fair : it does not necessarily wake up each process infinitely often.

(a) Modify A MG to a fair automaton A MGF that wakes up every process infinitely often.

Keep A MGF as general as possible, do not implement a concrete scheduling strategy.

(b) Present an automaton A RR that describes the Round Robin scheduling strategy.

What is the relationship between L(A RR ) and L(A MG ) respectively L(A MGF )?

(c) Why can you conclude L(A OS ) ∩ L(A RR ) ⊆ L(A Prop ) from L(A OS ) ∩ L(A MGF ) ⊆ L(A Prop )?

Exercise 8.2 NBA Emptiness and Membership

Let A be an NBA and uv ω be an ω-word. Give algorithms that decide whether:

L(A) = ∅ uv ω ∈ L(A).

(2)

Exercise 8.3 NBA Complementation Consider the NBA A over Σ = {a, b} below:

q 0 q 1

a b

a b

Use B¨ uchi’s complementation method discussed in class to compute L(A) and L(A).

Exercise 8.4 Travelling Santa

Santa has decided to swap his traditional sleigh for the brand new Chrismas Racer 3000, equipped with the state of the art automata driven navigation system Rudolph Go v0.99beta. The automaton A Rudolph controlling Rudolph is depicted below:

North

Pole refill

North America

1,2 1,2

South America 1,2

1,2

Europe 1,2 1,2

Africa 1,2 1,2

1,2 Asia 1,2

1,2 1,2

Australia 1,2 1,2

South Pole

1,2

1,2 1,2

1,2 1,2

1,2

Each time Santa lifts off, Rudolph randomly chooses a neighbouring continent. Santa drops one or two presents every time he enters a region and he can refill at the north pole. Currently, Rudolph cannot prevent Santa from running out of presents. Please help Santa by upgrading Rudolph to version 1.0:

(a) Determine the minimum present capacity of the sleigh needed not to run empty.

(b) Give an NBA A Sleigh modelling how the number of presents in Santa’s sleigh changes.

(c) Explain how one can use A Rudolph and A Sleigh to create a controller that guarantees Santa to never run out of presents.

(d) How can you modify the controller so that all continents are visited infinitely often?

Referenzen

ÄHNLICHE DOKUMENTE

The Russian troop build up along the border that began to cause serious alarm in Kyiv government offices and embassies around 20 March, 33 Ukrainian and Western military

Both buffer ann s will move to their nonnal operating positions and the capstan will pull the tape forward until the beginning-of-tape (BOT) marker reaches the

on the effects of vigorous walking, jogging, rowing and stair climbing in 35 healthy postmenopausal women leading a sedentary life resulted after 9 months in a +5.2% increase of

Der erste afroamerikanische US-Prä- sident wird sich mit einer ebenso epochalen Finanzkrise und ihren noch längst nicht ausgestandenen Folgen auseinandersetzen müssen und

Define Macro End Macro Define Local Svmbol Define Repeat Block Indefinite Repeat Indefinite Repeat Character Alternate Macro Exit... Move from external data memory

To abort a file transfer, use the terminal interrupt key (usually Ctrl-C). The sending of transfers is immed~ately halted. The receiving of transfers is halted

Santa Claus bringt es vorbei, auch das Rentier ist dabei, doch es zieht den Schlitten nicht, weil ihm sonst sein Rückgrat bricht!. Es sitzt neben Santa Claus und sieht

Fluorescent ligands have been used for GPCR studies ranging from microscopic detection of receptor localisation in tissues and cells and demonstration of the ligand-bound receptor