diff --git a/makefile b/makefile index 31c1698..0b74a34 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,8 @@ all: all_booklets all_docduments -all_docduments: prepare pdf/assambly_report.pdf pdf/c_report.pdf -all_booklets: prepare pdf/assambly_report.booklet.pdf pdf/c_report.booklet.pdf +all_docduments: prepare pdf/assambly_report.pdf pdf/rtos_report.pdf +all_booklets: prepare pdf/assambly_report.booklet.pdf pdf/rtos_report.booklet.pdf prepare: mkdir -p pdf @@ -72,12 +72,12 @@ pdf/assambly_report.booklet.pdf: converters/bookletify.latex pdf/assambly_report pdflatex -interaction=nonstopmode -output-directory="build/assambly_report.booklet" "build/assambly_report.booklet/bookletify.latex" mv build/assambly_report.booklet/bookletify.pdf pdf/assambly_report.booklet.pdf -pdf/c_report.pdf: converters/* report-2/*.md - mkdir -p build/c_report - bash converters/mdToLatex.sh report-2/c_report.md +pdf/rtos_report.pdf: converters/* report-2/*.md + mkdir -p build/rtos_report + bash converters/mdToLatex.sh report-2/rtos_report.md -pdf/c_report.booklet.pdf: converters/bookletify.latex pdf/c_report.pdf - mkdir -p build/c_report.booklet - sed -e 's|?pdf?|../../pdf/c_report.pdf|' converters/bookletify.latex >build/c_report.booklet/bookletify.latex - pdflatex -interaction=nonstopmode -output-directory="build/c_report.booklet" "build/c_report.booklet/bookletify.latex" - mv build/c_report.booklet/bookletify.pdf pdf/c_report.booklet.pdf +pdf/rtos_report.booklet.pdf: converters/bookletify.latex pdf/rtos_report.pdf + mkdir -p build/rtos_report.booklet + sed -e 's|?pdf?|../../pdf/rtos_report.pdf|' converters/bookletify.latex >build/rtos_report.booklet/bookletify.latex + pdflatex -interaction=nonstopmode -output-directory="build/rtos_report.booklet" "build/rtos_report.booklet/bookletify.latex" + mv build/rtos_report.booklet/bookletify.pdf pdf/rtos_report.booklet.pdf diff --git a/report-2/c_report.md b/report-2/c_report.md deleted file mode 100644 index 9791410..0000000 --- a/report-2/c_report.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -sub_title: "Real Time Systems 10" -class_code: "ELERTS10" -toc: true -lang: english -auther: - - name: "Finley van Reenen (0964590)" - email: "mail@lailatheelf.nl" - name_short: "E.L.F. van Reenen" ---- - -# C Report - -![](/report-2/week_1.3.md) - -![](/report-2/week_1.4.md) - -![](/report-2/week_1.5.md) - -![](/report-2/week_1.6.md) diff --git a/report-2/rtos_report.md b/report-2/rtos_report.md new file mode 100644 index 0000000..a05d9f2 --- /dev/null +++ b/report-2/rtos_report.md @@ -0,0 +1,27 @@ +--- +sub_title: "Real Time Systems 10" +class_code: "ELERTS10" +toc: true +lang: english +auther: + - name: "Finley van Reenen (0964590)" + email: "mail@lailatheelf.nl" + name_short: "E.L.F. van Reenen" +--- + +# TROS Report + +## source code + +Because copying code from a PDF is not the most user friendly, I added made the +git repository pubic that contains all the code in separate files. It can be found at [https://git.gay/LailaTheElf/RTS10_reports](https://git.gay/LailaTheElf/RTS10_reports). This repository in only public from when I submit my report until I get the result back, this is to prevent plagiarism, by other students. + +At all the assignment there is a link to where it is stored within the repository. For if you printed this document, the path list given within the repository. + +![](/report-2/week_1.3.md) + +![](/report-2/week_1.4.md) + +![](/report-2/week_1.5.md) + +![](/report-2/week_1.6.md) diff --git a/report-2/week_1.6.md b/report-2/week_1.6.md index d282311..2814a8a 100644 --- a/report-2/week_1.6.md +++ b/report-2/week_1.6.md @@ -46,15 +46,15 @@ The task with the shortest deadline should get the highest priority. The deadlin > C) Calculate for all tasks whether the deadline will be met, and if the deadline is met, provide the response time $R_i$. $$ -R_i=C_i+\sum_{j∈hp(i)}{\left\lceil \frac{R_i}{T_j} \right\rceil} C_j +R_i=C_i+\sum_{j\in hp(i)}{\left\lceil \frac{R_i}{T_j} \right\rceil} C_j $$ $$ -R_1=C_1+\sum_{j∈hp(1)}{\left\lceil \frac{R_1}{T_j} \right\rceil} C_j=C_1=50ms +R_1=C_1+\sum_{j\in hp(1)}{\left\lceil \frac{R_1}{T_j} \right\rceil} C_j=C_1=50ms $$ $$ -R_3=C_3+\sum_{j∈hp(3)}{\left\lceil \frac{R_3}{T_j} \right\rceil} C_j=C_3+\left\lceil \frac{R_3}{T_1} \right\rceil C_1 +R_3=C_3+\sum_{j\in hp(3)}{\left\lceil \frac{R_3}{T_j} \right\rceil} C_j=C_3+\left\lceil \frac{R_3}{T_1} \right\rceil C_1 $$ $$ \Rightarrow w_{3,1}=C_3+\left\lceil \frac{C_3}{T_1} \right\rceil C_1=0.02+\left\lceil \frac{0.02}{0.1} \right\rceil 0.05=0.07 @@ -69,7 +69,7 @@ $w_{3,2}$ is the same as $w_{3,1}$ so $R_3$ is equal to both. This is lower then $$ -R_2=C_2+\sum_{j∈hp(2)}{\left\lceil \frac{R_2}{T_j} \right\rceil C_j}=C_2+\left\lceil \frac{R_2}{T_1} \right\rceil C_1+\left\lceil \frac{R_2}{T_3} \right\rceil C_3 +R_2=C_2+\sum_{j\in hp(2)}{\left\lceil \frac{R_2}{T_j} \right\rceil C_j}=C_2+\left\lceil \frac{R_2}{T_1} \right\rceil C_1+\left\lceil \frac{R_2}{T_3} \right\rceil C_3 $$ $$ \Rightarrow w_{2,1}=C_2+\left\lceil \frac{C_2}{T_1} \right\rceil C_1+\left\lceil \frac{C_2}{T_3} \right\rceil C_3=0.045+\left\lceil \frac{0.045}{0.1} \right\rceil 0.05+\left\lceil \frac{0.045}{0.2} \right\rceil 0.02=0.115 @@ -88,7 +88,7 @@ $$ $w_{2,2}$ is the same as $w_{2,1}$ so $R_2$ is equal to both. This is lower then $T_2$ ($280ms$) so this is still possible. $$ -R_4=C_4+\sum_{j∈hp(4)}{\left\lceil \frac{R_4}{T_j} \right\rceil C_j}=C_4+\left\lceil \frac{R_4}{T_1} \right\rceil C_1+\left\lceil \frac{R_4}{T_3} \right\rceil C_3+\left\lceil \frac{R_4}{T_2} \right\rceil C_2 +R_4=C_4+\sum_{j\in hp(4)}{\left\lceil \frac{R_4}{T_j} \right\rceil C_j}=C_4+\left\lceil \frac{R_4}{T_1} \right\rceil C_1+\left\lceil \frac{R_4}{T_3} \right\rceil C_3+\left\lceil \frac{R_4}{T_2} \right\rceil C_2 $$ $$ \Rightarrow w_{4,1}= diff --git a/wiki b/wiki index ac9f654..3ff0305 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit ac9f6543bc2e182a14b2467046fc28cffcf97af8 +Subproject commit 3ff030559f693b42a32aae70201b7e9ab3018961