diff --git a/docs/exercise/README.md b/docs/exercise/README.md new file mode 100644 index 0000000..6b488a4 --- /dev/null +++ b/docs/exercise/README.md @@ -0,0 +1,52 @@ +# Exercise + +## Update March 10th: + +### Exercise Report Guidelines: + +For the exercise report, please upload a PDF focusing on VSS and RTA implementation results and their comparison. Include discussion on how simulation results compare to theoretical analysis. There are no specific formatting or length requirements — just document your results. + +In addition, submit the source code and the test cases with the results in a ZIP file with a clear README on how to run it. + +**Solution examples:** +We will add by next Friday in the GitHub repo below a few example solutions for the RTA so you can check your analysis code. (The simulation will give different results depending on how long you run it and what assumptions you make, so it does not make sense to provide a solution for that.) + +**Note:** A small mistake in the three small exercise test cases provided on DTU Learn has been fixed: the columns WCET and BCET were swapped compared to the test cases in the GitHub repo. + +--- + +## Update March 7th: + +You may use this tool to generate test cases for the exercise: + +[Taskset Generator Exercise](https://github.com/Plyncesilva/Taskset-Generator-Exercise) + +We have already shared three simple test cases. The TAs will generate extra test cases with the tool and share them via the GitHub repo above. + +Please see the exercise description on Overleaf. + +--- + +## If you have questions: + +Start by asking Google Gemini as follows: + +1. Login to [Google AI Studio](https://aistudio.google.com) (you will need a Google account). +2. At the bottom, click on "+" and then select "My Drive." +3. Add this Google Drive shared folder link (with materials about the exercise): + [Exercise Materials Folder](https://drive.google.com/drive/folders/1hcgpKI-Kizq82VjRzAQ5-0xyGE9hCMOB?usp=share_link) +4. Select "Gemini 2.0 Flash Thinking Experimental 01-21" in the panel to the right. +5. Ask your question and hit "Run." + +The files in the Exerercise/Content tab are test cases are provided as a starting point for the 02225 DRTS exercise. + +They are in CSV (Comma-Separated Values) format and contain the model parameters for periodic tasks: + + - Task: Task name + - BCET: Best-case execution time + - WCET: Worst-case execution time + - Period: Task period + - Deadline: Task deadline (equal to the period) + - Priority: Task priority (assigned by Rate Monotonic scheduling, with lower period yielding higher priority) + +These examples illustrate one possible format. Students may use a different format and create additional test cases. diff --git a/docs/exercise/exercise-TC1.csv b/docs/exercise/exercise-TC1.csv new file mode 100644 index 0000000..89e3ebe --- /dev/null +++ b/docs/exercise/exercise-TC1.csv @@ -0,0 +1,8 @@ +Task,BCET,WCET,Period,Deadline,Priority +T1,0,1,6,6,1 +T2,3,4,60,60,7 +T3,1,1,10,10,2 +T4,1,2,12,12,3 +T5,1,2,15,15,4 +T6,1,3,20,20,5 +T7,1,4,30,30,6 \ No newline at end of file diff --git a/docs/exercise/exercise-TC2.csv b/docs/exercise/exercise-TC2.csv new file mode 100644 index 0000000..2427ced --- /dev/null +++ b/docs/exercise/exercise-TC2.csv @@ -0,0 +1,12 @@ +Task,BCET,WCET,Period,Deadline,Priority +T1,0,1,15,15,1 +T2,1,2,20,20,2 +T3,2,3,25,25,3 +T4,2,4,30,30,4 +T5,3,5,50,50,5 +T6,3,5,60,60,6 +T7,4,6,75,75,7 +T8,5,9,100,100,8 +T9,3,12,120,120,9 +T10,5,11,150,150,10 +T11,6,15,300,300,11 \ No newline at end of file diff --git a/docs/exercise/exercise-TC3.csv b/docs/exercise/exercise-TC3.csv new file mode 100644 index 0000000..8cd09de --- /dev/null +++ b/docs/exercise/exercise-TC3.csv @@ -0,0 +1,10 @@ +Task,BCET,WCET,Period,Deadline,Priority +T1,1,3,40,40,1 +T2,2,7,80,80,2 +T3,1,13,100,100,3 +T4,3,18,160,160,4 +T5,1,22,200,200,5 +T6,5,27,300,300,6 +T7,8,29,320,320,7 +T8,10,34,400,400,8 +T9,22,35,480,480,9 \ No newline at end of file