From the course: Python Essential Training

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Intro to threads and processes

Intro to threads and processes - Python Tutorial

From the course: Python Essential Training

Intro to threads and processes

I have to come clean. Earlier in the course, well, I lied to you. You know that explanation I did about how computers operate on memory? Well, it's a little more complicated than that. I know you're shocked, shocked that an introductory explanation of computational operations might have glossed over some of the details, but I swear, I'll make it up to you. Don't leave. I'll tell you. I'll tell you everything. How computers really work. You see, computers have both memory and file storage. It's like short-term and long-term memory. When we save a file and load a file from the disk, that's in storage, long-term memory. When we declare a variable in our program, that's short-term memory in the processor. It looks a bit like this. So what's the big Like dill, why can't we think of both storage and memory as one big blob of accessible data? Well, let's bring in a second program. The first program saves a file to the disk. The second program, running in a second process, can pick it up…

Contents