473,327 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Parallel Program

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
5 1733
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
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

"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: bpontius | last post by:
The GES Algorithm A Surprisingly Simple Algorithm for Parallel Pattern Matching "Partially because the best algorithms presented in the literature are difficult to understand and to implement,...
9
by: MNQ | last post by:
Hi All I want to use my parallel port of my PC to control some external devices. I am writing a program in ANSI C using the PacificC compiler. What I need to know is how to access the parallel...
3
by: paytam | last post by:
Hi all, Is it possible to write parallel programming in C? I mean for example a simple program like I have a clock on a program that show me current time and and at the same time another job like...
43
by: parallelpython | last post by:
Has anybody tried to run parallel python applications? It appears that if your application is computation-bound using 'thread' or 'threading' modules will not get you any speedup. That is because...
1
by: kmuz08 | last post by:
Hello to everyone, I have to do a project in my discovering programming class based on creating parallel arrays for an order form. I am still not completely sure was a parallel array...
1
by: ssndk123 | last post by:
Hi, Using the UserPort program that changes permissions in XP so that I am able to write directly to the parallel port using assembler.. I'm trying to send out square wave pulses for x number...
26
by: Prime Mover | last post by:
Hello all, I have got the pseudo-code below that I would like to convert to c language. The algorithm calculates Pi value. I am somewhat familiar with C language, but I am just starting to learn...
3
by: John | last post by:
I have a program that needs to run on a regular basis that looks at a queue table in my database. If there are items in the queue database I need to grab the data from the database and pass it to...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.