opensensorhub / osh-core

OpenSensorHub Core Modules
http://docs.opensensorhub.org
Mozilla Public License 2.0
32 stars 16 forks source link

Avoid blocking threads in ProcessChain exec engine #190

Open alexrobin opened 2 years ago

alexrobin commented 2 years ago

Currently each child process in the chain typically blocks a thread while waiting for input data. This creates an unnecessary high number of threads and prevents the use of ForkJoinPool. Process execution should be implemented to avoid waiting and reuse the same threads for multiple processes in the chain.