Skip to content

Commit

Permalink
add notes in operating system
Browse files Browse the repository at this point in the history
  • Loading branch information
kekeandzeyu committed Jan 8, 2025
1 parent ecc620d commit 1249e65
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 70 deletions.
Binary file removed Writerside/images_system/s1-1.png
Binary file not shown.
Binary file removed Writerside/images_system/s1-2.png
Binary file not shown.
88 changes: 18 additions & 70 deletions Writerside/topics/Operating-System.topic
Original file line number Diff line number Diff line change
Expand Up @@ -8,84 +8,32 @@
<title>
Operating System
</title>
<chapter title="1 Introduction to Operating System" id="1-introduction-to-operating-system">
<chapter title="1 Introduction to Operating System">
<p>
<format color="BlueViolet">Definition:</format>
Special layer of
software that provides application software access to hardware resources.
<format color="DarkOrange">Operating System:</format>
Special layer of software that provides application
software access to hardware resources.
</p>
<img src="../images_system/s1-1.png" alt="Operating System"/>
<p>
<format color="BlueViolet">What is an Operating System?</format>
</p>
<list type="bullet">
<p>In short, OS abstracts these hardware details from the applications.</p>
<p><format color="BlueViolet">Functions of OS</format></p>
<list type="decimal">
<li>
<p>
<format color="BlanchedAlmond">Illusionist:</format>
Provide
clean, easy-to-use abstractions of physical resources.
</p>
<p><format color="Fuchsia">Illusionist:</format> Provide clean, easy-to-use abstractions of physical
resources</p>
<p>OS translates from hardware interface to application interface, and provides each running program with
its own process.</p>
</li>
<li>
<p>
<format color="BlanchedAlmond">Referee:</format>
Manage
protection, isolation, and sharing of resources.
</p>
<p><format color="Fuchsia">Referee:</format> Manage protection, isolation, and sharing of resources.</p>
<p>OS isolates processes from each other, isolates itself from other processes, even though they are
actually running on the same hardware.</p>
</li>
<li>
<p>
<format color="BlanchedAlmond">Glue:</format>
Common services.
</p>
<p><format color="Fuchsia">Glue:</format> Common services</p>
<p>OS provides common services in the form of I/O.</p>
</li>
</list>
<chapter
title="1.1 Operating System as Illusionist - Provide clean, easy-to-use abstractions of physical resources"
id="1-1-operating-system-as-illusionist-provide-clean-easy-to-use-abstractions-of-physical-resources">
<img src="../images_system/s1-2.png" alt="Operating System as Illusionist"/>
<list type="bullet">
<li>
<p>Application's "machine"
<format style="italic">is</format>
the
process abstraction provided by OS.
</p>
</li>
<li>
<p>Each running program runs in its own process.</p>
</li>
<li>
<p>Processes provide nicer interfaces than raw hardware.</p>
</li>
</list>
<p>
<format color="DarkOrange">A process consists of:</format>
</p>
<list type="bullet">
<li>
<p>Address Space</p>
</li>
<li>
<p>One or more threads of control executing in that address space</p>
</li>
<li>
<p>Additional system state associated with it, e.g., open files,
open sockets, etc.</p>
</li>
</list>
<list type="bullet">
<li>
<p>OS translates from hardware interface to application interface.</p>
</li>
<li>
<p>OS provides each running program with its own process.</p>
</li>
</list>
</chapter>
<chapter title="1.2 Operating System as Referee - Manage protection, isolation, and sharing of resources"
id="1-2-operating-system-as-referee-manage-protection-isolation-and-sharing-of-resources">
</chapter>
<p><format color="DarkOrange">Process:</format> An instance of a program in execution.</p>
</chapter>

<!-- To be continued -->
</topic>

0 comments on commit 1249e65

Please sign in to comment.