Threading in Python: What Is a Thread?

Pubblicato il: 21 novembre 2019
sul canale di: Real Python
20,032
384

You’ll cover some terminology:

- CPU (central processing unit) is a piece of hardware in a computer that executes binary code.
- OS (operating system) is software that schedules when programs can use the CPU.
- Process is a program that is being executed.
- Thread is part of a process.

Blocking happens when a thread is stuck, waiting for a something to finish so it can complete its function. When single-threaded apps get blocked, this causes a poor user experience and slower overall execution time.

Multi-threaded apps can execute more than one function at what appears to be the same time. While one thread is blocked, other threads can continue their execution.

Click here to learn more: https://realpython.com/courses/thread...


In questa pagina del sito puoi guardare il video online Threading in Python: What Is a Thread? della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Real Python 21 novembre 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 20,032 volte e gli è piaciuto 384 spettatori. Buona visione!