Introduction to Threads

Threads are streams that can be scheduled by the operating system and can be executed across a single core in a concurrent way or in parallel way across multiple cores. Threads can interact with shared resources, such as memory, and they can also modify things simultaneously or even in parallel.

Get Mastering Python for Networking and Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.