Hikikomori

20 object(s)
 

403. multitasking

Multitasking


A computer reads process’s code line-by-line that resides in RAM and a CPU executes instructions sequentially to … A single-core, or more explicitly, a process can handle multiple jobs if it can span threads, or the jobs themselves are I/O-bound. A multi-core processors leverage its powerful hardware and several processes perform the exact same job on different data (SIMT).

The two physically different execution models explore the concept of concurrency involves managing multiple tasks that may interleave execution, while parallelism requires simultaneous execution on multiple processing units. This post explores the theoretical foundations, implementation patterns, and practical trade-offs across different programming paradigms, with particular attention to how language runtimes and operating systems coordinate to achieve efficient concurrent execution.

1.2. Execution Models and Memory Models

1.3. Synchronization Primitives

1.4. Threading Models

II


2.1. Asynchronous Programming and Event Loops

2.2. Language-Specific Implementations

2.3. I/O-Bound vs CPU-Bound Workloads

2.4. Concurrent Data Structures

III


3.1. Distributed Concurrency

3.2. Parallel Computing Patterns

3.3. Performance Considerations

3.4. Common Pitfalls and Best Practices

IV


4.1. Real-World Applications

4.2. Wrap-up




I gathered words solely for my own purposes without any intention to break the rigorosity of the subjects.
Well, I prefer eating corn in spiral .