Parallel Program

Discussion in 'C Programming' started by chellappa, Nov 11, 2005.

  1. chellappa

    chellappa Guest

    Hi All,
    I need information running two function in parallel manner with out
    using fork .. because i am trying to use fork ..but fork create two
    process ..i will done through any other methods,one of my friend told
    using thread.please help how to use thread run two program in parallel
    manner
    advance thanks
    by
    chellappa
     
    chellappa, Nov 11, 2005
    #1
    1. Advertising

  2. chellappa

    Guest

    chellappa wrote:
    > Hi All,
    > I need information running two function in parallel manner with out
    > using fork .. because i am trying to use fork ..but fork create two
    > process ..i will done through any other methods,one of my friend told
    > using thread.please help how to use thread run two program in parallel
    > manner
    > advance thanks
    > by
    > chellappa


    How to create threads depends on your OS & available API. But since you
    have fork I'm assuming you have at least some POSIX compatability.
    Google "pthread" to learn about threads.
     
    , Nov 11, 2005
    #2
    1. Advertising

  3. chellappa

    pete Guest

    chellappa wrote:
    >
    > Hi All,
    > I need information running two function in parallel manner with out
    > using fork .. because i am trying to use fork ..but fork create two
    > process ..i will done through any other methods,one of my friend told
    > using
    > thread.please help how to use thread run two program in parallel
    > manner
    > advance thanks


    news:comp.unix.programmer

    http://www.ungerhu.com/jxh/clc.welcome.txt

    --
    pete
     
    pete, Nov 11, 2005
    #3
  4. chellappa

    Barry Guest

    "chellappa" <> wrote in message
    news:...
    > Hi All,
    > I need information running two function in parallel manner with out
    > using fork .. because i am trying to use fork ..but fork create two
    > process ..i will done through any other methods,one of my friend told
    > using thread.please help how to use thread run two program in parallel
    > manner
    > advance thanks
    > by
    > chellappa
    >


    You cannot run two programs in parallel using threads.
     
    Barry, Nov 11, 2005
    #4
  5. chellappa <> wrote:

    > I need information running two function in parallel manner with out


    [OT snipped]

    Please do not feed the trolls.

    --
    Christopher Benson-Manica | I *should* know what I'm talking about - if I
    ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
     
    Christopher Benson-Manica, Nov 11, 2005
    #5
  6. In article <dl26sl$8k8$>,
    Christopher Benson-Manica <> wrote:
    >chellappa <> wrote:
    >
    >> I need information running two function in parallel manner with out

    >
    >[OT snipped]
    >
    >Please do not feed the trolls.


    Or, to put it more succinctly:

    Not portable. Can't discuss it here. Blah, blah, blah.
     
    Kenny McCormack, Nov 11, 2005
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christopher Tidy
    Replies:
    4
    Views:
    602
    Christopher Tidy
    Jan 22, 2007
  2. moses
    Replies:
    10
    Views:
    1,636
    Martin Gregorie
    Sep 6, 2007
  3. Soren
    Replies:
    4
    Views:
    1,347
    c d saunter
    Feb 14, 2008
  4. Vivek Menon
    Replies:
    5
    Views:
    3,499
    Paul Uiterlinden
    Jun 8, 2011
  5. Vivek Menon
    Replies:
    0
    Views:
    1,809
    Vivek Menon
    Jun 10, 2011
Loading...

Share This Page