Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COThanks Chris. Could you elaborate a little bit more on **Threads** -> 'subject to GDI' and **Processes** -> 'more complicated to work with as a result'. _THREADS_: If, say, 2 different web requests spawn 2 different threads that work on different resources, will they be able to run concurrently? My guess is.. not (especially if coming from a single-process mod_wsgi). But it sounds like, according to Graham, they will not block serving other requests, which is still the most important thing. _PROCESSES_: is the difficulty related to making them communicate, or is there something else? Thanks!
      singulars
    2. COThe Global Interpreter Lock is only an issue with CPython implementations. That particular version of the Python interpreter enforces a hard limit of one thread at a time being able to work with bytecode. It's probably nothing you'll need to worry about, but in terms of interoperability, it's something to be aware of.
      singulars
    3. COThreads are almost stupidly simple to work with. You subclass `Thread` define `__init__` and `run` and you're off to the races. Multiprocessing deals with the concept of pools of workers. There's a lot more intialization and you have to carefully manage what's going on. It's the same reason that many modern-day applications *still* don't actually utilize multiple cores. You can do amazing stuff with all that processing power, but it's like orchestrating a symphony -- you'll have to put in some work to get it just right.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload