SSaguninsagunwrites.hashnode.dev·5d ago · 6 min readUser-Level Threads vs Kernel-Level ThreadsThreads allow a process to perform multiple activities concurrently. But who actually manages those threads? Depending on the threading model, threads can be managed primarily by a user-level thread l00
SSaguninsagunwrites.hashnode.dev·5d ago · 5 min readProcess vs Thread: What Is the Difference?A process is one of the most important concepts in operating systems. But when a process needs to perform multiple activities at the same time, the operating system can use another concept: a thread. 00
JJohnindeveloper-mind.hashnode.dev·Aug 11 · 5 min readMulti-Threading in Flutter: A Guide to IsolatesFlutter apps run on a single thread by default. This thread handles the UI, animations, and user inputs. If you run a heavy computation on this thread, the UI freezes. To prevent this, Flutter uses Is00
ANAmogh Nivaskarinamoghpn.hashnode.dev·Aug 9 · 10 min readKernel Threads Implementation: Adding True Parallelism to the xv6 kernelFull implementation on GitHub and full design on the Design Doc. The Problem Vanilla xv6 boots on 3 cores. But the way that a process is defined in xv6, it has only a single state of execution. Meani00
MUMohamed Uvaisinmohduvais.hashnode.dev·Aug 4 · 21 min readLinux Processes and Threads: A Practical Guide for Embedded Linux DevelopersLinux is a very popular operating system that is used in many products such as mobile phones, servers, networking, real-time applications, etc. When applications are developed in Linux, it is importan10
AAAbstract Algorithmsinabstractalgorithms.hashnode.dev·Jun 18 · 10 min readConcurrency Models: Actor Model vs. Communicating Sequential Processes (CSP)TLDR: Shared-memory multithreading using manual locks is notoriously difficult to scale and debug. To avoid race conditions and deadlocks, modern platforms use message-passing concurrency models. This00
DPDhawal Pandyaindhawalpandya01.hashnode.dev·Jun 8 · 7 min readIt Was supposed to be a Browser Language"Any application that can be written in JavaScript, will eventually be written in JavaScript." Jeff Atwood In 2009, Ryan Dahl watched a progress bar on a Flickr page and had a realization that annoye10
DPDhawal Pandyaindhawalpandya01.hashnode.dev·Jun 7 · 8 min readWaiting Is a Skill"Nature does not hurry, yet everything is accomplished." Lao Tzu A mutex, short for mutual exclusion, is a lock that only one thread can hold at a time. If thread A holds it, thread B waits. A simple00
AKAshutosh Krishnainblog.ashutoshkrris.in·May 31 · 16 min readPython Threading vs Multiprocessing vs Asyncio: When to Use EachImagine you are building a feature that needs to fetch data from 100 different API endpoints. You write a clean, simple loop in Python to call each endpoint one after the other. Each request takes exa10
RARuhit Armaninarmanruhit.hashnode.dev·May 28 · 12 min readLazy Singletons in Java: Why Double-Checked Locking Needs "volatile", and the Better Alternative That Doesn'tIf you've ever read about the singleton pattern in Java, you've almost certainly run into the phrase "double-checked locking," usually followed immediately by a stern warning: don't forget the volatil00