How to support concurrent in Genie? #521
-
$julia -q -t auto using Genie
route("/") do
res = rand(1,10000000)*rand(10000000, 1)
"$(Threads.threadid())\t$(res)"
end
up() I tested with this code, but got 1 as the thread-id every time. |
Beta Was this translation helpful? Give feedback.
Answered by
essenciary
Apr 28, 2022
Replies: 1 comment 1 reply
-
Genie execution is multi-tasked (non-blocking) but not multi-threaded (per the names in here https://docs.julialang.org/en/v1/manual/parallel-computing/). We're working on it though and if everything goes well, will be released in Genie 5 in a couple of weeks. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
deahhh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Genie execution is multi-tasked (non-blocking) but not multi-threaded (per the names in here https://docs.julialang.org/en/v1/manual/parallel-computing/). We're working on it though and if everything goes well, will be released in Genie 5 in a couple of weeks.