<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Balasooriyage Pulasthi Buddika on Medium]]></title>
        <description><![CDATA[Stories by Balasooriyage Pulasthi Buddika on Medium]]></description>
        <link>https://medium.com/@balasooriyagepulasthi?source=rss-4b6201f29c97------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZrAaaFDDmWTSxrMb</url>
            <title>Stories by Balasooriyage Pulasthi Buddika on Medium</title>
            <link>https://medium.com/@balasooriyagepulasthi?source=rss-4b6201f29c97------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:22:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@balasooriyagepulasthi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Today I want to talk about the following image]]></title>
            <link>https://medium.com/@balasooriyagepulasthi/today-i-want-to-talk-about-the-following-image-0d12aa86c8d2?source=rss-4b6201f29c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d12aa86c8d2</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[threads]]></category>
            <category><![CDATA[it]]></category>
            <category><![CDATA[cpu]]></category>
            <dc:creator><![CDATA[Balasooriyage Pulasthi Buddika]]></dc:creator>
            <pubDate>Thu, 19 Jun 2025 11:53:46 GMT</pubDate>
            <atom:updated>2025-06-19T11:53:46.486Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="CPU specs" src="https://cdn-images-1.medium.com/max/563/1*4d-bSRGk-n_HqAs_rK07rQ.png" /></figure><p>Today I want to talk about the following image which I screenshot from my windows task manager’s CPU performance tab.</p><p>You all know that it shows few CPU specifications but most of us don’t know what they actually mean. So let dive into that.</p><h3>1 Socket</h3><p>1 socket basically means your system has one physical CPU installed (on one socket).</p><p>If it said “Socket 2,” it would mean a dual CPU setup. This setup is common in servers but rarely seeing in personal using machines because Modern CPU’s essentially have multiple processors on one chip. They are called “cores” not processors. Let’s come to that.</p><h3>8 Core</h3><p>As I said above core is basically an individual processor so in my case, I have 8 physical cores that means 8 individual processing units. Why did I use ‘physical’ word for cores? Because core is an actual, tangible units inside the CPU chip but the Logical Processor isn’t physical. Let’s see why.</p><h3>200 plus processes and 5000 plus threads</h3><p>Before talking about logical processors understanding threads is essential. You’ll understand why. 5000+ threads refer to the total number of threads created by all processes (200 plus) in the system. I think you guys know what a process is. Its an instance of a program that is running. You can see the processes of your machine by visiting to task managers processes tab. Those processes are multi-threaded processes. That means one process can have multiple threads which can do several things at ones. A thread is like a small piece of work that comes from dividing a process into smaller parts.</p><p><em>For example,</em></p><p>think you open Spotify app on your desktop and you listening to a song, and you like it so, you download the song while listening. So, what happens in this scenario is one thread in main process takes the responsibility of handling audio playback while another thread handles downloads. So, this is what called as multi-threading. You can use multi-threading concepts to build your own app, before we talk about that I’ve tell you even though I take complex app like Spotify for an example It might not use just one process to handle its features, rather they might create multiple processes. This kind of apps usually launch with one main process but spawn multiple helper processes to do different tasks in parallel. To talk about why they do this we have to talk about the threads vs processes. It can’t be done here so we’ll go through it later.</p><p>So, if you are building a similar app to Spotify and you want your program to run multiple parts of application logic at the same time, within the same process, by creating multiple threads use multi-threading.</p><h3>12 Logical Processors</h3><p>Even though we previously go into software level lets swift back to hardware level. I said that logical processors are not physical why? They are virtual cores created using 2 kinds of technologies based on the company your CPU is manufactured. If you are using a Intel CPU then its Hyper-Threading Technology. If you are using a AMD CPU then its Simultaneous Multithreading Tech(SMT). So, this represents the number of threads your CPU can handle simultaneously. Since I’ve 12 logical processors, some cores are running 2 threads each, and others possibly only one, likely 6 cores are dual-threaded and 2 cores are single-threaded. This can depend on your CPU model. From those 5000 plus threads, OS scheduler constantly switches between threads in the background. This is called context switching, it gives the illusion that thousands of threads are running at once, even though only 12 are active per clock cycle.</p><h3>Up time</h3><p>how long the system has been running (more time = more threads created over time).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d12aa86c8d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>