Top "Parallel-processing" questions

Parallel processing is, in sharp contrast to just a Concurrent processing, guaranteed to start / perform / finish all thread-level and/or instruction-level tasks executed in a parallel fashion and provides a guaranteed finish of the simultaneously executed code-paths.

How do I parallelize a simple Python loop?

This is probably a trivial question, but how do I parallelize the following loop in python? # setup output lists output1 = …

python parallel-processing
How to wait for all threads to finish, using ExecutorService?

I need to execute some amount of tasks 4 at a time, something like this: ExecutorService taskExecutor = Executors.newFixedThreadPool(4); while(...) { taskExecutor.…

java multithreading concurrency parallel-processing executorservice
How do you run multiple programs in parallel from a bash script?

I am trying to write a .sh file that runs many programs simultaneously I tried this prog1 prog2 But that …

bash parallel-processing
How to do parallel programming in Python?

For C++, we can use OpenMP to do parallel programming; however, OpenMP will not work for Python. What should I …

python parallel-processing
Can Powershell Run Commands in Parallel?

I have a powershell script to do some batch processing on a bunch of images and I'd like to do …

multithreading powershell parallel-processing
What is the difference between concurrency and parallelism?

What is the difference between concurrency and parallelism? Examples are appreciated.

language-agnostic concurrency parallel-processing
Optimal number of threads per core

Let's say I have a 4-core CPU, and I want to run some process in the minimum amount of time. …

parallel-processing cpu
Custom thread pool in Java 8 parallel stream

Is it possible to specify a custom thread pool for Java 8 parallel stream? I can not find it anywhere. Imagine …

java concurrency parallel-processing java-8 java-stream
Should I always use a parallel stream when possible?

With Java 8 and lambdas it's easy to iterate over collections as streams, and just as easy to use a parallel …

java parallel-processing java-8 java-stream
How to wait for a number of threads to complete?

What is a way to simply wait for all threaded process to finish? For example, let's say I have: public …

java multithreading parallel-processing wait