At this task, using threads are not necessary. You can simple call solution::process() in main