shekhargulati / 52-technologies-in-2016

Let's learn a new technology every week. A new technology blog every Sunday in 2016.
https://shekhargulati.com/
MIT License
7.21k stars 595 forks source link

Week 41: Understanding Akka Dispatchers #67

Open shekhargulati opened 7 years ago

shekhargulati commented 7 years ago

Please provide your feedback by posting a comment against this issue.

wojtasskorcz commented 7 years ago

Hi! Thanks for the interesting read! Just one question. You wrote:

"You will notice that all 100 started at almost same time. If you run this with default configuration 24(parallelism-factor*parallelism-min) tasks will be processed in parallel."

Wouldn't this 24 come from parallelism-factor*number_of_cores? At least that's how you explained it earlier in the article:

"The number 24 comes from multiplication of number of cores on your machine with parallelism-factor. My machine has 8 cores and default value of parallelism-factor is 3 so we got 24 threads (8x3). (...) Let's suppose my machine had only one core then according to the calculation mentioned above I could have got 1x3 i.e. 3 threads but instead we will get 8 threads because that's the minimum number of threads default-dispatcher can have."

shekhargulati commented 7 years ago

@wojtasskorcz yes you are right. I typed it wrong. I have fixed it. Thanks.

fadavidos commented 6 years ago

@shekhargulati Great post. It's easy to understand

batchenoz commented 5 years ago

Great post, thanks!