<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Arham_Q</title>
    <description>The latest articles on DEV Community by Arham_Q (@arhamqureshi).</description>
    <link>https://dev.to/arhamqureshi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3890244%2F5d4fe702-8bd6-4378-b88e-2a5cb366e74a.jpeg</url>
      <title>DEV Community: Arham_Q</title>
      <link>https://dev.to/arhamqureshi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arhamqureshi"/>
    <language>en</language>
    <item>
      <title>I couldn't find a fun way to learn CPU scheduling so I built one</title>
      <dc:creator>Arham_Q</dc:creator>
      <pubDate>Tue, 21 Apr 2026 07:29:35 +0000</pubDate>
      <link>https://dev.to/arhamqureshi/i-couldnt-find-a-fun-way-to-learn-cpu-scheduling-so-i-built-one-5h39</link>
      <guid>https://dev.to/arhamqureshi/i-couldnt-find-a-fun-way-to-learn-cpu-scheduling-so-i-built-one-5h39</guid>
      <description>&lt;p&gt;&lt;strong&gt;What Happens When You Don't Find a Perfect Tool for Learning!&lt;/strong&gt;&lt;br&gt;
Start with the exact moment you got frustrated, the lecture, the textbook diagram that made no sense, or whatever it was. Personal and specific beats generic every time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The issue&lt;/strong&gt;&lt;br&gt;
Every CS student has felt this way. Your teacher draws a Gantt chart on the board and talks about FCFS and Round Robin. You nod along as if you understand. You open your textbook, and all you see are more static diagrams.&lt;br&gt;
I wanted something that I could do. Something that really showed me what was going on step by step. I looked around and couldn't find anything that didn't look like it was made in 2003.&lt;br&gt;
I made it myself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The thought&lt;/strong&gt;&lt;br&gt;
What if algorithms could battle each other? Algo Wars is a game-like CPU scheduling simulator where you can put two algorithms against each other and watch them compete in real time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What broke first, the Gantt chart&lt;/strong&gt;&lt;br&gt;
The first version of mine loaded the Gantt chart in a static way. The whole thing just showed up at once, which ruined the point. You couldn't see the scheduling happen; you could only see the end result.&lt;br&gt;
So I completely changed it. Changed the output to JSON and sent it to the chart one block at a time. It came to life all of a sudden. You could see the CPU choose which process to run next.&lt;br&gt;
That one change made the whole thing seem real.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The last boss is MLQ&lt;/strong&gt;&lt;br&gt;
The Gantt chart was like a mid-level enemy, and multilevel queue scheduling was the final boss. There are multiple queues, each with its own priority and running a different algorithm at the same time. They all work together without getting in each other's way.&lt;br&gt;
It took the longest to get that logic right. The best :( part of the whole build.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A peek at the piece of Code&lt;/strong&gt;&lt;br&gt;
This code show the star feature, How the two algorithms run side by side and compare the efficiency&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo64cxvjhfqwkvquarm7d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo64cxvjhfqwkvquarm7d.png" alt="This code show the star feature, How the two algorithms run side by side and compare the efficiency" width="551" height="692"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Try it yourself&lt;br&gt;
The repo is open. Feedback, bug reports, pull requests, all welcome.&lt;br&gt;
Visit &lt;a href="https://github.com/Arham-Qureshi/Algo-wars/" rel="noopener noreferrer"&gt;https://github.com/Arham-Qureshi/Algo-wars/&lt;/a&gt;&lt;br&gt;
live: &lt;a href="https://algo-wars-rust.vercel.app/" rel="noopener noreferrer"&gt;https://algo-wars-rust.vercel.app/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>webdev</category>
      <category>python</category>
    </item>
  </channel>
</rss>
