<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Soma-notes  - Recent changes [en]</title>
		<link>https://homeostasis.scs.carleton.ca/wiki/index.php/Special:RecentChanges</link>
		<description>Track the most recent changes to the wiki in this feed.</description>
		<language>en</language>
		<generator>MediaWiki 1.42.1</generator>
		<lastBuildDate>Sun, 06 Dec 2026 07:55:41 GMT</lastBuildDate>
		<item>
			<title>Operating Systems 2026F: Assignment 4</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_4&amp;diff=25293&amp;oldid=25290</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_4&amp;diff=25293&amp;oldid=25290</guid>
			<description>&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Questions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:40, 4 December 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Questions==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Questions==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Can hard links be used to make files available in 3000contain2.sh&#039;s container? What about symbolic links? Is this the same as with [[Operating_Systems_2026F:_Tutorial_8#3000contain.sh|3000contain.sh]]&#039;s container? Demonstrate with a simple experiment. Explain.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Can hard links be used to make files available in 3000contain2.sh&#039;s container? What about symbolic links? Is this the same as with [[Operating_Systems_2026F:_Tutorial_8#3000contain.sh|3000contain.sh]]&#039;s container? Demonstrate with a simple experiment. Explain. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(Hint: first try to copy a file from outside the container into a container while it is running.)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Change 3000contain2.sh so that it uses busybox&amp;#039;s internal shell rather than bash. How can this change allow 3000contain2.sh to be simplified yet still work? What key functionality has been lost by this simplification?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Change 3000contain2.sh so that it uses busybox&amp;#039;s internal shell rather than bash. How can this change allow 3000contain2.sh to be simplified yet still work? What key functionality has been lost by this simplification?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Create a small test program &amp;lt;tt&amp;gt;compare-pids.c&amp;lt;/tt&amp;gt; that compares the PID produced from getpid() and the value returned by /dev/newgetpid from [[Operating_Systems_2026F:_Tutorial_7#newgetpid_module|Tutorial 7]]. It should take no command line inputs and should output &amp;quot;getpid: ??, newgetpid: ??&amp;quot; where the ?? are the PID values gotten from the two sources. Your answer should be the source code of your new program.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Create a small test program &amp;lt;tt&amp;gt;compare-pids.c&amp;lt;/tt&amp;gt; that compares the PID produced from getpid() and the value returned by /dev/newgetpid from [[Operating_Systems_2026F:_Tutorial_7#newgetpid_module|Tutorial 7]]. It should take no command line inputs and should output &amp;quot;getpid: ??, newgetpid: ??&amp;quot; where the ?? are the PID values gotten from the two sources. Your answer should be the source code of your new program.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] How does the behavior of compare-pids change when run inside of the 3000contain2.sh produced container?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] How does the behavior of compare-pids change when run inside of the 3000contain2.sh produced container?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Change line 47 of [[Operating_Systems_2026F:_Tutorial_7#newgetpid_module|newgetpid.c]] so that it calls  task_tgid_nr() instead. How does this change impact the behaivor of compare-pids? Why?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Change line 47 of [[Operating_Systems_2026F:_Tutorial_7#newgetpid_module|newgetpid.c]] so that it calls  task_tgid_nr() instead. How does this change impact the behaivor of compare-pids? Why?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Modify newgetpid.c so it outputs both the ouput of task_tgid_nr() and task_tgid_vnr(). Make sure the output labels them with what they actually are (rather than the name of the functions that produced the values).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Modify newgetpid.c so it outputs both the ouput of task_tgid_nr() and task_tgid_vnr(). Make sure the output labels them with what they actually are (rather than the name of the functions that produced the values)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Explain your changes&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Does the root user inside 3000contain2.sh&amp;#039;s container have the same privileges as the root user outside of the container? How can you verify that these privileges are the same or are different? Present a test that verifies your conclusion.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Does the root user inside 3000contain2.sh&amp;#039;s container have the same privileges as the root user outside of the container? How can you verify that these privileges are the same or are different? Present a test that verifies your conclusion.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Fri, 04 Dec 2026 19:40:50 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F:_Assignment_4</comments>
		</item>
		<item>
			<title>Operating Systems 2026F Lecture 21</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_21&amp;diff=25292&amp;oldid=0</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_21&amp;diff=25292&amp;oldid=0</guid>
			<description>&lt;p&gt;Created page with &amp;quot;==Video==  Video from the lectures given on December 3rd and 4th, 2026 are now available: * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec21a-20261203.mp4 Lecture 21A] * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec21b-20261204.mp4 Lecture 21B]&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Video==&lt;br /&gt;
&lt;br /&gt;
Video from the lectures given on December 3rd and 4th, 2026 are now available:&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec21a-20261203.mp4 Lecture 21A]&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec21b-20261204.mp4 Lecture 21B]&lt;/div&gt;</description>
			<pubDate>Fri, 04 Dec 2026 18:58:10 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F_Lecture_21</comments>
		</item>
		<item>
			<title>Operating Systems 2026F Lecture 20</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_20&amp;diff=25291&amp;oldid=0</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_20&amp;diff=25291&amp;oldid=0</guid>
			<description>&lt;p&gt;Created page with &amp;quot;==Video==  Video from the lectures given on December 1st and 2nd, 2026 are now available: * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec20a-20261201.mp4 Lecture 20A] * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec20b-20261202.mp4 Lecture 20B]  ==Notes==  ===Lecture 20A===  &amp;lt;pre&amp;gt; Lecture 20A -----------  - don&amp;#039;t panic if you did badly    - you can make it up on the final exam!   - hypothesis: you&amp;#039;re rely...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Video==&lt;br /&gt;
&lt;br /&gt;
Video from the lectures given on December 1st and 2nd, 2026 are now available:&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec20a-20261201.mp4 Lecture 20A]&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec20b-20261202.mp4 Lecture 20B]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
===Lecture 20A===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lecture 20A&lt;br /&gt;
-----------&lt;br /&gt;
 - don&amp;#039;t panic if you did badly&lt;br /&gt;
   - you can make it up on the final exam!&lt;br /&gt;
&lt;br /&gt;
 - hypothesis: you&amp;#039;re relying on AI too much&lt;br /&gt;
&lt;br /&gt;
 - if you are learning arithmetic, can you use a&lt;br /&gt;
   calculator for every problem? No!&lt;br /&gt;
&lt;br /&gt;
 - how do you build your mental models? by solving problems&lt;br /&gt;
   - on your own!&lt;br /&gt;
 - you can only get help after you&amp;#039;ve struggled for a bit&lt;br /&gt;
   if you want to learn&lt;br /&gt;
&lt;br /&gt;
 - When you&amp;#039;re studying, you have to seek out what you don&amp;#039;t&lt;br /&gt;
   understand&lt;br /&gt;
     - there aren&amp;#039;t that many concepts in this class&lt;br /&gt;
     - but all the concepts connect together&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lecture 20B===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lecture 20B&lt;br /&gt;
-----------&lt;br /&gt;
&lt;br /&gt;
 - many of you didn&amp;#039;t do well&lt;br /&gt;
   - different pattern from previous years...&lt;br /&gt;
     better assignment grades, worse midterm grades&lt;br /&gt;
  - likely because of AI&lt;br /&gt;
 - you need to learn beyond the answers&lt;br /&gt;
  - HOW you get the answers&lt;br /&gt;
&lt;br /&gt;
 - look back at the original tutorials&lt;br /&gt;
   - see if you can work out the answers without AI&lt;br /&gt;
   - see what questions you have, and whether your&lt;br /&gt;
     answers are right (relative to experiments, NOT&lt;br /&gt;
     asking AI!)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</description>
			<pubDate>Thu, 03 Dec 2026 20:36:26 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F_Lecture_20</comments>
		</item>
		<item>
			<title>Operating Systems 2026F: Assignment 4</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_4&amp;diff=25290&amp;oldid=25280</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_4&amp;diff=25290&amp;oldid=25280</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:22, 3 December 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;This assignment is not yet finalized.&#039;&#039;&#039;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit the answers to the following questions via Brightspace by December 7, 2026. There are 20 points in 8 questions.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit the answers to the following questions via Brightspace by December 7, 2026. There are 20 points in 8 questions.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Thu, 03 Dec 2026 20:22:14 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F:_Assignment_4</comments>
		</item>
		<item>
			<title>Operating Systems 2026F: Assignment 3</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_3&amp;diff=25289&amp;oldid=25268</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_3&amp;diff=25289&amp;oldid=25268</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:38, 3 December 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l477&quot;&gt;Line 477:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 477:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Solutions==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[https://homeostasis.scs.carleton.ca/~soma/os-2026f/solutions/comp3000-2026f-a3-sol.txt Assignment 3 Solutions]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Thu, 03 Dec 2026 19:38:27 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F:_Assignment_3</comments>
		</item>
		<item>
			<title>Operating Systems (Fall 2026)</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_(Fall_2026)&amp;diff=25288&amp;oldid=25244</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_(Fall_2026)&amp;diff=25288&amp;oldid=25244</guid>
			<description>&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Tutorials&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:18, 1 December 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-multi&quot; lang=&quot;en&quot;&gt;(One intermediate revision by the same user not shown)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l130&quot;&gt;Line 130:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 130:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;p&amp;gt;&#039;&#039;&#039;Midterm Exam (in class)&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;p&amp;gt;&#039;&#039;&#039;Midterm Exam (in class)&#039;&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;Solutions: [https://homeostasis.scs.carleton.ca/~soma/os-2026f/solutions/comp3000-midterm-2026f-sol.pdf Main], [https://homeostasis.scs.carleton.ca/~soma/os-2026f/solutions/comp3000-midterm-deferred-2026f-sol.pdf Deferred]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l341&quot;&gt;Line 341:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 341:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;tr&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;tr&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;p&amp;gt;Nov. 24&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;p&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt;&amp;lt;del&lt;/ins&gt;&amp;gt;Nov. 24&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/del&amp;gt; Dec. 4&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l351&quot;&gt;Line 351:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 351:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;tr&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;tr&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;p&amp;gt;Dec. 1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;p&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt;&amp;lt;del&lt;/ins&gt;&amp;gt;Dec. 1&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/del&amp;gt; Dec. 4&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 01 Dec 2026 21:18:32 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_(Fall_2026)</comments>
		</item>
		<item>
			<title>Operating Systems 2026F Lecture 19</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_19&amp;diff=25286&amp;oldid=25282</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_19&amp;diff=25286&amp;oldid=25282</guid>
			<description>&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Lecture 19B&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;a href=&quot;https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_19&amp;amp;diff=25286&amp;amp;oldid=25282&quot;&gt;Show changes&lt;/a&gt;</description>
			<pubDate>Fri, 27 Nov 2026 16:53:35 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F_Lecture_19</comments>
		</item>
		<item>
			<title>Operating Systems 2026F Lecture 18</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_18&amp;diff=25284&amp;oldid=25281</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_18&amp;diff=25284&amp;oldid=25281</guid>
			<description>&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Lecture 18B&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;a href=&quot;https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_18&amp;amp;diff=25284&amp;amp;oldid=25281&quot;&gt;Show changes&lt;/a&gt;</description>
			<pubDate>Fri, 27 Nov 2026 16:52:42 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F_Lecture_18</comments>
		</item>
		<item>
			<title>Operating Systems 2026F Lecture 19</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_19&amp;diff=25282&amp;oldid=0</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_19&amp;diff=25282&amp;oldid=0</guid>
			<description>&lt;p&gt;Created page with &amp;quot;==Video==  Video from the lectures given on November 26th and 27th, 2026 are now available: * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec19a-20261126.mp4 Lecture 19A] * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec19b-20261127.mp4 Lecture 19B]  ==Notes==  ===Lecture 19A===  &amp;lt;pre&amp;gt; &amp;lt;/pre&amp;gt;  ===Lecture 19B===  &amp;lt;pre&amp;gt; &amp;lt;/pre&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Video==&lt;br /&gt;
&lt;br /&gt;
Video from the lectures given on November 26th and 27th, 2026 are now available:&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec19a-20261126.mp4 Lecture 19A]&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec19b-20261127.mp4 Lecture 19B]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
===Lecture 19A===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lecture 19B===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 27 Nov 2026 16:50:10 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F_Lecture_19</comments>
		</item>
		<item>
			<title>Operating Systems 2026F Lecture 18</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_18&amp;diff=25281&amp;oldid=0</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_18&amp;diff=25281&amp;oldid=0</guid>
			<description>&lt;p&gt;Created page with &amp;quot;==Video==  Video from the lectures given on November 24th and 25th, 2026 are now available: * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec18a-20261124.mp4 Lecture 18A] * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec18b-20261125.mp4 Lecture 18B]  ==Notes==  ===Lecture 18A===  &amp;lt;pre&amp;gt; &amp;lt;/pre&amp;gt;  ===Lecture 18B===  &amp;lt;pre&amp;gt; &amp;lt;/pre&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Video==&lt;br /&gt;
&lt;br /&gt;
Video from the lectures given on November 24th and 25th, 2026 are now available:&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec18a-20261124.mp4 Lecture 18A]&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec18b-20261125.mp4 Lecture 18B]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
===Lecture 18A===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lecture 18B===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 27 Nov 2026 16:49:27 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F_Lecture_18</comments>
		</item>
		<item>
			<title>Operating Systems 2026F: Assignment 4</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_4&amp;diff=25280&amp;oldid=25277</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_4&amp;diff=25280&amp;oldid=25277</guid>
			<description>&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Questions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:02, 24 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-multi&quot; lang=&quot;en&quot;&gt;(2 intermediate revisions by the same user not shown)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;This assignment is not yet finalized.&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;This assignment is not yet finalized.&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit the answers to the following questions via Brightspace by December 7, 2026. There are 20 points in &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;?? &lt;/del&gt;questions.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit the answers to the following questions via Brightspace by December 7, 2026. There are 20 points in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;8 &lt;/ins&gt;questions.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Submit your answers as a plain text file following [https://homeostasis.scs.carleton.ca/~soma/os-2026f/templates/comp3000-a4-template.txt this template].  Name your answer file &amp;quot;comp3000-a4-&amp;lt;username&amp;gt;.txt&amp;quot; (where username is your MyCarletonOne username).  Please make sure to use your correct student ID number otherwise your grades may not be properly recorded.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Submit your answers as a plain text file following [https://homeostasis.scs.carleton.ca/~soma/os-2026f/templates/comp3000-a4-template.txt this template].  Name your answer file &amp;quot;comp3000-a4-&amp;lt;username&amp;gt;.txt&amp;quot; (where username is your MyCarletonOne username).  Please make sure to use your correct student ID number otherwise your grades may not be properly recorded.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Questions==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Questions==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;How large of a file can you create &lt;/del&gt;in &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the container produced after running &lt;/del&gt;3000contain2.sh? &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;How does &lt;/del&gt;this &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;compare to the size of &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;file you can create &lt;/del&gt;with [[Operating_Systems_2026F:_Tutorial_8#3000contain.sh|3000contain.sh]] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;from Tutorial 8? Why&lt;/del&gt;?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Can hard links be used to make files available &lt;/ins&gt;in 3000contain2.sh&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;s container&lt;/ins&gt;? &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;What about symbolic links? Is &lt;/ins&gt;this the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;same as &lt;/ins&gt;with [[Operating_Systems_2026F:_Tutorial_8#3000contain.sh|3000contain.sh]]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;s container&lt;/ins&gt;? &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Demonstrate with a simple experiment. Explain.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Can hard links be used to make files available in &lt;/del&gt;3000contain2.sh&#039;s &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;container&lt;/del&gt;? What &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;about symbolic links&lt;/del&gt;? &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Demonstrate with a simple experiment. Explain.  &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Change &lt;/ins&gt;3000contain2.sh &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;so that it uses busybox&lt;/ins&gt;&#039;s &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;internal shell rather than bash. How can this change allow 3000contain2.sh to be simplified yet still work&lt;/ins&gt;? What &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;key functionality has been lost by this simplification&lt;/ins&gt;?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Create a small test program &amp;lt;tt&amp;gt;compare-pids.c&amp;lt;/tt&amp;gt; that compares the PID produced from getpid() and the value returned by /dev/newgetpid from [[Operating_Systems_2026F:_Tutorial_7#newgetpid_module|Tutorial 7]]. It should take no command line inputs and should output &amp;quot;getpid: ??, newgetpid: ??&amp;quot; where the ?? are the PID values gotten from the two sources. Your answer should be the source code of your new program.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Create a small test program &amp;lt;tt&amp;gt;compare-pids.c&amp;lt;/tt&amp;gt; that compares the PID produced from getpid() and the value returned by /dev/newgetpid from [[Operating_Systems_2026F:_Tutorial_7#newgetpid_module|Tutorial 7]]. It should take no command line inputs and should output &amp;quot;getpid: ??, newgetpid: ??&amp;quot; where the ?? are the PID values gotten from the two sources. Your answer should be the source code of your new program.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] How can you install the compare-pids binary into 3000contain2.sh&amp;#039;s container so it is there when it first runs? How can you install it after the container is already running?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] How can you install the compare-pids binary into 3000contain2.sh&amp;#039;s container so it is there when it first runs? How can you install it after the container is already running?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] How does the behavior of compare-pids change when run inside of the 3000contain2.sh produced container?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] How does the behavior of compare-pids change when run inside of the 3000contain2.sh produced container?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Change line 47 of newgetpid.c so that it calls  task_tgid_nr() instead. How does this change impact the behaivor of compare-pids? Why?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Change line 47 of &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Operating_Systems_2026F:_Tutorial_7#newgetpid_module|&lt;/ins&gt;newgetpid.c&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;so that it calls  task_tgid_nr() instead. How does this change impact the behaivor of compare-pids? Why?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Modify newgetpid.c so it outputs both the ouput of task_tgid_nr() and task_tgid_vnr(). Make sure the output labels them with what they actually are (rather than the name of the functions that produced the values).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Modify newgetpid.c so it outputs both the ouput of task_tgid_nr() and task_tgid_vnr(). Make sure the output labels them with what they actually are (rather than the name of the functions that produced the values).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Does the root user inside 3000contain2.sh&amp;#039;s container have the same privileges as the root user outside of the container? How can you verify that these privileges are the same or are different? Present a test that verifies your conclusion.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Does the root user inside 3000contain2.sh&amp;#039;s container have the same privileges as the root user outside of the container? How can you verify that these privileges are the same or are different? Present a test that verifies your conclusion.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 24 Nov 2026 16:02:45 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F:_Assignment_4</comments>
		</item>
		<item>
			<title>Operating Systems 2026F: Assignment 4</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_4&amp;diff=25277&amp;oldid=0</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_4&amp;diff=25277&amp;oldid=0</guid>
			<description>&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;This assignment is not yet finalized.&amp;#039;&amp;#039;&amp;#039;  Please submit the answers to the following questions via Brightspace by December 7, 2026. There are 20 points in ?? questions.  Submit your answers as a plain text file following [https://homeostasis.scs.carleton.ca/~soma/os-2026f/templates/comp3000-a4-template.txt this template].  Name your answer file &amp;quot;comp3000-a4-&amp;lt;username&amp;gt;.txt&amp;quot; (where username is your MyCarletonOne username).  Please make sure to use your correct student I...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;This assignment is not yet finalized.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Please submit the answers to the following questions via Brightspace by December 7, 2026. There are 20 points in ?? questions.&lt;br /&gt;
&lt;br /&gt;
Submit your answers as a plain text file following [https://homeostasis.scs.carleton.ca/~soma/os-2026f/templates/comp3000-a4-template.txt this template].  Name your answer file &amp;quot;comp3000-a4-&amp;lt;username&amp;gt;.txt&amp;quot; (where username is your MyCarletonOne username).  Please make sure to use your correct student ID number otherwise your grades may not be properly recorded.&lt;br /&gt;
&lt;br /&gt;
Your answers will be parsed by a script in order to help with grading so please preserve the format of the template.  No other formats will be accepted.&lt;br /&gt;
&lt;br /&gt;
Note that the file should be a UNIX text file, not a Windows text file (so LF line endings).  See the [https://en.wikipedia.org/wiki/Text_file Wikipedia page on text files] to learn more.  Most modern text editors can convert between different types of text files.  Alternately, install the program &amp;lt;tt&amp;gt;dos2unix&amp;lt;/tt&amp;gt; on the VM to convert.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;You may use [https://homeostasis.scs.carleton.ca/~soma/os-2026f/validators/a4-validator.html this validator page] to make sure your answer file is properly named and formatted.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Don&amp;#039;t forget to include what outside resources you used to complete each of your answers, including other students, man pages, and web resources. You do not need to list help from the instructor, TA, or information found in the textbook.&lt;br /&gt;
&lt;br /&gt;
==Questions==&lt;br /&gt;
&lt;br /&gt;
# [3] How large of a file can you create in the container produced after running 3000contain2.sh? How does this compare to the size of the file you can create with [[Operating_Systems_2026F:_Tutorial_8#3000contain.sh|3000contain.sh]] from Tutorial 8? Why?&lt;br /&gt;
# [3] Can hard links be used to make files available in 3000contain2.sh&amp;#039;s container? What about symbolic links? Demonstrate with a simple experiment. Explain.  &lt;br /&gt;
# [2] Create a small test program &amp;lt;tt&amp;gt;compare-pids.c&amp;lt;/tt&amp;gt; that compares the PID produced from getpid() and the value returned by /dev/newgetpid from [[Operating_Systems_2026F:_Tutorial_7#newgetpid_module|Tutorial 7]]. It should take no command line inputs and should output &amp;quot;getpid: ??, newgetpid: ??&amp;quot; where the ?? are the PID values gotten from the two sources. Your answer should be the source code of your new program.&lt;br /&gt;
# [2] How can you install the compare-pids binary into 3000contain2.sh&amp;#039;s container so it is there when it first runs? How can you install it after the container is already running?&lt;br /&gt;
# [2] How does the behavior of compare-pids change when run inside of the 3000contain2.sh produced container?&lt;br /&gt;
# [2] Change line 47 of newgetpid.c so that it calls  task_tgid_nr() instead. How does this change impact the behaivor of compare-pids? Why?&lt;br /&gt;
# [3] Modify newgetpid.c so it outputs both the ouput of task_tgid_nr() and task_tgid_vnr(). Make sure the output labels them with what they actually are (rather than the name of the functions that produced the values).&lt;br /&gt;
# [3] Does the root user inside 3000contain2.sh&amp;#039;s container have the same privileges as the root user outside of the container? How can you verify that these privileges are the same or are different? Present a test that verifies your conclusion.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&lt;br /&gt;
===[https://homeostasis.scs.carleton.ca/~soma/os-2026f/code/3000contain2.sh 3000contain2.sh]===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sh&amp;quot; line&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# 3000contain2.sh&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
MP=&amp;#039;3000fs2&amp;#039;&lt;br /&gt;
IMAGE=&amp;#039;3000fsimage2&amp;#039;&lt;br /&gt;
BLOCKS=60000&lt;br /&gt;
SETUP=&amp;#039;3000setupfs2.sh&amp;#039;&lt;br /&gt;
&lt;br /&gt;
if [ $UID != 0 ]; then&lt;br /&gt;
    echo &amp;quot;Please run this script as root.&amp;quot;&lt;br /&gt;
    exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
mkdir $MP&lt;br /&gt;
cd $MP&lt;br /&gt;
&lt;br /&gt;
mkdir bin sbin usr usr/bin usr/sbin etc proc sys dev root home lib \&lt;br /&gt;
      usr/lib  lib64 tmp var var/tmp var/lib run usr/share usr/share/terminfo&lt;br /&gt;
cp /usr/bin/busybox usr/bin&lt;br /&gt;
&lt;br /&gt;
cp /bin/bash bin&lt;br /&gt;
cp /lib64/ld-linux-x86-64.so.2 lib64&lt;br /&gt;
cp /sbin/ldconfig* sbin&lt;br /&gt;
cp -a /etc/ld.so.conf* etc&lt;br /&gt;
&lt;br /&gt;
cp `ldd /bin/bash | awk &amp;#039;{print $3}&amp;#039;` lib&lt;br /&gt;
&lt;br /&gt;
chmod 1777 tmp var/tmp&lt;br /&gt;
&lt;br /&gt;
cp -a /etc/passwd /etc/shadow /etc/group /etc/gshadow etc&lt;br /&gt;
&lt;br /&gt;
TERMDIR=${TERM:0:1}&lt;br /&gt;
mkdir usr/share/terminfo/$TERMDIR&lt;br /&gt;
cp /usr/share/terminfo/$TERMDIR/$TERM usr/share/terminfo/$TERMDIR/$TERM&lt;br /&gt;
&lt;br /&gt;
echo &amp;#039;#!/usr/bin/busybox sh&amp;#039; &amp;gt; $SETUP&lt;br /&gt;
echo &amp;#039;/usr/bin/busybox --install&amp;#039; &amp;gt;&amp;gt; $SETUP&lt;br /&gt;
echo &amp;#039;/sbin/ldconfig&amp;#039; &amp;gt;&amp;gt; $SETUP&lt;br /&gt;
echo &amp;#039;mount -t devtmpfs udev /dev&amp;#039; &amp;gt;&amp;gt; $SETUP&lt;br /&gt;
&lt;br /&gt;
chmod 0755 $SETUP&lt;br /&gt;
chroot . /$SETUP&lt;br /&gt;
rm $SETUP&lt;br /&gt;
unshare --root=. -f -p --mount-proc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</description>
			<pubDate>Tue, 24 Nov 2026 15:56:10 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F:_Assignment_4</comments>
		</item>
		<item>
			<title>Operating Systems 2026F: Tutorial 8</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Tutorial_8&amp;diff=25276&amp;oldid=25271</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Tutorial_8&amp;diff=25276&amp;oldid=25271</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:14, 24 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-multi&quot; lang=&quot;en&quot;&gt;(4 intermediate revisions by the same user not shown)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Make sure you backup any important files in your VM, as you could erase everything.  You&amp;#039;ve been warned!&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Make sure you backup any important files in your VM, as you could erase everything.  You&amp;#039;ve been warned!&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Download and inspect [https://homeostasis.scs.carleton.ca/~soma/os-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2022f&lt;/del&gt;/code/3000contain.sh 3000contain.sh].  Is there a risk of data loss from running this script?  Specifically, how much of a risk is there from each rm command?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Download and inspect [https://homeostasis.scs.carleton.ca/~soma/os-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2026f&lt;/ins&gt;/code/3000contain.sh 3000contain.sh].  Is there a risk of data loss from running this script?  Specifically, how much of a risk is there from each rm command?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [1] Run 3000contain.sh.  After 3000contain.sh runs, you&amp;#039;re put in a new shell where / is now the contents of 3000fs, and you can&amp;#039;t see anything that wasn&amp;#039;t in 3000fs.  Exiting the shell gets you back to where you were.  After exiting, how do you get back to the contained environment?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [1] Run 3000contain.sh.  After 3000contain.sh runs, you&amp;#039;re put in a new shell where / is now the contents of 3000fs, and you can&amp;#039;t see anything that wasn&amp;#039;t in 3000fs.  Exiting the shell gets you back to where you were.  After exiting, how do you get back to the contained environment?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] How does the output of ps differ when run inside the contained environment versus outside?  What part of 3000contain.sh caused this difference?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] How does the output of ps differ when run inside the contained environment versus outside?  What part of 3000contain.sh caused this difference?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] What does line &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;58 &lt;/del&gt;of 3000contain.sh do?  When does it run?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] What does line &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;59 &lt;/ins&gt;of 3000contain.sh do?  When does it run?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] What is the largest file we can create in the confined environment (once initialized by 3000contain.sh)?  What determines this limit?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] What is the largest file we can create in the confined environment (once initialized by 3000contain.sh)?  What determines this limit?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] If you fill up the disk in the host system, how will it change the amount of data that can be stored in the confined environment?  Does this depend on what has been previously stored in the confined environment?  (Note you may want to test by creating files by dd&amp;#039;ing from /dev/urandom, e.g. &amp;lt;tt&amp;gt;dd if=/dev/urandom of=foo bs=4096 count=1000&amp;lt;/tt&amp;gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] If you fill up the disk in the host system, how will it change the amount of data that can be stored in the confined environment?  Does this depend on what has been previously stored in the confined environment?  (Note you may want to test by creating files by dd&amp;#039;ing from /dev/urandom, e.g. &amp;lt;tt&amp;gt;dd if=/dev/urandom of=foo bs=4096 count=1000&amp;lt;/tt&amp;gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Code==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Code==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===[https://homeostasis.scs.carleton.ca/~soma/os-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2022f&lt;/del&gt;/code/3000contain.sh 3000contain.sh]===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===[https://homeostasis.scs.carleton.ca/~soma/os-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2026f&lt;/ins&gt;/code/3000contain.sh 3000contain.sh]===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;sh&amp;quot; line&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;sh&amp;quot; line&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# based on 3000makefs.sh from 2021F&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# based on 3000makefs.sh from 2021F&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# fixed for Ubuntu 26.04, November 21, 2026&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l60&quot;&gt;Line 60:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mkdir bin sbin usr usr/bin usr/sbin etc proc sys dev root home lib \&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mkdir bin sbin usr usr/bin usr/sbin etc proc sys dev root home lib \&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       usr/lib  lib64 tmp var var/tmp var/lib run &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;lib&lt;/del&gt;/terminfo&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       usr/lib  lib64 tmp var var/tmp var/lib run &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;usr/share usr/share&lt;/ins&gt;/terminfo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;cp /usr/bin/busybox usr/bin&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;cp /usr/bin/busybox usr/bin&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l75&quot;&gt;Line 75:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TERMDIR=${TERM:0:1}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TERMDIR=${TERM:0:1}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mkdir &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;lib&lt;/del&gt;/terminfo/$TERMDIR&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mkdir &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;usr/share&lt;/ins&gt;/terminfo/$TERMDIR&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;cp /&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;lib&lt;/del&gt;/terminfo/$TERMDIR/$TERM &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;lib&lt;/del&gt;/terminfo/$TERMDIR/$TERM&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;cp /&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;usr/share&lt;/ins&gt;/terminfo/$TERMDIR/$TERM &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;usr/share&lt;/ins&gt;/terminfo/$TERMDIR/$TERM&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;echo &amp;#039;#!/usr/bin/busybox sh&amp;#039; &amp;gt; $SETUP&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;echo &amp;#039;#!/usr/bin/busybox sh&amp;#039; &amp;gt; $SETUP&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 24 Nov 2026 15:14:33 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F:_Tutorial_8</comments>
		</item>
		<item>
			<title>Operating Systems 2026F: Tutorial 8</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Tutorial_8&amp;diff=25271&amp;oldid=0</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Tutorial_8&amp;diff=25271&amp;oldid=0</guid>
			<description>&lt;p&gt;Created page with &amp;quot;In this tutorial you&amp;#039;ll be working with a simple containerized environment.  We&amp;#039;ll create a filesystem, mount it, populate it, and then change the current root directory to it so we can use this environment as if it was a completely separate system.  This mini system is rather bare bones initially and many things won&amp;#039;t work.  You&amp;#039;ll be studying how it is put together and figuring out how to add functionality.  &amp;#039;&amp;#039;You should understand what every line in 3000contain.sh doe...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In this tutorial you&amp;#039;ll be working with a simple containerized environment.  We&amp;#039;ll create a filesystem, mount it, populate it, and then change the current root directory to it so we can use this environment as if it was a completely separate system.&lt;br /&gt;
&lt;br /&gt;
This mini system is rather bare bones initially and many things won&amp;#039;t work.  You&amp;#039;ll be studying how it is put together and figuring out how to add functionality.  &amp;#039;&amp;#039;You should understand what every line in 3000contain.sh does, even if there isn&amp;#039;t a specific question about it.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Tasks/Questions==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Make sure you backup any important files in your VM, as you could erase everything.  You&amp;#039;ve been warned!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# [2] Download and inspect [https://homeostasis.scs.carleton.ca/~soma/os-2022f/code/3000contain.sh 3000contain.sh].  Is there a risk of data loss from running this script?  Specifically, how much of a risk is there from each rm command?&lt;br /&gt;
# [1] Run 3000contain.sh.  After 3000contain.sh runs, you&amp;#039;re put in a new shell where / is now the contents of 3000fs, and you can&amp;#039;t see anything that wasn&amp;#039;t in 3000fs.  Exiting the shell gets you back to where you were.  After exiting, how do you get back to the contained environment?&lt;br /&gt;
# [2] How does the output of ps differ when run inside the contained environment versus outside?  What part of 3000contain.sh caused this difference?&lt;br /&gt;
# [2] What does line 58 of 3000contain.sh do?  When does it run?&lt;br /&gt;
# [2] What is the largest file we can create in the confined environment (once initialized by 3000contain.sh)?  What determines this limit?&lt;br /&gt;
# [2] If you fill up the disk in the host system, how will it change the amount of data that can be stored in the confined environment?  Does this depend on what has been previously stored in the confined environment?  (Note you may want to test by creating files by dd&amp;#039;ing from /dev/urandom, e.g. &amp;lt;tt&amp;gt;dd if=/dev/urandom of=foo bs=4096 count=1000&amp;lt;/tt&amp;gt;)&lt;br /&gt;
# [2] Many files in our confined environment refer to the same inode.  What was the original name of this inode?  How do you know?&lt;br /&gt;
# [1] Copy and make nano work in the new environment.  What files did you have to copy to get it to work?  How did you know to copy them?&lt;br /&gt;
# [2] How can you add a user &amp;quot;contain&amp;quot; to 3000fs using useradd (and nothing else)?  Make sure the user also is in a new group &amp;quot;contain&amp;quot; and has a home directory /home/contain (in 3000fs).  This user should only be visible when you&amp;#039;re in the confined environment.  How did you confirm that your answer works?&lt;br /&gt;
# [2] How can you mount the main root filesystem inside of the confined environment?  What part of 3000contain.sh made this possible?&lt;br /&gt;
# [2] How can you change the hostname in the confined environment to &amp;quot;mycontainer&amp;quot; without changing the hostname of the host system?  (Note that the &amp;quot;hostname&amp;quot; command can be used to check and set a system&amp;#039;s hostname.)  Is this change persistent, i.e., will the hostname stay the same when you exit and re-enter the confined environment?&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&lt;br /&gt;
===[https://homeostasis.scs.carleton.ca/~soma/os-2022f/code/3000contain.sh 3000contain.sh]===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sh&amp;quot; line&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# 3000contain.sh&lt;br /&gt;
#&lt;br /&gt;
# setup a simple containerized environment in a new&lt;br /&gt;
# filesystem (created in a local file)&lt;br /&gt;
#&lt;br /&gt;
# Anil Somayaji, November 11, 2022&lt;br /&gt;
# School of Computer Science, Carleton University&lt;br /&gt;
# &lt;br /&gt;
# based on 3000makefs.sh from 2021F&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
MP=&amp;#039;3000fs&amp;#039;&lt;br /&gt;
IMAGE=&amp;#039;3000fsimage&amp;#039;&lt;br /&gt;
BLOCKS=60000&lt;br /&gt;
SETUP=&amp;#039;3000setupfs.sh&amp;#039;&lt;br /&gt;
&lt;br /&gt;
if [ $UID != 0 ]; then&lt;br /&gt;
    echo &amp;quot;Please run this script as root.&amp;quot;&lt;br /&gt;
    exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
rm -f $IMAGE&lt;br /&gt;
dd if=/dev/zero of=$IMAGE bs=8192 count=$BLOCKS&lt;br /&gt;
mkfs.ext4 $IMAGE&lt;br /&gt;
&lt;br /&gt;
if [ -d $MP ]; then&lt;br /&gt;
    umount -q $MP/dev&lt;br /&gt;
    umount -q $MP&lt;br /&gt;
    rm -rf $MP&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
mkdir $MP&lt;br /&gt;
mount $IMAGE $MP&lt;br /&gt;
cd $MP&lt;br /&gt;
&lt;br /&gt;
mkdir bin sbin usr usr/bin usr/sbin etc proc sys dev root home lib \&lt;br /&gt;
      usr/lib  lib64 tmp var var/tmp var/lib run lib/terminfo&lt;br /&gt;
cp /usr/bin/busybox usr/bin&lt;br /&gt;
&lt;br /&gt;
cp /bin/bash bin&lt;br /&gt;
cp /lib64/ld-linux-x86-64.so.2 lib64&lt;br /&gt;
cp /sbin/ldconfig* sbin&lt;br /&gt;
cp -a /etc/ld.so.conf* etc&lt;br /&gt;
&lt;br /&gt;
cp `ldd /bin/bash | awk &amp;#039;{print $3}&amp;#039;` lib&lt;br /&gt;
&lt;br /&gt;
chmod 1777 tmp var/tmp&lt;br /&gt;
&lt;br /&gt;
cp -a /etc/passwd /etc/shadow /etc/group /etc/gshadow etc&lt;br /&gt;
&lt;br /&gt;
TERMDIR=${TERM:0:1}&lt;br /&gt;
mkdir lib/terminfo/$TERMDIR&lt;br /&gt;
cp /lib/terminfo/$TERMDIR/$TERM lib/terminfo/$TERMDIR/$TERM&lt;br /&gt;
&lt;br /&gt;
echo &amp;#039;#!/usr/bin/busybox sh&amp;#039; &amp;gt; $SETUP&lt;br /&gt;
echo &amp;#039;/usr/bin/busybox --install&amp;#039; &amp;gt;&amp;gt; $SETUP&lt;br /&gt;
echo &amp;#039;/sbin/ldconfig&amp;#039; &amp;gt;&amp;gt; $SETUP&lt;br /&gt;
echo &amp;#039;mount -t devtmpfs udev /dev&amp;#039; &amp;gt;&amp;gt; $SETUP&lt;br /&gt;
&lt;br /&gt;
chmod 0755 $SETUP&lt;br /&gt;
chroot . /$SETUP&lt;br /&gt;
rm $SETUP&lt;br /&gt;
unshare --root=. -f -p --mount-proc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Solutions==&lt;br /&gt;
&lt;br /&gt;
This tutorial is based on an old assignment. You can &lt;br /&gt;
[https://homeostasis.scs.carleton.ca/~soma/os-2022f/solutions/a3-sol.txt look at the solutions.]&lt;/div&gt;</description>
			<pubDate>Sat, 21 Nov 2026 15:14:56 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F:_Tutorial_8</comments>
		</item>
		<item>
			<title>Operating Systems 2026F Lecture 17</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_17&amp;diff=25270&amp;oldid=0</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_17&amp;diff=25270&amp;oldid=0</guid>
			<description>&lt;p&gt;Created page with &amp;quot;==Video==  Video from the lectures given on November 19th and 20th, 2026 are now available: * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec17a-20261119.mp4 Lecture 17A] * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec17b-20261120.mp4 Lecture 17B]  ==Notes==  ===Lecture 17A===  &amp;lt;pre&amp;gt; Lecture 17A -----------  Scheduling  The problem: what should the kernel run next?  - after a system call  - after handling...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Video==&lt;br /&gt;
&lt;br /&gt;
Video from the lectures given on November 19th and 20th, 2026 are now available:&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec17a-20261119.mp4 Lecture 17A]&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec17b-20261120.mp4 Lecture 17B]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
===Lecture 17A===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lecture 17A&lt;br /&gt;
-----------&lt;br /&gt;
&lt;br /&gt;
Scheduling&lt;br /&gt;
&lt;br /&gt;
The problem: what should the kernel run next?&lt;br /&gt;
 - after a system call&lt;br /&gt;
 - after handling an interrupt&lt;br /&gt;
   (request from hardware)&lt;br /&gt;
&lt;br /&gt;
Running processes are like a todo list for the kernel&lt;br /&gt;
 - who deserves attention next&lt;br /&gt;
 - which will cause problems if it doesn&amp;#039;t get attention (resources) next?&lt;br /&gt;
&lt;br /&gt;
So it is just managing a queue&lt;br /&gt;
 - but where we are only giving limited resources at any time&lt;br /&gt;
   to a process or thread&lt;br /&gt;
&lt;br /&gt;
Why limited resources? because preemption&lt;br /&gt;
 - everyone only gets a slice (like 1/100 of a second or less)&lt;br /&gt;
 - most programs will need more than one time slice to finish their work&lt;br /&gt;
&lt;br /&gt;
With standard queues, there are a few strategies&lt;br /&gt;
 - first come, first serve (FCFS)&lt;br /&gt;
   - normally each &amp;quot;served&amp;quot; runs to completion&lt;br /&gt;
   - not useful for interactive systems, but&lt;br /&gt;
     (may be) good for batch systems&lt;br /&gt;
 - order by length of job (process)&lt;br /&gt;
   - shortest job first&lt;br /&gt;
   - longest job first&lt;br /&gt;
&lt;br /&gt;
But once you add preemption, everyone can take turns&lt;br /&gt;
 - round robin!&lt;br /&gt;
&lt;br /&gt;
Round robin is fair, but not necessarily what we want&lt;br /&gt;
 - because not all processes are equally important&lt;br /&gt;
   - interactive tasks  &amp;lt;-- someone is paying attention&lt;br /&gt;
   - &amp;quot;important&amp;quot; for whatever other reason&lt;br /&gt;
&lt;br /&gt;
How to add priorities to round robin?&lt;br /&gt;
 - multiple queues!&lt;br /&gt;
 - do round robin between queues in some way&lt;br /&gt;
&lt;br /&gt;
But allocating resources is a hard problem, no fixed perfect solution&lt;br /&gt;
 - depends on the nature of the workload&lt;br /&gt;
&lt;br /&gt;
One wrinkle that is very important nowadays: power usage&lt;br /&gt;
 - how do you schedule taking into account power usage?&lt;br /&gt;
 - especially when some cores take more power than others?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Smartphones typically deal with scheduling in a bit of a brutal way&lt;br /&gt;
 - background tasks are killed quickly&lt;br /&gt;
&lt;br /&gt;
Why do we care about background tasks on a phone?&lt;br /&gt;
 - notifications (push)&lt;br /&gt;
 - updates (pull)&lt;br /&gt;
&lt;br /&gt;
To minimize background traffic, Google and Apple maintain a dedicated notification service&lt;br /&gt;
 - you have to go through it to get messages to a device when an app isn&amp;#039;t running&lt;br /&gt;
&lt;br /&gt;
Priorities and process states&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Processes can be in various states:&lt;br /&gt;
&lt;br /&gt;
R = running (can have as many processes in R as you have cores)&lt;br /&gt;
&lt;br /&gt;
Virtual memory&lt;br /&gt;
--------------&lt;br /&gt;
&lt;br /&gt;
Any computer has a fixed amount of RAM&lt;br /&gt;
 - caches are managed automatically by hardware (generally)&lt;br /&gt;
 - but main memory is managed by the operating system&lt;br /&gt;
&lt;br /&gt;
RAM is fast for random access and is volatile&lt;br /&gt;
 - loses its contents when power is lost&lt;br /&gt;
&lt;br /&gt;
For PCs in the 1980&amp;#039;s (and larger computers in the 1960&amp;#039;s), one program would run at a time, and it had complete control over the computer&lt;br /&gt;
 - so naturally it got all of the RAM and CPU time&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To share the CPU, we just need interrupts&lt;br /&gt;
 - some way to kick the currently running program off the CPU&lt;br /&gt;
&lt;br /&gt;
But how can we share RAM?&lt;br /&gt;
 - it is a dynamic resource management problem&lt;br /&gt;
&lt;br /&gt;
What mechanisms can we use to make sharing easier?&lt;br /&gt;
 - could allocate ranges of memory to different programs&lt;br /&gt;
   (this is segmented memory)&lt;br /&gt;
&lt;br /&gt;
Managing memory with variable-sized chunks, though, is very painful&lt;br /&gt;
 - because you get fragmentation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
....................   &amp;lt;-- 20 chunks&lt;br /&gt;
AAAAABBBBBCCCCCDDDDD   &amp;lt;- 4 programs, each get 5&lt;br /&gt;
AAAAA.....CCCCC.....   &amp;lt;- B and D terminate&lt;br /&gt;
&lt;br /&gt;
Now let&amp;#039;s say A wants 6 more chunks of memory&lt;br /&gt;
We have 10 chunks available, but there&amp;#039;s no room for six all together!&lt;br /&gt;
And you want memory all together for data structures, generally&lt;br /&gt;
&lt;br /&gt;
So how to avoid fragmentation? Add a level of indirection!&lt;br /&gt;
&lt;br /&gt;
Programs don&amp;#039;t use physical addresses (addresses that refer to real RAM)&lt;br /&gt;
 - instead, they use virtual addresses (which are made up)&lt;br /&gt;
&lt;br /&gt;
At runtime, every virtual address must be translated to a physical address before being used&lt;br /&gt;
&lt;br /&gt;
So CPUs support a data structure known as a page table&lt;br /&gt;
 - maps virtual to physical addresses&lt;br /&gt;
 - referenced in principle on every memory lookup, but&lt;br /&gt;
   results are cached (in the TLB)&lt;br /&gt;
&lt;br /&gt;
What is being cached in the TLB is page table entries (PTEs)&lt;br /&gt;
&lt;br /&gt;
What&amp;#039;s a page table entry?&lt;br /&gt;
&lt;br /&gt;
(why 32 bits? because the math is nicer!)&lt;br /&gt;
&lt;br /&gt;
32bit virtual address -&amp;gt; 32 bit physical address&lt;br /&gt;
&lt;br /&gt;
But not efficient to map on a byte to byte level. So let&amp;#039;s map chunks. How big? let&amp;#039;s say 4K&lt;br /&gt;
&lt;br /&gt;
Mapping 4K -&amp;gt; 4K chunks means&lt;br /&gt;
 - part of the address refers to the chunk&lt;br /&gt;
 - part refers to the portion of the chunk&lt;br /&gt;
&lt;br /&gt;
The chunk is a page.&lt;br /&gt;
 - number of the chunk: page number&lt;br /&gt;
 - portion of the chunk: page offset&lt;br /&gt;
&lt;br /&gt;
Virtual address&lt;br /&gt;
&lt;br /&gt;
.......... .......... ............  &amp;lt;-- 32 bits&lt;br /&gt;
 10 bits     10 bits    12 bits&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Physical address&lt;br /&gt;
&lt;br /&gt;
.................... ............  &amp;lt;-- 32 bits&lt;br /&gt;
  page #              page offset&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So we divide all of physical RAM into 4K pages&lt;br /&gt;
And we do the same for process virtual memory&lt;br /&gt;
&lt;br /&gt;
32 bit addresses =&amp;gt; max 4G RAM&lt;br /&gt;
&lt;br /&gt;
The offset portion of the virtual address gets copied to the physical address&lt;br /&gt;
  - last 12 bits are easy!&lt;br /&gt;
&lt;br /&gt;
But how do I map 20 bits to 20 bits?&lt;br /&gt;
&lt;br /&gt;
An array would be very big&lt;br /&gt;
&lt;br /&gt;
But what about a fat tree?&lt;br /&gt;
&lt;br /&gt;
4096 / 4 = 1024&lt;br /&gt;
&lt;br /&gt;
So I have 1024 PTEs I can fit into a single page&lt;br /&gt;
 - yes I have 12 extra bits for each but we need those&lt;br /&gt;
   for metadata&lt;br /&gt;
&lt;br /&gt;
How many bits do I need to represent 1024 possibilities?&lt;br /&gt;
  =&amp;gt; 10 bits!&lt;br /&gt;
&lt;br /&gt;
So your page table is a two level tree, with a 1024 fan out&lt;br /&gt;
 - very wide tree!&lt;br /&gt;
&lt;br /&gt;
And those each point to up to 1024 2nd-level nodes&lt;br /&gt;
&lt;br /&gt;
And those point to actual pages with data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lecture 17B===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lecture 17B&lt;br /&gt;
-----------&lt;br /&gt;
&lt;br /&gt;
Scheduling&lt;br /&gt;
 - what process to run next?&lt;br /&gt;
&lt;br /&gt;
Scheduling happens when we exit the kernel&lt;br /&gt;
&lt;br /&gt;
We can enter the kernel in a few ways, but we only leave through the scheduler&lt;br /&gt;
&lt;br /&gt;
Entry from&lt;br /&gt;
 - system calls&lt;br /&gt;
 - hardware interrupts&lt;br /&gt;
   (many kinds)&lt;br /&gt;
 - or, just running always (kernel threads)&lt;br /&gt;
&lt;br /&gt;
When we exit the kernel, have to decide what the next task is to run (process or thread)&lt;br /&gt;
&lt;br /&gt;
Which do we run?&lt;br /&gt;
 - could be the last process/thread that was running, but&lt;br /&gt;
   what if there wasn&amp;#039;t one?&lt;br /&gt;
 - also, how would other tasks get a chance to run?&lt;br /&gt;
&lt;br /&gt;
Scheduling algorithms&lt;br /&gt;
 - MANY approaches&lt;br /&gt;
 - in the real world, algorithms are supplemented by heuristics,&lt;br /&gt;
   gets very complex&lt;br /&gt;
&lt;br /&gt;
Scheduling gets hard because we have to consider multiple dimensions when determining what to next run&lt;br /&gt;
 - fairness&lt;br /&gt;
 - responsiveness (to users)&lt;br /&gt;
 - power consumption&lt;br /&gt;
&lt;br /&gt;
power consumption gets really weird when you have heterogenous cores&lt;br /&gt;
&lt;br /&gt;
Scheduling on smartphones gets really annoying&lt;br /&gt;
 - and smartphones have made compromises to make scheduling easier&lt;br /&gt;
&lt;br /&gt;
In particular, background tasks are built to be disposable on mobile operating systems&lt;br /&gt;
 - the kernel will kill and restart them arbitrarily&lt;br /&gt;
 - so if you want a long-lived background process, you gotta do something different (generally, use an OS-provided service)&lt;br /&gt;
 - key example: notifications&lt;br /&gt;
&lt;br /&gt;
Why can&amp;#039;t you just have a process run in the background on a smartphone to listen to network messages?&lt;br /&gt;
 - because that consumes more battery life&lt;br /&gt;
 - and the OS won&amp;#039;t let it!&lt;br /&gt;
&lt;br /&gt;
First, consider job-oriented scheduling&lt;br /&gt;
 - where each process is a &amp;quot;job&amp;quot; that runs to completion&lt;br /&gt;
 - no preemption&lt;br /&gt;
&lt;br /&gt;
Approaches:&lt;br /&gt;
 - first come, first serve&lt;br /&gt;
 - shortest job first&lt;br /&gt;
 - longest job first&lt;br /&gt;
 - priority&lt;br /&gt;
&lt;br /&gt;
Preemptive scheduling uses these ideas, but in the context of multitasking&lt;br /&gt;
&lt;br /&gt;
first come first serve =&amp;gt; round robin&lt;br /&gt;
 - think of everyone in a circle&lt;br /&gt;
 - everyone gets their turn&lt;br /&gt;
&lt;br /&gt;
How do I do priorities?&lt;br /&gt;
 - have multiple queues!&lt;br /&gt;
&lt;br /&gt;
But who sets the priorities?&lt;br /&gt;
 - static (by the user/admin)&lt;br /&gt;
 - dynamic (based on circumstances, history)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Virtual memory&lt;br /&gt;
&lt;br /&gt;
Problem: how do we manage RAM that is shared between running programs?&lt;br /&gt;
 - OS is responsible for main memory (DRAM)&lt;br /&gt;
 - hardware handles caches (SRAM), e.g. L1, L2, L3&lt;br /&gt;
&lt;br /&gt;
How to organize memory to make it easier to manage?&lt;br /&gt;
 - need to divide into chunks&lt;br /&gt;
&lt;br /&gt;
Should those chunks be fixed or variable sized?&lt;br /&gt;
 - variable is useful for having semantically-related memory together, this is what we get with segments (see ELF)&lt;br /&gt;
 - but leads to greater memory fragmentation&lt;br /&gt;
&lt;br /&gt;
....................&lt;br /&gt;
AAAAABBBBBCCCCCDDDDD&lt;br /&gt;
&lt;br /&gt;
AAAAA.....CCCCC.....&lt;br /&gt;
&lt;br /&gt;
What if a new process E wants 7 units of memory?&lt;br /&gt;
 - can we allocate it contiguously? NO&lt;br /&gt;
&lt;br /&gt;
Virtual memory is a solution to the contiguous memory problem&lt;br /&gt;
 - everyone can have as much contiguous memory as they want!&lt;br /&gt;
&lt;br /&gt;
The price: every memory access must be translated&lt;br /&gt;
  (from a virtual address to a physical address)&lt;br /&gt;
&lt;br /&gt;
How can we make it fast? by caching it!&lt;br /&gt;
 - the cache is called the TLB&lt;br /&gt;
&lt;br /&gt;
But what is the TLB caching? page table entries (PTEs)&lt;br /&gt;
&lt;br /&gt;
So what&amp;#039;s the page table?&lt;br /&gt;
&lt;br /&gt;
First, what&amp;#039;s a page?&lt;br /&gt;
 - fixed sized chunk of memory, typically 4K or 8K&lt;br /&gt;
&lt;br /&gt;
So all memory allocation is in terms of pages&lt;br /&gt;
 - what if we don&amp;#039;t need a full page? rest of it gets wasted&lt;br /&gt;
   (internal fragmentation)&lt;br /&gt;
&lt;br /&gt;
When you have a page that is a power of two size,&lt;br /&gt;
virtual-&amp;gt;physical memory translation gets split into two parts&lt;br /&gt;
&lt;br /&gt;
* page numbers must be mapped from virtual to physical&lt;br /&gt;
* page offsets can just be copied&lt;br /&gt;
&lt;br /&gt;
32 bit virtual address =&amp;gt; 32 bit physical address&lt;br /&gt;
&lt;br /&gt;
How many bits for an offset into a 4K page? 12, leaving 20 for the page number&lt;br /&gt;
&lt;br /&gt;
How many 32 bit values can we fit into a page?&lt;br /&gt;
 - 1024&lt;br /&gt;
 &lt;br /&gt;
We want 32 bit page table entries&lt;br /&gt;
 - 20 bits for the page number (top bits of a pointer)&lt;br /&gt;
 - 12 bits for metadata&lt;br /&gt;
&lt;br /&gt;
So then we just need to access two pages of page table entries to get to the real page&lt;br /&gt;
&lt;br /&gt;
So the 32 bit page table is a tree with three levels&lt;br /&gt;
 - page directory, page tables, and the actual pages&lt;br /&gt;
 - with the fan out of the nodes being 1024&lt;br /&gt;
&lt;br /&gt;
So now how do we manage those pages?&lt;br /&gt;
 - what do we need to keep in memory?&lt;br /&gt;
&lt;br /&gt;
Trick: we can be lazy!&lt;br /&gt;
&lt;br /&gt;
Consider mmap&lt;br /&gt;
 - when a file is mapped into memory, we don&amp;#039;t have to load&lt;br /&gt;
   it all at once: we can load on demand!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 20 Nov 2026 21:07:47 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F_Lecture_17</comments>
		</item>
		<item>
			<title>Operating Systems 2026F Lecture 16</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_16&amp;diff=25269&amp;oldid=0</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F_Lecture_16&amp;diff=25269&amp;oldid=0</guid>
			<description>&lt;p&gt;Created page with &amp;quot;==Video==  Video from the lectures given on November 17th and 18th, 2026 are now available: * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec16a-20261117.mp4 Lecture 16A] * [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec16b-20261118.mp4 Lecture 16B]  ==Notes==  ===Lecture 16A===  &amp;lt;pre&amp;gt; Lecture 16A -----------  How does the kernel start running?  - we want to run it early  - but, how can we get it loaded when...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Video==&lt;br /&gt;
&lt;br /&gt;
Video from the lectures given on November 17th and 18th, 2026 are now available:&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec16a-20261117.mp4 Lecture 16A]&lt;br /&gt;
* [https://homeostasis.scs.carleton.ca/~soma/os-2026f/lectures/comp3000-2026f-lec16b-20261118.mp4 Lecture 16B]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
===Lecture 16A===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lecture 16A&lt;br /&gt;
-----------&lt;br /&gt;
&lt;br /&gt;
How does the kernel start running?&lt;br /&gt;
 - we want to run it early&lt;br /&gt;
 - but, how can we get it loaded when the kernel&lt;br /&gt;
   is the part of the system that understands how to load&lt;br /&gt;
   data into memory (along with lots of other things?)&lt;br /&gt;
&lt;br /&gt;
You need a boot loader&lt;br /&gt;
 - code that is initially loaded by your computer in order to load an operating system&lt;br /&gt;
 - could be the operating system itself, but generally isn&amp;#039;t for multiple reasons&lt;br /&gt;
&lt;br /&gt;
So how can that initial code be loaded?&lt;br /&gt;
&lt;br /&gt;
The original IBM PC design would just load the first sector of&lt;br /&gt;
the boot disk, treat that code as 16-bit 8086 code. And that was it&lt;br /&gt;
 - that code could make use of other code that was built into the&lt;br /&gt;
   system, the BIOS (basic input output system)&lt;br /&gt;
This wasn&amp;#039;t much code, like less than 512 bytes&lt;br /&gt;
&lt;br /&gt;
Note that 16 bit code stuck around until systems were 32 and even 64 bit systems!&lt;br /&gt;
&lt;br /&gt;
The old PC BIOS was replaced with EFI&lt;br /&gt;
 - have a full OS built into the computer that could be used&lt;br /&gt;
   to load an operating system&lt;br /&gt;
 - &amp;quot;extensible firmware interface&amp;quot; - so the code could be extended&lt;br /&gt;
&lt;br /&gt;
After EFI loads, it has to load a boot loader&lt;br /&gt;
 - for most Linux systems, that is GRUB&lt;br /&gt;
&lt;br /&gt;
GRUB then loads the linux kernel + the inital ram disk (initrd)&lt;br /&gt;
 - initrd has modules needed to mount the real root filesystem&lt;br /&gt;
&lt;br /&gt;
Then the linux kernel runs, loads the modules it needs, mounts the root filesystem, and runs init.&lt;br /&gt;
 - init then loads the rest of userspace&lt;br /&gt;
&lt;br /&gt;
task is a concept that more comes from Mach&lt;br /&gt;
 - represents kernel-level procesess &amp;amp; threads&lt;br /&gt;
 - it has all the data associated with a running process or thread&lt;br /&gt;
   - pid, parent pid&lt;br /&gt;
   - address space&lt;br /&gt;
   - and LOTS of other things&lt;br /&gt;
&lt;br /&gt;
One task struct is always special: current&lt;br /&gt;
 - the task that made the system call that is being processed&lt;br /&gt;
 - (so if the kernel isn&amp;#039;t processing a system call,&lt;br /&gt;
    current isn&amp;#039;t defined)&lt;br /&gt;
&lt;br /&gt;
Scheduling&lt;br /&gt;
 - what task should a CPU core run next?&lt;br /&gt;
&lt;br /&gt;
Basic flow of control&lt;br /&gt;
&lt;br /&gt;
 user space runs -&amp;gt; kernel runs -&amp;gt; user space runs&lt;br /&gt;
&lt;br /&gt;
we switch from userspace to the kernel because&lt;br /&gt;
 - a hardware event happened (timer, network packet, etc)&lt;br /&gt;
 - user space made a system call&lt;br /&gt;
&lt;br /&gt;
When a system call happens&lt;br /&gt;
 - system call dispatcher runs&lt;br /&gt;
 - system call-specific code runs&lt;br /&gt;
 - scheduler runs&lt;br /&gt;
   - chooses user space task to run next&lt;br /&gt;
&lt;br /&gt;
How to choose?&lt;br /&gt;
 - first come first serve?&lt;br /&gt;
   - but are all tasks equally important?&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lecture 16B===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lecture 16B&lt;br /&gt;
-----------&lt;br /&gt;
&lt;br /&gt;
How does a computer start up? And where does the kernel fit in?&lt;br /&gt;
&lt;br /&gt;
The kernel contains the software needed to run applications. But what software does the kernel need?&lt;br /&gt;
 - has to be loaded from storage (HD, ssd, network, etc)&lt;br /&gt;
&lt;br /&gt;
Key insight: there&amp;#039;s software built into your computer&lt;br /&gt;
 - older PCs: BIOS&lt;br /&gt;
 - current PCs: EFI&lt;br /&gt;
 - other platforms: varies&lt;br /&gt;
&lt;br /&gt;
So the infrastructure provided for booting an operating system varies. Today we&amp;#039;ll talk about PCs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BIOS ruled PCs for decades&lt;br /&gt;
 - first PCs were in the early 1980&amp;#039;s&lt;br /&gt;
 - EFI was only started in 2006&lt;br /&gt;
&lt;br /&gt;
BIOS - basic input output system&lt;br /&gt;
 - code built in to a PC&lt;br /&gt;
 - enough code to load a bit of code from disk&lt;br /&gt;
&lt;br /&gt;
how little? less than 512 bytes!&lt;br /&gt;
 - size of a sector (block)&lt;br /&gt;
&lt;br /&gt;
In that block there should be an 8086 program that loads the rest of the system&lt;br /&gt;
 - can rely on the BIOS&lt;br /&gt;
 - but still not much there&lt;br /&gt;
&lt;br /&gt;
The boot sequence on a classic PC has multiple stages&lt;br /&gt;
 - each one implementing more functionality so more code&lt;br /&gt;
   can be loaded&lt;br /&gt;
&lt;br /&gt;
So what you put in those 512 bytes is the first part of the boot loader&lt;br /&gt;
 - software designed to load operating systems&lt;br /&gt;
&lt;br /&gt;
EFI is the replacement for the PC BIOS&lt;br /&gt;
 - extensible firmware interface&lt;br /&gt;
 - an entire OS that loads before your OS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What is trusted computing?&lt;br /&gt;
 - set of mechanisms designed to ensure running code is &amp;quot;trusted&amp;quot;&lt;br /&gt;
 - here, trusted means the code has been signed by an entity that is trusted&lt;br /&gt;
   - code can still have bugs, vulnerabilities, or could even be malware if the trusted party makes a mistake or is compromised&lt;br /&gt;
&lt;br /&gt;
So, the code should all have been digitally signed by the right keys&lt;br /&gt;
&lt;br /&gt;
To have a system be trusted, all code has to be properly signed, from the bootloader on up!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</description>
			<pubDate>Wed, 18 Nov 2026 15:15:10 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F_Lecture_16</comments>
		</item>
		<item>
			<title>Operating Systems 2026F: Assignment 3</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_3&amp;diff=25268&amp;oldid=25243</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Assignment_3&amp;diff=25268&amp;oldid=25243</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:53, 14 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;This assignment is not yet finalized.&#039;&#039;&#039;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit the answers to the following questions via Brightspace by November 23, 2026. There are 20 points in 7 questions.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit the answers to the following questions via Brightspace by November 23, 2026. There are 20 points in 7 questions.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Sat, 14 Nov 2026 17:53:35 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F:_Assignment_3</comments>
		</item>
		<item>
			<title>Operating Systems 2026F: Tutorial 7</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Tutorial_7&amp;diff=25267&amp;oldid=25252</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Tutorial_7&amp;diff=25267&amp;oldid=25252</guid>
			<description>&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;D: Getting process information from a module&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:51, 14 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-multi&quot; lang=&quot;en&quot;&gt;(13 intermediate revisions by the same user not shown)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l48&quot;&gt;Line 48:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the first tutorial where you are seeing kernel code.  By the end of tutorial you should be able to run all of the code here and be able to make trivial modifications.  Lectures later this week will go through this code in detail.  Learning as much as you can about the code now will help you prepare for the upcoming lectures.  In particular, try to figure out what is different about this code.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the first tutorial where you are seeing kernel code.  By the end of tutorial you should be able to run all of the code here and be able to make trivial modifications.  Lectures later this week will go through this code in detail.  Learning as much as you can about the code now will help you prepare for the upcoming lectures.  In particular, try to figure out what is different about this code.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===Build prerequisites===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If your Ubuntu install seems to be missing programs needed to build and run kernels, install the build-essential metapackage:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If your Ubuntu install seems to be missing programs needed to build and run kernels, install the build-essential metapackage:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   sudo apt install build-essential&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   sudo apt install build-essential&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(This command is safe even if you already have the right packages installed.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(This command is safe even if you already have the right packages installed.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===Updating your system===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;If you cannot build or install a module,&amp;#039;&amp;#039;&amp;#039; your system may be out of date. Do the following to update and reboot your machine:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;If you cannot build or install a module,&amp;#039;&amp;#039;&amp;#039; your system may be out of date. Do the following to update and reboot your machine:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l69&quot;&gt;Line 69:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 73:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When upgrading you may get a message when upgrading grub about which boot device to use.  Select /dev/vda or /dev/sda - don’t select the devices that end with a number.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When upgrading you may get a message when upgrading grub about which boot device to use.  Select /dev/vda or /dev/sda - don’t select the devices that end with a number.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If your build failed before doing this and again after doing a &quot;make clean&quot;, delete the downloaded code and unpack the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;zip file &lt;/del&gt;again.  (The build process generates hidden files which can mess up later builds.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If your build failed before doing this and again after doing a &quot;make clean&quot;, delete the downloaded code and unpack the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;archive &lt;/ins&gt;again.  (The build process generates hidden files which can mess up later builds.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===Secure Boot===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If everything works &#039;&#039;&#039;but you get an error when you try to insert the module&#039;&#039;&#039; that says something like &quot;Key was rejected by service&quot; or (in the kernel log) &quot;Loading of unsigned modules is rejected&quot;, your system is running with secure boot. You&#039;ll either need to disable secure boot (not recommended), figure out how to sign modules, or use a different system. The class VMs are not running with secure boot, so you you can load kernel modules without errors there. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Learning Objectives==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Learning Objectives==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l83&quot;&gt;Line 83:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 91:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==B: A simple kernel module==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==B: A simple kernel module==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Download the source for [https://homeostasis.scs.carleton.ca/~soma/os-2026f/code/simple.tar.gz this simple module], unpack, and build it by typing &quot;make&quot;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Use &amp;lt;&lt;/del&gt;code&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt;wget&amp;lt;&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&amp;gt; to download the &lt;/del&gt;tar.gz &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;file, unpack with &amp;lt;tt&amp;gt;&lt;/del&gt;tar xzf simple.tar.gz&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/tt&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Download the source for [https://homeostasis.scs.carleton.ca/~soma/os-2026f/code/simple.tar.gz this simple module], unpack, and build it by typing &quot;make&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     wget https://homeostasis&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;scs.carleton.ca/~soma/os-2026f/&lt;/ins&gt;code/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;simple.&lt;/ins&gt;tar.gz&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     &lt;/ins&gt;tar xzf simple.tar.gz&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     cd simple&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     make&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Install the module using &amp;quot;sudo insmod simple.ko&amp;quot;.  The hello message is recorded in the kernel logs.  How do you view the kernel logs?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Install the module using &amp;quot;sudo insmod simple.ko&amp;quot;.  The hello message is recorded in the kernel logs.  How do you view the kernel logs?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check to see that the module has been loaded.  How do you do this?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check to see that the module has been loaded.  How do you do this?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Remove the module from the kernel.  What did you do?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Remove the module from the kernel.  What did you do?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# Open a second terminal and run &amp;lt;tt&amp;gt;trace &#039;p::printk printf &quot;%s&quot; arg1&#039;&amp;lt;/tt&amp;gt;. Repeat the above three questions and note the output in the terminal running &amp;lt;tt&amp;gt;trace&amp;lt;/tt&amp;gt;. What does this &amp;lt;tt&amp;gt;trace&amp;lt;/tt&amp;gt; command do?&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==C: A character device kernel module==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==C: A character device kernel module==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l95&quot;&gt;Line 95:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 106:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# What happens when you &amp;quot;cat&amp;quot; the device /dev/ones?  How can you limit the output?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# What happens when you &amp;quot;cat&amp;quot; the device /dev/ones?  How can you limit the output?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# How can you modify your module to generate a kernel &amp;quot;Oops&amp;quot; as reported in the kernel logs or outright crash the kernel?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# How can you modify your module to generate a kernel &amp;quot;Oops&amp;quot; as reported in the kernel logs or outright crash the kernel?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# Before inserting your module, run &amp;lt;tt&amp;gt;trace -K &#039;p::__register_chrdev&#039;&amp;lt;/tt&amp;gt; in another terminal to print the kernel stack trace for &amp;lt;tt&amp;gt;__register_chrdev&amp;lt;/tt&amp;gt;. Insert your module and examine the output from your &amp;lt;tt&amp;gt;trace&amp;lt;/tt&amp;gt; command. Did you expect all those function calls? What do you think they do?&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;!--&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# While running &amp;lt;tt&amp;gt;cat /dev/ones&amp;lt;/tt&amp;gt; in one terminal, run &amp;lt;tt&amp;gt;trace -p `pidof cat` -K -M 10 &#039;__put_user_1 printf &quot;writing %c to 0x%lx&quot; arg1, arg2&#039;&amp;lt;/tt&amp;gt; to trace the first 10 calls to &amp;lt;tt&amp;gt;put_user&amp;lt;/tt&amp;gt; and print the kernel stack trace, along with the userspace address that &amp;lt;tt&amp;gt;/dev/ones&amp;lt;/tt&amp;gt; is writing to. Consider the following:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#* What kernel functions are being called that result in &amp;lt;tt&amp;gt;put_user&amp;lt;/tt&amp;gt; being invoked?&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#* How much is the userspace address incrementing on each &amp;lt;tt&amp;gt;put_user&amp;lt;/tt&amp;gt; call? Does this increase make sense? Why?&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;--&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==D: Getting process information from a module==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==D: Getting process information from a module==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l106&quot;&gt;Line 106:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To answer these questions on newgetpid.c, you&amp;#039;ll need to refer to the [https://elixir.bootlin.com/linux/v7.0/source Linux kernel source] (version 7.0, the one used by Ubuntu 26.04), particularly [https://elixir.bootlin.com/linux/v7.0/source/kernel/sys.c kernel/sys.c].  (These are links to a cross-referenced version of the Linux kernel source, a key resource for understanding and developing kernel code.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To answer these questions on newgetpid.c, you&amp;#039;ll need to refer to the [https://elixir.bootlin.com/linux/v7.0/source Linux kernel source] (version 7.0, the one used by Ubuntu 26.04), particularly [https://elixir.bootlin.com/linux/v7.0/source/kernel/sys.c kernel/sys.c].  (These are links to a cross-referenced version of the Linux kernel source, a key resource for understanding and developing kernel code.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Download the source [https://homeostasis.scs.carleton.ca/~soma/os-2026f/code/newgetpid.tar.gz newgetpid&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.c&lt;/del&gt;].  Build and run it as before.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Download the source &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;of the &lt;/ins&gt;[https://homeostasis.scs.carleton.ca/~soma/os-2026f/code/newgetpid.tar.gz newgetpid &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;module&lt;/ins&gt;].  Build and run it as before. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(Note that you can&#039;t have both the ones and newgetpid modules loaded at the same time, so run &quot;sudo rmmod ones&quot; before doing this part.)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# How does the code of newgetpid.c compare to the implementation of the [https://elixir.bootlin.com/linux/v7.0/source/kernel/sys.c#L999 getpid system call]?&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# What type is &amp;quot;current&amp;quot;?  How can you figure this out?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# What type is &amp;quot;current&amp;quot;?  How can you figure this out?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Modify newgetpid.c so that it creates a device file /dev/describe rather than /dev/newgetpid.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Modify newgetpid.c so that it creates a device file /dev/describe rather than /dev/newgetpid.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Make /dev/describe output the calling process&#039;s parent ID (ppid), user ID (uid), group ID (gid), effective user ID (euid), and effective group ID (egid).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Make /dev/describe output the calling process&#039;s parent ID (ppid), user ID (uid), group ID (gid), effective user ID (euid), and effective group ID (egid). &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(Hint: Look at the corresponding system calls in kernel/sys.c.)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;(Advanced)&amp;#039;&amp;#039;&amp;#039; Modify /dev/describe so that if you write a process ID to it, it will output the information on the provided process.  To make this work, you&amp;#039;ll need to:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;(Advanced)&amp;#039;&amp;#039;&amp;#039; Modify /dev/describe so that if you write a process ID to it, it will output the information on the provided process.  To make this work, you&amp;#039;ll need to:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Add a write method by adding a write operation to the file operations struct. Write operations have the same prototype as read operations, except the buffer is marked constant (because it shouldn&amp;#039;t be modified).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Add a write method by adding a write operation to the file operations struct. Write operations have the same prototype as read operations, except the buffer is marked constant (because it shouldn&amp;#039;t be modified).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Convert the written text to an integer and store in a global variable (to the module).  Check out [https://elixir.bootlin.com/linux/v7.0/ident/kstrtoint_from_user kstrtoint_from_user()].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Convert the written text to an integer and store in a global variable (to the module).  Check out [https://elixir.bootlin.com/linux/v7.0/ident/kstrtoint_from_user kstrtoint_from_user()].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Find the right task struct.  See the implementation of the [https://elixir.bootlin.com/linux/v7.0/source/kernel/signal.c#&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L3677 &lt;/del&gt;kill system call], and how it [https://elixir.bootlin.com/linux/v7.0/source/kernel/signal.c#&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L1465 &lt;/del&gt;looks up the pid struct] and then [https://elixir.bootlin.com/linux/v7.0/source/kernel/signal.c#&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L1303 &lt;/del&gt;gets the right task struct using that pid struct].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Find the right task struct.  See the implementation of the [https://elixir.bootlin.com/linux/v7.0/source/kernel/signal.c#&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L3947 &lt;/ins&gt;kill system call], and how it [https://elixir.bootlin.com/linux/v7.0/source/kernel/signal.c#&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L1480 &lt;/ins&gt;looks up the pid struct &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(in the right namespace)&lt;/ins&gt;] and then [https://elixir.bootlin.com/linux/v7.0/source/kernel/signal.c#&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L1457 &lt;/ins&gt;gets the right task struct using that pid struct].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* After returning info on the selected process, further calls should return info on the current process.  You can do this by setting the global process ID to 0 and checking this value, using the current task if it is zero.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* After returning info on the selected process, further calls should return info on the current process.  You can do this by setting the global process ID to 0 and checking this value, using the current task if it is zero.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Code=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Code=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==[https://homeostasis.scs.carleton.ca/~soma/os-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2021f&lt;/del&gt;/code/simple.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;zip &lt;/del&gt;simple module]==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==[https://homeostasis.scs.carleton.ca/~soma/os-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2026f&lt;/ins&gt;/code/simple.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tar.gz &lt;/ins&gt;simple module]==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot; line&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot; line&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Sat, 14 Nov 2026 17:51:45 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F:_Tutorial_7</comments>
		</item>
		<item>
			<title>Operating Systems 2022F: Tutorial 8</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2022F:_Tutorial_8&amp;diff=25253&amp;oldid=24132</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2022F:_Tutorial_8&amp;diff=25253&amp;oldid=24132</guid>
			<description>&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;D: Getting process information from a module&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:38, 14 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l100&quot;&gt;Line 100:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 100:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Add a write method by adding a write operation to the file operations struct. Write operations have the same prototype as read operations, except the buffer is marked constant (because it shouldn&amp;#039;t be modified).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Add a write method by adding a write operation to the file operations struct. Write operations have the same prototype as read operations, except the buffer is marked constant (because it shouldn&amp;#039;t be modified).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Convert the written text to an integer and store in a global variable (to the module).  Check out [https://elixir.bootlin.com/linux/v5.11/ident/kstrtoint_from_user kstrtoint_from_user()].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Convert the written text to an integer and store in a global variable (to the module).  Check out [https://elixir.bootlin.com/linux/v5.11/ident/kstrtoint_from_user kstrtoint_from_user()].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Find the right task struct.  See the implementation of the [https://elixir.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;free-electrons&lt;/del&gt;.com/linux/v5.11/source/kernel/signal.c#L3677 kill system call], and how it [https://elixir.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;free-electrons&lt;/del&gt;.com/linux/v5.11/source/kernel/signal.c#L1465 looks up the pid struct] and then [https://elixir.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;free-electrons&lt;/del&gt;.com/linux/v4.4.83/source/kernel/signal.c#L1303 gets the right task struct using that pid struct].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* Find the right task struct.  See the implementation of the [https://elixir.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bootlin&lt;/ins&gt;.com/linux/v5.11/source/kernel/signal.c#L3677 kill system call], and how it [https://elixir.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bootlin&lt;/ins&gt;.com/linux/v5.11/source/kernel/signal.c#L1465 looks up the pid struct] and then [https://elixir.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bootlin&lt;/ins&gt;.com/linux/v4.4.83/source/kernel/signal.c#L1303 gets the right task struct using that pid struct].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* After returning info on the selected process, further calls should return info on the current process.  You can do this by setting the global process ID to 0 and checking this value, using the current task if it is zero.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* After returning info on the selected process, further calls should return info on the current process.  You can do this by setting the global process ID to 0 and checking this value, using the current task if it is zero.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Sat, 14 Nov 2026 16:38:53 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2022F:_Tutorial_8</comments>
		</item>
		<item>
			<title>Operating Systems 2026F: Tutorial 7</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Tutorial_7&amp;diff=25252&amp;oldid=25245</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Tutorial_7&amp;diff=25252&amp;oldid=25245</guid>
			<description>&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;D: Getting process information from a module&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;a href=&quot;https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Tutorial_7&amp;amp;diff=25252&amp;amp;oldid=25245&quot;&gt;Show changes&lt;/a&gt;</description>
			<pubDate>Sat, 14 Nov 2026 16:34:58 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F:_Tutorial_7</comments>
		</item>
		<item>
			<title>Operating Systems 2026F: Tutorial 7</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Tutorial_7&amp;diff=25245&amp;oldid=0</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2026F:_Tutorial_7&amp;diff=25245&amp;oldid=0</guid>
			<description>&lt;p&gt;Created page with &amp;quot;In this tutorial you&amp;#039;ll be learning about special files and how to create one kind of special file, a character device, using Linux kernel modules.  =Special Files=  In this part your goal is to learn how special files are similar and different from regular files.  ==Learning Objectives== * What does a special file represent? * Can you have multiple special files that are somehow &amp;quot;the same&amp;quot;?  What does it mean to &amp;quot;copy&amp;quot; a special file? * What are character devices used f...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In this tutorial you&amp;#039;ll be learning about special files and how to create one kind of special file, a character device, using Linux kernel modules.&lt;br /&gt;
&lt;br /&gt;
=Special Files=&lt;br /&gt;
&lt;br /&gt;
In this part your goal is to learn how special files are similar and different from regular files.&lt;br /&gt;
&lt;br /&gt;
==Learning Objectives==&lt;br /&gt;
* What does a special file represent?&lt;br /&gt;
* Can you have multiple special files that are somehow &amp;quot;the same&amp;quot;?  What does it mean to &amp;quot;copy&amp;quot; a special file?&lt;br /&gt;
* What are character devices used for?  How can you interact with them?&lt;br /&gt;
* What are named pipes?  How can they be used?&lt;br /&gt;
* What kind of device is a tty?  How are tty&amp;#039;s different from regular files?  How are they similar?&lt;br /&gt;
&lt;br /&gt;
==Important Tips==&lt;br /&gt;
&lt;br /&gt;
* There is a chance your VM will crash or your ssh session will become unresponsive when messing with the kernel. To recover, you can reboot your VM from the OpenStack web console.&lt;br /&gt;
* Definitely do not under any circumstances attempt this on your own system. This is your last warning.&lt;br /&gt;
* If you run out of disk space, your kernel logs are probably too big or you have other large files.  Be sure to free disk space using [[Operating Systems: Freeing Disk Space|these instructions]].&lt;br /&gt;
* Remember to recompile &amp;#039;&amp;#039;&amp;#039;and&amp;#039;&amp;#039;&amp;#039; insert your module after making changes.&lt;br /&gt;
* Work incrementally and be prepared for your system to crash.&lt;br /&gt;
* It might be wise to code on your own computer and use scp or sshfs to transfer the files to your VM.&lt;br /&gt;
* https://elixir.bootlin.com/ is a great resource for learning about kernel functions and data structures.&lt;br /&gt;
&lt;br /&gt;
==A: Understanding special files==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Try the following commands as a non-privileged user.  What does each do?  How do the files f1-f5 compare?  How do they compare to /dev/urandom?  Remember you can get output from /dev/urandom using cat or dd.  If you use cat, make sure to pipe it to less!&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:lower-alpha&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;tt&amp;gt;cp /dev/urandom f1&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;tt&amp;gt;cp -a /dev/urandom f2&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;tt&amp;gt;sudo cp -a /dev/urandom f3&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;tt&amp;gt;mknod f4 c 1 9&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;tt&amp;gt;sudo mknod f5 c 1 9&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039; that some commands may run for a long time and may create large files.  If they do, you&amp;#039;ll want to terminate them and delete any files they create (after examining them).&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make named pipes using mknod and mkfifo.  Use them to simulate &amp;lt;tt&amp;gt;ls | wc&amp;lt;/tt&amp;gt; using just the &amp;gt; and &amp;lt; operators.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Make a block device &amp;lt;tt&amp;gt;myroot&amp;lt;/tt&amp;gt; representing your machine&amp;#039;s root filesystem.  Get info on its filesystem using &amp;lt;tt&amp;gt;dumpe2fs myroot&amp;lt;/tt&amp;gt;.  Do you need to be root to do these operations?  (Hint: if you use df to find the device, you may have to follow a symlink to get to the real block device.)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Use mknod to make a copy of your current terminal&amp;#039;s tty.  Examine its characteristics using &amp;lt;tt&amp;gt;stty --file=mytty&amp;lt;/tt&amp;gt;.  Do the same for the original tty.  How can you figure out what your current tty is?  (NOTE: On modern Linux systems the copy often doesn&amp;#039;t behave like the original.  Why do you think this is the case?)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run &amp;lt;tt&amp;gt;stty --help&amp;lt;/tt&amp;gt; to see what you can do with stty.  Try disabling local echo.  How does the shell behave with echo disabled?  How can you restore echo without logging out and back in?&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Linux kernel modules=&lt;br /&gt;
&lt;br /&gt;
In this part of the tutorial you will be building and installing kernel modules.  You will need root access to install kernel modules.&lt;br /&gt;
&lt;br /&gt;
It is &amp;#039;&amp;#039;&amp;#039;highly recommended&amp;#039;&amp;#039;&amp;#039; that you use a comp3000 openstack instance for the exercises below for two reasons.  First, you may have difficulties compiling kernel modules on other systems.  Second, these operations are potentially dangerous and mistakes could &amp;#039;&amp;#039;&amp;#039;destroy all data&amp;#039;&amp;#039;&amp;#039; on the Linux system.  Consider yourself warned!&lt;br /&gt;
&lt;br /&gt;
This is the first tutorial where you are seeing kernel code.  By the end of tutorial you should be able to run all of the code here and be able to make trivial modifications.  Lectures later this week will go through this code in detail.  Learning as much as you can about the code now will help you prepare for the upcoming lectures.  In particular, try to figure out what is different about this code.&lt;br /&gt;
&lt;br /&gt;
If your Ubuntu install seems to be missing programs needed to build and run kernels, install the build-essential metapackage:&lt;br /&gt;
  sudo apt install build-essential&lt;br /&gt;
(This command is safe even if you already have the right packages installed.)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;If you cannot build or install a module,&amp;#039;&amp;#039;&amp;#039; your system may be out of date. Do the following to update and reboot your machine:&lt;br /&gt;
  sudo -i    # become root&lt;br /&gt;
  apt update&lt;br /&gt;
  apt dist-upgrade&lt;br /&gt;
  apt clean&lt;br /&gt;
  apt autoremove&lt;br /&gt;
  snap refresh&lt;br /&gt;
  shutdown -r now&lt;br /&gt;
&lt;br /&gt;
Or, as two commands:&lt;br /&gt;
&lt;br /&gt;
  sudo sh -c &amp;quot;apt update &amp;amp;&amp;amp; apt dist-upgrade &amp;amp;&amp;amp; apt clean &amp;amp;&amp;amp; apt autoremove &amp;amp;&amp;amp; snap refresh&amp;quot;&lt;br /&gt;
  sudo shutdown -r now&lt;br /&gt;
&lt;br /&gt;
When upgrading you may get a message when upgrading grub about which boot device to use.  Select /dev/vda or /dev/sda - don’t select the devices that end with a number.&lt;br /&gt;
&lt;br /&gt;
If your build failed before doing this and again after doing a &amp;quot;make clean&amp;quot;, delete the downloaded code and unpack the zip file again.  (The build process generates hidden files which can mess up later builds.)&lt;br /&gt;
&lt;br /&gt;
==Learning Objectives==&lt;br /&gt;
&lt;br /&gt;
* How do you compile and install kernel modules?  How does this process differ from userspace C programs?&lt;br /&gt;
* How does the source and build process of kernel modules differ from C programs?&lt;br /&gt;
* Understand when module code is and isn&amp;#039;t run.&lt;br /&gt;
* Understand how kernel modules can access and manipulate kernel data structures and call kernel functions.&lt;br /&gt;
* Understand how making system calls from userspace can cause module functions to be called.&lt;br /&gt;
* Understand how character devices can be implemented in a module and thus better understand what a character device is.&lt;br /&gt;
* Understand how processes are represented by task_struct&amp;#039;s in the Linux kernel, what kinds of information is stored in a task struct, and how to access the task_struct of a process that made a system call.&lt;br /&gt;
&lt;br /&gt;
==B: A simple kernel module==&lt;br /&gt;
&lt;br /&gt;
# Download the source for [https://homeostasis.scs.carleton.ca/~soma/os-2021f/code/simple.zip this simple module], unpack, and build it by typing &amp;quot;make&amp;quot;. Use &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; to download the zip file.&lt;br /&gt;
# Install the module using &amp;quot;sudo insmod simple.ko&amp;quot;.  The hello message is recorded in the kernel logs.  How do you view the kernel logs?&lt;br /&gt;
# Check to see that the module has been loaded.  How do you do this?&lt;br /&gt;
# Remove the module from the kernel.  What did you do?&lt;br /&gt;
# Open a second terminal and run &amp;lt;tt&amp;gt;trace &amp;#039;p::printk printf &amp;quot;%s&amp;quot; arg1&amp;#039;&amp;lt;/tt&amp;gt;. Repeat the above three questions and note the output in the terminal running &amp;lt;tt&amp;gt;trace&amp;lt;/tt&amp;gt;. What does this &amp;lt;tt&amp;gt;trace&amp;lt;/tt&amp;gt; command do?&lt;br /&gt;
&lt;br /&gt;
==C: A character device kernel module==&lt;br /&gt;
&lt;br /&gt;
# Download the source for [https://homeostasis.scs.carleton.ca/~soma/os-2021f/code/ones.zip ones], a kernel module implementing a character device that ouputs an unbounded string of &amp;quot;1&amp;quot;&amp;#039;s.  Build, compile, and run it as before.&lt;br /&gt;
# What kernel messages does the module generate?  Does it create any new files (other than /dev/ones)?  If so, where?&lt;br /&gt;
# What happens when you &amp;quot;cat&amp;quot; the device /dev/ones?  How can you limit the output?&lt;br /&gt;
# How can you modify your module to generate a kernel &amp;quot;Oops&amp;quot; as reported in the kernel logs or outright crash the kernel?&lt;br /&gt;
# Before inserting your module, run &amp;lt;tt&amp;gt;trace -K &amp;#039;p::__register_chrdev&amp;#039;&amp;lt;/tt&amp;gt; in another terminal to print the kernel stack trace for &amp;lt;tt&amp;gt;__register_chrdev&amp;lt;/tt&amp;gt;. Insert your module and examine the output from your &amp;lt;tt&amp;gt;trace&amp;lt;/tt&amp;gt; command. Did you expect all those function calls? What do you think they do?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
# While running &amp;lt;tt&amp;gt;cat /dev/ones&amp;lt;/tt&amp;gt; in one terminal, run &amp;lt;tt&amp;gt;trace -p `pidof cat` -K -M 10 &amp;#039;__put_user_1 printf &amp;quot;writing %c to 0x%lx&amp;quot; arg1, arg2&amp;#039;&amp;lt;/tt&amp;gt; to trace the first 10 calls to &amp;lt;tt&amp;gt;put_user&amp;lt;/tt&amp;gt; and print the kernel stack trace, along with the userspace address that &amp;lt;tt&amp;gt;/dev/ones&amp;lt;/tt&amp;gt; is writing to. Consider the following:&lt;br /&gt;
#* What kernel functions are being called that result in &amp;lt;tt&amp;gt;put_user&amp;lt;/tt&amp;gt; being invoked?&lt;br /&gt;
#* How much is the userspace address incrementing on each &amp;lt;tt&amp;gt;put_user&amp;lt;/tt&amp;gt; call? Does this increase make sense? Why?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==D: Getting process information from a module==&lt;br /&gt;
&lt;br /&gt;
To answer these questions on newgetpid.c, you&amp;#039;ll need to refer to the [https://elixir.bootlin.com/linux/latest/source Linux kernel source], particularly [https://elixir.bootlin.com/linux/latest/source/kernel/sys.c kernel/sys.c].  (These are links to a cross-referenced version of the Linux kernel source, a key resource for understanding and developing kernel code.)&lt;br /&gt;
&lt;br /&gt;
# Download the source [https://homeostasis.scs.carleton.ca/~soma/os-2021f/code/newgetpid.zip newgetpid.c].  Build and run it as before.&lt;br /&gt;
# What type is &amp;quot;current&amp;quot;?  How can you figure this out?&lt;br /&gt;
# Modify newgetpid.c so that it creates a device file /dev/describe rather than /dev/newgetpid.&lt;br /&gt;
# Make /dev/describe output the calling process&amp;#039;s parent ID (ppid), user ID (uid), group ID (gid), effective user ID (euid), and effective group ID (egid).&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;(Advanced)&amp;#039;&amp;#039;&amp;#039; Modify /dev/describe so that if you write a process ID to it, it will output the information on the provided process.  To make this work, you&amp;#039;ll need to:&lt;br /&gt;
#* Add a write method by adding a write operation to the file operations struct. Write operations have the same prototype as read operations, except the buffer is marked constant (because it shouldn&amp;#039;t be modified).&lt;br /&gt;
#* Convert the written text to an integer and store in a global variable (to the module).  Check out [https://elixir.bootlin.com/linux/v5.11/ident/kstrtoint_from_user kstrtoint_from_user()].&lt;br /&gt;
#* Find the right task struct.  See the implementation of the [https://elixir.free-electrons.com/linux/v5.11/source/kernel/signal.c#L3677 kill system call], and how it [https://elixir.free-electrons.com/linux/v5.11/source/kernel/signal.c#L1465 looks up the pid struct] and then [https://elixir.free-electrons.com/linux/v4.4.83/source/kernel/signal.c#L1303 gets the right task struct using that pid struct].&lt;br /&gt;
#* After returning info on the selected process, further calls should return info on the current process.  You can do this by setting the global process ID to 0 and checking this value, using the current task if it is zero.&lt;br /&gt;
&lt;br /&gt;
=Code=&lt;br /&gt;
&lt;br /&gt;
==[https://homeostasis.scs.carleton.ca/~soma/os-2021f/code/simple.zip simple module]==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot; line&amp;gt;&lt;br /&gt;
#include &amp;lt;linux/kernel.h&amp;gt;&lt;br /&gt;
#include &amp;lt;linux/init.h&amp;gt;&lt;br /&gt;
#include &amp;lt;linux/module.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MODULE_LICENSE(&amp;quot;GPL&amp;quot;);&lt;br /&gt;
MODULE_AUTHOR(&amp;quot;Anil Somayaji &amp;lt;soma@scs.carleton.ca&amp;gt;&amp;quot;);&lt;br /&gt;
MODULE_DESCRIPTION(&amp;quot;A simple module&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
static int simple_init(void)&lt;br /&gt;
{&lt;br /&gt;
        pr_info(&amp;quot;Hello kernel world!\n&amp;quot;);&lt;br /&gt;
        return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
static void simple_exit(void)&lt;br /&gt;
{&lt;br /&gt;
        pr_info(&amp;quot;Goodbye kernel world.\n&amp;quot;);&lt;br /&gt;
        return;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
module_init(simple_init);&lt;br /&gt;
module_exit(simple_exit);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==[https://homeostasis.scs.carleton.ca/~soma/os-2026f/code/ones.tar.gz ones module]==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot; line&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==[https://homeostasis.scs.carleton.ca/~soma/os-2026f/code/newgetpid.tar.gz newgetpid module]==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;C&amp;quot; line&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</description>
			<pubDate>Sat, 14 Nov 2026 14:38:41 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_2026F:_Tutorial_7</comments>
		</item>
		<item>
			<title>Operating Systems (Fall 2026)</title>
			<link>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_(Fall_2026)&amp;diff=25244&amp;oldid=25231</link>
			<guid isPermaLink="false">https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_(Fall_2026)&amp;diff=25244&amp;oldid=25231</guid>
			<description>&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Assignments&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:50, 13 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l394&quot;&gt;Line 394:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 394:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;tr&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;tr&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;p&amp;gt;Nov. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;18&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;p&amp;gt;Nov. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;23&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Fri, 13 Nov 2026 22:50:56 GMT</pubDate>
			<dc:creator>Soma</dc:creator>
			<comments>https://homeostasis.scs.carleton.ca/wiki/index.php/Talk:Operating_Systems_(Fall_2026)</comments>
		</item>
</channel></rss>