By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,434 Members | 1,632 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,434 IT Pros & Developers. It's quick & easy.

Parallel Program

P: n/a
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

Nov 15 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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 15 '05 #2

P: n/a
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
Nov 15 '05 #3

P: n/a

"chellappa" <N.*********@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
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.
Nov 15 '05 #4

P: n/a
chellappa <N.*********@gmail.com> 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.
Nov 15 '05 #5

P: n/a
In article <dl**********@chessie.cirr.com>,
Christopher Benson-Manica <at***@nospam.cyberspace.org> wrote:
chellappa <N.*********@gmail.com> 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.

Nov 15 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.