diff options
Diffstat (limited to 'ws2015/oss/blaetter/07')
-rw-r--r-- | ws2015/oss/blaetter/07/abgabe.md | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/ws2015/oss/blaetter/07/abgabe.md b/ws2015/oss/blaetter/07/abgabe.md new file mode 100644 index 0000000..833756d --- /dev/null +++ b/ws2015/oss/blaetter/07/abgabe.md | |||
@@ -0,0 +1,58 @@ | |||
1 | --- | ||
2 | header-includes: | ||
3 | - \usepackage{tikz} | ||
4 | --- | ||
5 | # Nicht-preemptives Scheduling | ||
6 | |||
7 | a) | ||
8 | |||
9 | \begin{tikzpicture} | ||
10 | \draw[thick, <->] (0, 6) -- (0, 0) -- (10, 0); | ||
11 | \foreach \x in {1, 2, 3, 4, 5} | ||
12 | \draw[thick] (-1pt, \x) -- (1pt, \x) node [anchor=east] {$P_{\x}$}; | ||
13 | \foreach \x in {0, ..., 19} | ||
14 | \draw[thick] ({\x / 2}, -1pt) -- ({\x / 2}, 1pt) node [anchor=north] {$\x$}; | ||
15 | |||
16 | \draw[xstep=0.5, ystep=1, gray, very thin] (0, 5) grid (9.5, 0); | ||
17 | |||
18 | \draw[|-|] (0, 1) -- (1, 1); | ||
19 | |||
20 | \draw[|-|] (1, 2) -- (3, 2); | ||
21 | |||
22 | \draw[|-|, dashed] (1, 3) -- (3, 3); | ||
23 | \draw[|-|] (3, 3) -- (6.5, 3); | ||
24 | |||
25 | \draw[|-|, dashed] (2, 4) -- (6.5, 4); | ||
26 | \draw[|-|] (6.5, 4) -- (8, 4); | ||
27 | |||
28 | \draw[|-|, dashed] (2.5, 5) -- (8, 5); | ||
29 | \draw[|-|] (8, 5) -- (9.5, 5); | ||
30 | \end{tikzpicture} | ||
31 | |||
32 | b) | ||
33 | |||
34 | \begin{tikzpicture} | ||
35 | \draw[thick, <->] (0, 6) -- (0, 0) -- (10, 0); | ||
36 | \foreach \x in {1, 2, 3, 4, 5} | ||
37 | \draw[thick] (-1pt, \x) -- (1pt, \x) node [anchor=east] {$P_{\x}$}; | ||
38 | \foreach \x in {0, ..., 19} | ||
39 | \draw[thick] ({\x / 2}, -1pt) -- ({\x / 2}, 1pt) node [anchor=north] {$\x$}; | ||
40 | |||
41 | \draw[xstep=0.5, ystep=1, gray, very thin] (0, 5) grid (9.5, 0); | ||
42 | |||
43 | \draw[|-|] (0, 1) -- (1, 1); | ||
44 | |||
45 | \draw[|-|] (1, 2) -- (3, 2); | ||
46 | |||
47 | \draw[|-|, dashed] (1, 3) -- (5.5, 3); | ||
48 | \draw[|-|] (5.5, 3) -- (9.5, 3); | ||
49 | |||
50 | \draw[|-|, dashed] (2, 4) -- (4, 4); | ||
51 | \draw[|-|] (4, 4) -- (5.5, 4); | ||
52 | |||
53 | \draw[|-|, dashed] (2.5, 5) -- (3, 5); | ||
54 | \draw[|-|] (3, 5) -- (4, 5); | ||
55 | \end{tikzpicture} | ||
56 | |||
57 | c) | ||
58 | |||