force parallel processing

there are times even the application is requesting for parallel processing, it could stick to one single thread without rotation.

for example, the case,

this could be the case similar to thread affinity,

in java, to force the parallel processing, one way is to signal to the processor to rotate the time slicing.

                    .peek(i -> {
                        try {
                        } catch (InterruptedException e) {

as such, even though the time quantum could be larger than the first phase tasks duration. the thread could volunteer to round robin the pool, which then the process could proceed with following parallel processing, instead of leaving to original single thread to handle the second phase tasks.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s