←back to thread

A Few Words About Async

(yoric.github.io)
82 points vinhnx | 1 comments | | HN request time: 0.329s | source
Show context
jiggunjer ◴[] No.45787918[source]
Recently had to familiarize myself with python async because a third party SDK relies on it.

In many cases the lib will rely on threads to handle calls to synchronous functions, got me wondering if there's a valid use case for running multiple async threads on a single core.

replies(3): >>45788200 #>>45788569 #>>45788995 #
1. electroglyph ◴[] No.45788995[source]
i would say: probably not

if your async thread is so busy that you need another one, then it's probably not an async workload to begin with.

i work on a python app which uses threads and async, but only have one async thread because it's more than enough to handle all the async work i throw at it.