https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2021F_Lecture_11&feed=atom&action=historyOperating Systems 2021F Lecture 11 - Revision history2024-03-29T12:46:27ZRevision history for this page on the wikiMediaWiki 1.37.1https://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2021F_Lecture_11&diff=23414&oldid=prevSoma at 20:58, 14 October 20212021-10-14T20:58:06Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:58, 14 October 2021</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div><ins style="font-weight: bold; text-decoration: none;">==Video==</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div><ins style="font-weight: bold; text-decoration: none;">Video from the lecture given on October 14, 2021 is now available:</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div><ins style="font-weight: bold; text-decoration: none;">* [https://homeostasis.scs.carleton.ca/~soma/os-2021f/lectures/comp3000-2021f-lec11-20211014.m4v video]</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div><ins style="font-weight: bold; text-decoration: none;">* [https://homeostasis.scs.carleton.ca/~soma/os-2021f/lectures/comp3000-2021f-lec11-20211014.cc.vtt auto-generated captions]</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div><ins style="font-weight: bold; text-decoration: none;">Video is also available through Brightspace (Resources->Class zoom meetings->Cloud Recordings tab)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>==Notes==</div></td><td class="diff-marker"></td><td style="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;"><div>==Notes==</div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
</table>Somahttps://homeostasis.scs.carleton.ca/wiki/index.php?title=Operating_Systems_2021F_Lecture_11&diff=23413&oldid=prevSoma: Created page with "==Notes== <pre> Lecture 11 ---------- Midterm review - Assignment 2 solutions - Assignment 1 solutions - key concepts Class will end at 11 - I have to run to the airpor..."2021-10-14T15:01:59Z<p>Created page with "==Notes== <pre> Lecture 11 ---------- Midterm review - Assignment 2 solutions - Assignment 1 solutions - key concepts Class will end at 11 - I have to run to the airpor..."</p>
<p><b>New page</b></p><div>==Notes==<br />
<br />
<pre><br />
Lecture 11<br />
----------<br />
<br />
Midterm review<br />
- Assignment 2 solutions<br />
- Assignment 1 solutions<br />
- key concepts<br />
<br />
Class will end at 11<br />
- I have to run to the airport!<br />
<br />
Most system calls (that would be used in a regular program) have a corresponding library call (that is a thin wrapper around the system call)<br />
- so if you see it in strace there's probably a way of calling it<br />
<br />
C library functions are pretty cross-platform<br />
- but they are very closely associated with UNIX<br />
<br />
Remember that printf goes to standard out<br />
equivalent to fprint(stdout, ...)<br />
<br />
So fprint(stderr, ...) is going to a different place<br />
- just normally in a terminal 1 and 2 are going to the terminal<br />
(standard out and standard error)<br />
<br />
I don't expect your solutions to be identical to mine<br />
- you just need to answer the question in a way that shows you understand the key concepts<br />
- there are multiple valid solutions to many of the questions,<br />
but they differ in implementation strategy, not in an<br />
understanding of what is going on<br />
<br />
Kill vs signal<br />
- kill is for sending signals<br />
- signal is for receiving signals<br />
- not quite standardized, so nowadays<br />
you're supposed to use sigaction, not signal<br />
<br />
The C library defines standard signal handlers for all signals<br />
- most just terminate the process<br />
<br />
Submissions for the midterm will be exactly like the assignments<br />
- submit a text file<br />
- auto grading isn't possible, as it will almost all be short answer<br />
<br />
Officially 80 minutes<br />
- don't submit multiple times<br />
- if there are problems, just email your answers to me or<br />
send them via Teams<br />
<br />
If you did the tutorials correctly, the assignments should be pretty straightforward<br />
- so if you found the assignment to be very hard,<br />
rethink how you do tutorials<br />
<br />
Questions during the midterm<br />
- teams<br />
- open zoom (office hours)<br />
- info will be on midterm PDF<br />
<br />
Remember redirecting standard error for a command doesn't change standard error for the main shell<br />
</pre></div>Soma