CS Notes

Search

SearchSearch

Recent Updates

  • Interrupts (中断)

    Mar 25, 2024

  • IO Device

    Mar 25, 2024

  • Async IO

    Mar 25, 2024

See 471 more →

        • Square Bracket vs Curly Bracket
        • Sub-Sequence
      • Algorithm
      • Algorithm Complexity Analysis
      • Backtracking
      • Banker's Algorithm
      • Binary Search
      • DFS
      • Dijkstra's Algorithm
      • Dynamic Programming
      • Genetic Algorithms
      • Greedy Algorithm
      • Memoization
      • Optimisation Problem
      • Prefix Sum (前缀和)
      • Recursion
      • Sorting
      • Two Pointers (双指针)
          • ECS
          • ECS Exec
          • AWS ALB
          • AWS NLB
          • Target Group
        • ASG
        • AWS Lambda
        • EC2
        • AWS Database
        • AWS Backup
        • AWS Subnet
        • AWS Transit Gateway
        • AWS ACL
        • KMS
        • Security Group
        • AWS Parameter Store
        • DataSync
        • EFS
      • AWS EventBridge
      • AWS Nuke
      • Manage Your AWS from Code Editor without Console Hassles
        • curl
        • jq
        • netstat
        • scp
        • shebang
      • Atuin
      • Bash Scripting
      • Cron Job
      • Linux Namespace
      • Systemd
        • AND
        • Logic Gates
        • NOR
        • NOT
        • OR
        • Transistors (晶体管)
        • XOR
      • Boolean Function
      • Boolean Standard Form
      • Maxterm
      • Minterm
      • C Keywords
      • C Macro
      • C Program Execution
      • C Terminologies
      • Cloudflare
        • Circuit Design
        • Grey Code
        • Karnaugh Map
        • Adder
        • Combination Circuit
          • MIPS
          • MIPS I-Type Instruction
          • MIPS Instruction
          • MIPS J-Type Instruction
          • MIPS R-Type Instruction
          • RISCV CLINT
          • RISCV Instructure
          • RISCV Kernel Deep Dive
        • Assembly language
        • Atomic Instruction
        • Instruction
        • Instruction Execution
        • Instruction Set Architecture (ISA)
        • Base 64 Encoding
        • Character Encoding (字符编码)
        • Computer Data Representation
        • Endianness
        • Floating-Point Encoding (浮点数编码)
        • Integer Encoding (数字编码)
        • Number Base Conversion
        • Instruction-Level Parallelism
        • Pipeline
        • Pipeline Stages
        • Branch Prediction
        • Branch Prediction Strategies (Heuristics)
        • Pipeline Branching
        • Pipeline Flush
        • Operand Forwarding
        • Out-of-Order Execution
        • Pipeline Stall
        • Read-After-Write(RAW) Hazard
        • ALU
        • Clock Oscillator
        • Control Unit
        • CPU
        • CPU Datapath
        • GPU
        • Register
        • Specialised Processor
        • Data Latch
        • Sequential Circuit
        • Set Reset Latch
        • Pasha and Stick
        • LRU
        • Valid Sudoku
        • YetnotherrokenKeoard
        • (CodeForces) Almost Ternary Matrix
        • Word Break
        • (CodeForces) Equalize
        • (CodeForces) Minimize Inversions
        • Container With Most Water
        • Next Permutation
        • (CodeForces) All The Same
        • (CodeForces) Divisibility
        • (CodeForces) Non-coprime Split
        • (CodeForces) Rectangle Cutting
        • (CodeForces) Rectangular Game
        • Closest Cities
        • Product of Array Except Self
        • Romantic Glasses
      • Competitive Programming Code Templates
      • CP Tips
      • Pending CP Questions
        • AVL Tree
        • Binary Search Tree (二叉搜索树)
        • Binary Tree (二叉树)
        • Complete Binary Tree (完全二叉树)
        • Full Binary Tree (完满二叉树)
        • Perfect Binary Tree (完美二叉树)
        • Hash Collision
        • Hash Function
        • Hash Map
      • Abstract Data Type (ADT)
      • Array
      • Data Structure
      • Deque
      • Graph
      • Linked List
      • Queue (FIFO)
      • Stack
      • ACID Transactions
      • Database
      • Database Paradigms
      • DBMS (Database Management System)
      • MySQL
      • SQL
        • Existential Statement
        • Predicate
        • Quantified Rule of Inference
        • Universal Statement
        • Common Sets
        • Set
        • Algebra Properties
        • Conditional Statement
        • Fallacy
        • Mathematical Argument
        • Mathematical Statement
        • Propositional Logic
        • Rule of Inference (推理规则)
        • Combination
        • Combinatorics
        • Counting
        • Permutation
      • Deductive Reasoning (演繹推理)
      • Discrete Geometry
      • Discrete Math
      • Mathematical Proof
      • Relation
        • Distributed Consensus
        • Raft Consensus Algorithm
        • Replicated State Machine
      • GPIO Pins
      • Closure
      • Currying
      • First-class Functions
      • Pure Functions
          • Primitive and Object Conversion
          • Wrapper Class Datatype
        • Java
        • Java Sorting
        • java.util
        • Email Routing
        • MAC Address
        • Multicast 多播
        • Network
        • Network Relay
        • OSI
        • Port Forwarding
        • Secure Tunneling
        • Communication Links
        • Digital Subscriber Line (DSL)
        • Link-layer switches
        • Packet Switches
        • Routers
        • Access Network
        • Bandwidth
        • Exponential Backoff
        • Host
        • Internet
        • ISP
        • Network Object
        • Network Operations
        • Network Port
        • Packet
        • REST API
        • Socket Inteface
        • Tethering
        • Transmission rate
        • TTL
        • URL
          • DNS
          • DNS Query
          • DNS Record
          • DNS Server
          • Hierarchical Structure
          • Hostname
          • IP Address
            • HTTP 1.2
            • HTTP 1.2 Server Push
            • HTTP Frame
            • HTTP Multiplexing (多路复用)
            • HTTP Stream
            • HTTP 1.3
            • QUIC
          • Head-of-Line Blocking (队头堵塞)
          • HTTP
          • HTTP 1.0
          • HTTP 1.1
          • HTTP Headers
          • HTTP Request
          • HTTP Request Methods
          • HTTP Response
          • HTTP Status Code
          • TCP
          • TCP Connection
          • TCP Handshake
          • TLS (Transport Layer Security)
          • TLS 1.2
          • X.509 Certificate
        • Address Resolution Protocol
        • CSMA
        • Ethernet
        • Internet Protocol (IP)
        • Network Protocol
        • SSH
        • UDP
          • Divisibility (可除性)
          • Factor
          • GCD
          • Modulo
          • Prime Number (质数)
        • Integer (整数)
        • Real Number
        • cs1231s nus notes
        • cs2100 nus notes
        • cs2106 nus notes
        • Generics
        • Inheritance
        • OOP
        • OOP Compatibility
        • Polymorphism
        • Sub-types
          • Asynchronous Single Threading
          • CPU Cache
          • Memory Management Unit (MMU)
          • Multi-core Chip
          • Multi-processing
          • Multi-Programming
          • Multi-tasking
          • Multi-threading
          • Privilege Level
          • File
          • File System
          • File System Hierarchy
          • File System Link
          • FUSE
          • Inode
          • Pipe (管道)
          • Interrupt Handler
          • Interrupt Vector Table
          • Interrupts (中断)
          • Timer Chip
          • Trap Interrupt (陷入)
          • Async IO
          • Device Controller
          • Direct Memory Access (DMA)
          • IO Bus
          • IO Device
          • Serial Communication
          • Flash Memory
          • Main Memory
          • Memory Address
          • Memory Fragmentation
          • Memory Page
          • Memory Safety
          • Null Safety
          • Page Faults
          • Page Table
          • ROM
          • Segmentation Fault
          • Swap Space
          • Virtual Memory
          • Address Space
          • Context Switch
          • Inter-Process Communication (IPC)
          • Process (进程)
          • Process Control Block (PCB)
          • Process Hierarchy
          • Process Management
          • Process Operations
          • Timeslice
          • Barrier (屏障)
          • Concurrency (并发)
          • Condition Variable (条件变量)
          • Deadlock (死锁)
          • Mutex (互斥体)
          • Race Condition (竞态条件)
          • Semaphore (信号量)
          • Spinlock (自旋锁)
          • Synchronization (同步)
          • Library Call
          • System Call (系统调用)
          • User
          • Hybrid Threads
          • Kernel Thread
          • Producer Consumer Problem
          • Thread
          • Thread Pool
          • User Thread
          • Init System
          • Linux Kernel
          • POSIX
          • Unix
        • Computer Booting
        • Kernel
        • Kernel Space
        • OS
        • OS System Program
        • User Space
        • Probability Problems
        • Problem Solving
        • Problem Solving Sample Problem
        • Argument Pointer
        • Datatype
        • Expression
        • Function
        • Immutable
        • Pointer
        • Statement
        • String Interpolation
        • Syntactic Scope
        • Important Rust Syntax
        • Rust
        • Rust Borrowing
        • Rust Ownership
        • Rust Pending Items
        • Rust Toolset
          • Authentication
          • Cloudflare Access
          • Cookie
          • HTTP Basic Authentication
          • JWT
          • OIDC Authentication
          • Session-Cookie Authentication
          • Single Sign-On (SSO)
          • Token-Based Authentication
          • User Principle Name
          • Authorisation
          • OAuth 2.0
          • Asymmetric Cryptography
          • Digital Signature
          • Hash Digest
          • HMAC (Hash-Based Message Authentication Code)
          • Salting
          • Symmetric Encryption
          • Ciphertext (密文)
          • Key's Randomart Image
          • Shift-left Security
        • Common Security Attacks
        • DevSecOps
        • Dynamic Secrets
        • Email Security
        • Encryption
        • PEM (Privacy Enhanced Mail)
            • Mono Repos
            • Monorepo Build System
            • nx
          • Code for Change
          • Coding Convention
          • Software Development Practices
          • Type System
            • Alert
            • Sampling
            • Span
            • Trace
          • Application Performance Monitoring (APM)
          • Real User Monitoring
          • Liskov Substitution Principle (LSP)
          • Code Bundling
          • Middleware (中间件)
          • Shim (垫片)
          • Type Inference (类型推断)
        • Abstraction (抽象)
        • Code Editor Setup
        • Code Quality Assurance Tools
        • Language Processors
        • Package Manager
        • Terminal
          • Event-Driven Architecture
          • Hub and Spoke Architecture
          • Micro-servercies Architecture
          • Cache Server
          • CDN
          • Compute Server
          • Message Queue (消息队列)
          • Multi Data Center Setup
          • Database Replication (数据库复制)
          • Database Scaling
          • Application Load Balancer
          • Load Balancer
          • Network Load Balancer
          • Monitoring
          • Forward Proxy (正向代理)
          • Reverse Proxy (反向代理)
        • Latency Number
        • System Design
        • Aggregation
        • Data
        • Idempotent
        • Memory Alignment
        • Null-terminated
        • Operation
        • Parity Bit (奇偶校验码)
        • Timezone
          • Datadog
          • Datadog APM in ECS Fargate
          • Datadog Lambda Monitoring
          • Datadog RUM
            • Docker Container
            • Docker Image
            • Dockerfile
            • Docker EXEC Command Flags
            • Docker RUN Command Flags
          • Docker
          • Docker Build
          • Docker Compose
          • Docker Installation
          • Docker Network
          • Docker Volume
          • Git
          • Git Hook
          • Git Rebase
          • JS Toolset
          • JS Weird Syntax
          • Node.js
        • Fly.io
        • Go
        • Neon DB
        • Postgres
        • Unleash the Python Kraken Pyenv and Poetry - The Holy Grail of Python Project Setups
      • Python Snippets for Markdown Processing
      • Virtualisation
      •  My Macos Setup
    Home

    ❯

    OS

    ❯

    CPU

    ❯

    Multi-processing

    Multi-processing

    Created:  Nov 07, 2023
    Modified: Feb 22, 2024
    72 words, 1 min read
    🌟 Edit This Page!   🗓️ History

    • OS
    Xinyang YU

    Abstract


    • Having multiple Process (进程) running at the same time on Multi-core Chip, offers Parallelism (并行性)

    Simpler to Implement

    Avoid issues like Deadlock (死锁) & Race Condition (竞态条件) faced by Multi-threading, because each process isn’t sharing the same Address Space

    More Resources Intense

    Each process has its own address space

    Not So Scalable

    Performance limited by the number of CPU cores

    Backlinks

    • No backlinks found

    Graph View


    Created by Xinyang YU, © 2023 - 2024

    • GitHub