The practice of multithreading is to parallelise our programs by using multiple threads.

Sub-pages

In C++

#include <thread>
int main () {
	thread workerThread (loadMapStreets); // starts workerThread
	loadMapOSM(); // main thread continues and runs loadmaposm
	workerThread.join(); // main thread waits for workerThread to finish
}