Task: Memory Layout and Demand Paging
64bitprograms (if in doubt:
g++8 on a recent (default configured)
64bitUbuntu Linux, binary compiled with -m32/-m64). All questions refer to
We will examine differences in the behavior of the following groups of variables:
Global variables (variables allocated in a global scope)
Local variables (variables allocated in different threads)
Static variables (variables allocated in with the static keyword)
“Malloc variables” (variables allocated in with malloc)
“Shared memory variables” (variables allocated in shared memory)
Write short programs to answer the questions.
Add these programs/notes/bash commands to your repo in folder A3.
We will not check these programs/notes/bash commands, if they are not there we do not care, BUT in the exercise interview you will have to demonstrate how to run one of the experiments. Worst case: you have to live-implement it within the short exercise interview. Also, if we suspect plagiarism these files can be your defense.
The questions are unrestricted multiple choice. That is, any number of choices from zero to all can be correct.
- Make sure to only submit answers you can explain.
Register and participate in one of the presentation sessions
We will discuss the questions and solutions from the Questionnaire
- We will randomly pick one student per question from the students who submitted an answer to the corresponding question.
- You can’t be picked to answer a question you have not submitted.
- You will then have to give your answer to that question.
- You also have to give an argumentation on how you came up with that answer.
- If you cannot argue your answer or if the argumentation is very vague, you will get a deduction of -50% on your questionnaire points.
- For a correct answer + argumentation, you get +10% on your points of the questionnaire.
- Wrong answers, which can be argued, will not increase/decrease your questionnaire points.
Points: Questionnaire +/- points from the presentation session
If you have any questions regarding this assignment, try Discord and newsgroup first, and firstname.lastname@example.org second. If you have a more direct question regarding your specific solution, you can also ask the tutor who organizes this assignment:
Mathias Oberhuber email@example.com
Lukas Maar firstname.lastname@example.org