Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiplatform multiprocessing?

I was wondering why in the new C++11 they added threads and not processes.

Couldn't have they done a wrapper around platform specific functions?

Any suggestion about the most portable way to do multiprocessing? fork()? OpenMP?

like image 433
Pietro Avatar asked May 31 '26 08:05

Pietro


1 Answers

If you could use Qt, QProcess class could be an elegant platform independent solution.

like image 186
Naszta Avatar answered Jun 01 '26 23:06

Naszta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!