Multithreading computation of Mandelbrot set
问题 I have created a program which creates a Mandelbrot set. Now I'm trying to make it multithreaded. // mandelbrot.cpp // compile with: g++ -std=c++11 mandelbrot.cpp -o mandelbrot // view output with: eog mandelbrot.ppm #include <fstream> #include <complex> // if you make use of complex number facilities in C++ #include <iostream> #include <cstdlib> #include <thread> #include <mutex> #include <vector> using namespace std; template <class T> struct RGB { T r, g, b; }; template <class T> class