Is there a way to compile multi-threaded C++ program with single-threaded version library?

I am trying to do a code auto-complile and auto-evaluaton program. I want to compare a program’s efficiency difference in multi-threaded mode and single-threaded mode. So I am wonder that if there is a compiling option that allows me to compile a multi-threaded program with a psudo-multithread library (which uses actually single threaded implementation) to derive a single-threaded program from the multi-threaded one.

Source: c++

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.