Like Tree1Likes
  • 1 Post By Elkvis

popen is multithreading?

This is a discussion on popen is multithreading? within the C++ Programming forums, part of the General Programming Boards category; I want to learn multithreading in C++. somewhere on internet I got a piece of code using popen() function of ...

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    2

    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
    Posts
    2,370
    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.
    Salem likes this.

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-27-2005, 11:32 PM
  5. popen
    By Shakespeare in forum C++ Programming
    Replies: 1
    Last Post: 01-27-2003, 08:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21