-
popen is multithreading?
I want to learn multithreading in C++. somewhere on internet I got a piece of code using popen() function of stdio.h. I just wanted to know that if this function helps in creating the new threads or it doesn't come under multithreading. Please guide me in multithreading.
-
popen is not really multithreading, but rather it is a way of running an unrelated process and either getting its output, or sending it some input.
multithreading is usually achieved with threading libraries like pthreads or the windows API thread functions. the new C++ standard includes threading functionality, and if you look up the <thread> header, you should find something useful. otherwise, check out boost::thread for cross-platform threading.