FAQ
I have some questions about `class ThreadPool` used in BOSH. Considering
the follow codes(the `process` method):
https://github.com/cloudfoundry/bosh/blob/master/bosh_common/lib/common/thread_pool.rb#L43

I know the ThreadPool has its max size(32 by default). So, when the
available thread is less than 1, we need to queue the `action`, however, I
can't find the implemention of 'queuing the action' in class ThreadPool. I
can only find a logger record:
https://github.com/cloudfoundry/bosh/blob/master/bosh_common/lib/common/thread_pool.rb#L52

Therefore, what happens if some bosh tasks need more than `max_threads`
worker threads which is configured by user?

Regards,
DuJun

To unsubscribe from this group and stop receiving emails from it, send an email to bosh-dev+unsubscribe@cloudfoundry.org.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
groupbosh-dev @
postedMay 4, '14 at 12:25p
activeMay 5, '14 at 3:40a
posts3
users2

2 users in discussion

Du Jun: 2 posts Ferran Rodenas: 1 post

People

Translate

site design / logo © 2021 Grokbase