Thread: popen is multithreading?

  1. #1
    Registered User
    Join Date
    Jan 2012

    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.

  2. #2
    Registered User
    Join Date
    Oct 2006
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. using popen
    By frs in forum Linux Programming
    Replies: 6
    Last Post: 06-14-2010, 01:26 PM
  2. popen()
    By lehe in forum Linux Programming
    Replies: 11
    Last Post: 07-24-2009, 11:57 AM
  3. popen(man XX | col -b)
    By MK27 in forum Linux Programming
    Replies: 2
    Last Post: 09-26-2008, 02:47 PM
  4. popen help
    By ojschubert in forum C Programming
    Replies: 2
    Last Post: 02-28-2005, 12:32 AM
  5. popen
    By Shakespeare in forum C++ Programming
    Replies: 1
    Last Post: 01-27-2003, 09:22 AM