Confused about the concept of parents #391
Replies: 3 comments 2 replies
-
In this example, the Why
|
Beta Was this translation helpful? Give feedback.
-
The problem with Idler for my usecase is that I'm not doing something like running a long-running app process which processes a few requests every second. I want to spin up a bunch of fibers for a short period of time to download a bunch of stuff in parallel. I know what that workload is going to be like, but Idler doesn't in advance because it can only observe what has already happened, so by the time it gets "the right answer" as for how much work to let in I may already be done. Also to use Idler effectively to manage GVL contention between multiple threads, I need one scheduler per process, which as we established in #392 is hard to do. |
Beta Was this translation helpful? Give feedback.
-
Imagine you wanted to run Packages#fetch from inside a thread. You want to download stuff with as much parallelism as you can without unduly hogging the GVL from other threads. WDYD? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The docs example in Best Practices says:
Why is the parent the barrier, and not the semaphore? Can it be the other way around? Why? It seems like it works the other way round too?
Beta Was this translation helpful? Give feedback.
All reactions