liveBook · Manning

Multicore

As explained in Starting Data Analytics with Generative AI and Python

A multicore architecture is a processor design containing multiple independent CPU cores capable of executing computations concurrently.

A multicore architecture contains multiple processor cores that can execute calculations concurrently. Parallelizing code can use this capacity, but added threads do not guarantee faster results. section 7.2.2

When parallelism makes code slower

A bootstrap confidence-interval function was parallelized with four threads, yet the parallel version ran considerably slower. The original function used only 1.5% of available processing power, making it a poor parallelization candidate; thread overhead and Python's GIL could limit gains. section 7.2.2

How Starting Data Analytics with Generative AI and Python covers it

How deep it goes
Demonstrates thread-based implementation and timing comparison, but defers detailed technical differences among parallel architectures.
Examples
Uses parallel bootstrap confidence intervals, ThreadPoolExecutor code, and execution-time plots.
What it assumes
Assumes an optimized bootstrap function and awareness of CPU-bound versus I/O-bound workloads.
What you can do after
Apply it via concurrent.futures, then benchmark whether parallel execution actually improves performance.
How it connects
Connects multicore architectures with parallel computing, CPU-bound tasks, I/O-bound tasks, and the Global Interpreter Lock.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Starting Data Analytics with Generative AI and Python. The section links point to the parts of the book it draws on.