Loading topic
threading.Thread or concurrent.futures.ThreadPoolExecutor. It also assumes you know a thread is a unit of execution inside a process, and that you have a rough idea of what a race condition is. The previous chapter covered what7 min readthreading or concurrent.futures. Here you will learn what PEP 703 proposes, how the Steering Council accepted it, which phase the project is in,6 min readthreading or concurrent.futures, understand the difference between threads and processes, and know what a race condition and a lock are. The earlier5 min readthreading or concurrent.futures. You should also know what the GIL is and how a free-threaded build differs from a standard one, both covered in earlier chapters. Here you learn how to control the GIL on a free-threaded interpreter, ho6 min readthreading module and concurrent.futures, the difference between threads and processes, and what a race condition is. You should also know how to start a free-threaded interpreter such as python3.13t. The previous chapters covered that setup.6 min readthreading or concurrent.futures, and understand what a race condition is. Earlier chapters covered the GIL and how to run a free-threaded build. This one asks a narrower question. When several threads run truly in parallel, what can you still6 min readthreading or concurrent.futures, and that you know what a race condition and a lock are. You should also be comfortable reading short Python bytecode listings. Chapter 7 covered what built-in types guarantee under free-threading. This chapt6 min readthreading, and that you have seen the idea of a race condition. It also assumes you have read the earlier chapters on free-threaded builds and data races. Here you will learn how to use locks to make compound updates safe, how to choose lock granulari5 min readthreading or concurrent.futures. It also assumes you know what a race condition is and how threading.Lock works. The previous chapter showed how to protect shared state with locks. Here you will learn to design programs so that less state i6 min readPYTHON_GIL. It also assumes you know what a C extension module is: a shared library, such as a .so or .pyd file, that Python imports like any other module. You don't need t6 min readthreading, concurrent.futures and multiprocessing basics. Removing the GIL does not make every program faster. This chapter covers what free-threading costs, where it pays off, and how to cho6 min readconcurrent.futures, and that you can read basic lock code. You should also know what the free-threaded build is and how to detect it, from the earlier chapters. Here you will turn that knowledge into a migration plan for a real project, and le5 min read