<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Operating Systems on YHY Study Website</title><link>https://ryan.0412.online/en/tags/operating-systems/</link><description>Recent content in Operating Systems on YHY Study Website</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 17 Nov 2026 00:27:33 +0800</lastBuildDate><atom:link href="https://ryan.0412.online/en/tags/operating-systems/index.xml" rel="self" type="application/rss+xml"/><item><title>OS Lab: Linux System V IPC</title><link>https://ryan.0412.online/en/blog/linux-sysv-ipc-rps/</link><pubDate>Sun, 15 Nov 2026 00:00:00 +0000</pubDate><guid>https://ryan.0412.online/en/blog/linux-sysv-ipc-rps/</guid><description>&lt;p&gt;On November 15 I was working through an OS lab. The assignment asks for rock-paper-scissors over Linux IPC, a producer-consumer program with semaphores, and a networked version. While doing the lab, I also wanted to understand Linux process communication: what the three System V mechanisms are for, how to create and use them, and how rock-paper-scissors can be written with them.&lt;/p&gt;
&lt;p&gt;Processes created with &lt;code&gt;fork()&lt;/code&gt; each have their own address space. A variable in one process is invisible to the other. To exchange data, they need a kernel channel. System V IPC is the set of interfaces that comes up first in this lab.&lt;/p&gt;</description></item><item><title>Operating System Fundamentals Review (2)</title><link>https://ryan.0412.online/en/blog/os-basic-concepts-review-2/</link><pubDate>Tue, 20 Oct 2026 00:00:00 +0000</pubDate><guid>https://ryan.0412.online/en/blog/os-basic-concepts-review-2/</guid><description>&lt;p&gt;My October 20 notes focus on CPU scheduling. The &lt;a href="../os-basic-concepts-review/"&gt;previous post&lt;/a&gt; distinguished programs, jobs, and processes, along with concepts such as concurrency and synchronous calls. This post continues with a related question: when several tasks need to run, how does the system decide who gets the CPU first, for how long, and when to switch?&lt;/p&gt;
&lt;p&gt;I start by separating the levels of scheduling, then look at the metrics used to evaluate it, and finally compare the algorithms. Seen this way, the algorithms do more than carry different names. They address different priorities: finishing tasks sooner, responding to users sooner, or meeting deadlines.&lt;/p&gt;</description></item><item><title>Operating System Fundamentals: A Review (1)</title><link>https://ryan.0412.online/en/blog/os-basic-concepts-review/</link><pubDate>Fri, 16 Oct 2026 00:00:00 +0000</pubDate><guid>https://ryan.0412.online/en/blog/os-basic-concepts-review/</guid><description>&lt;p&gt;Today I went back over programs, jobs, processes, concurrency, parallelism, and synchronous and asynchronous calls. I could remember roughly what each term meant, but when I put them together, I still wasn&amp;rsquo;t clear on what each one actually described.&lt;/p&gt;
&lt;p&gt;On my second pass, I found it easier to start with one question: &lt;strong&gt;What is this concept meant to explain?&lt;/strong&gt; I&amp;rsquo;ll use that question to work through their differences.&lt;/p&gt;
&lt;figure class="td-figure"&gt;
 &lt;img src="https://ryan.0412.online/blog/os-basic-concepts-review/cover.png" alt="Illustration comparing programs, jobs, and processes, with examples of concurrency, parallelism, and asynchronous execution" width="1672" height="941" loading="lazy" decoding="async"&gt;&lt;figcaption&gt; &lt;span class="td-fig-caption"&gt;First distinguish the work, the method, and its execution; then look at how multiple tasks make progress&lt;/span&gt;&lt;/figcaption&gt;
&lt;/figure&gt;&lt;h2 id="program-job-process"&gt;Programs, jobs, and processes
&lt;/h2&gt;
&lt;p&gt;What I most wanted to separate was the method described by a program, the work requested from the system, and the execution of that work. Which concept describes each of these?&lt;/p&gt;</description></item></channel></rss>