How to use multithreading correctly? #4839
Unanswered
1192724521
asked this question in
Q&A
Replies: 2 comments 6 replies
-
It appears that computational resources are not the bottleneck. To increase the performance, you must determine what the bottleneck is, and fix that issue instead of increasing the number of threads. For example, maybe the program you are using to connect to the server has some sort of connection limit? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I use std::thread::sleep in a handler and seems like it blocks all of the incoming request..? btw how did u measure the requests per second |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Complete requests: 100000
Concurrency Level: 10000
Why does the number of worker threads have no effect on concurrency?
I just can't figure it out. I need a little help.please.Thank you.
I want this result
Beta Was this translation helpful? Give feedback.
All reactions