473,499 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Please Need someone's help

I am a system programmer , doing my program in C/RedHat LINUX ES4.0
version. I want to do concurrent programming in C , which will utilise
my system's 4 processor simutaneously.
I need some one's help to proceed.
Looking for early reply.
Amartya

Mar 2 '07 #1
8 1453
Amar wrote:
I am a system programmer , doing my program in C/RedHat LINUX ES4.0
version. I want to do concurrent programming in C , which will utilise
my system's 4 processor simutaneously.
I need some one's help to proceed.
Looking for early reply.
The standard C library doesn't have thread support.

Ask on either a linux programming group, or if you have more general
questions about threading, comp.programming.threads.

--
Ian Collins.
Mar 2 '07 #2
Amar wrote:
I am a system programmer , doing my program in C/RedHat LINUX ES4.0
version. I want to do concurrent programming in C , which will utilise
my system's 4 processor simutaneously.
I need some one's help to proceed.
Looking for early reply.
Amartya
Get a good book on concurrency and threads and read it. Find out what
facilities your system provides for concurrency, (hint: most Linux'es
provide multi-threading with pthreads).

The C language itself knows nothing about threads or multiple
processes and provides no facilities for concurrency. You'd be better
of asking in groups like comp.programming.threads or
comp.os.linux.programming.apps etc. Do read the groups FAQ before
posting.

Mar 2 '07 #3
"Amar" <am***************@gmail.comwrites:
I am a system programmer , doing my program in C/RedHat LINUX ES4.0
version. I want to do concurrent programming in C , which will utilise
my system's 4 processor simutaneously.
I need some one's help to proceed.
Standard C doesn't provide any support for concurrent programming.
Ask in comp.unix.programmer or one of the Linux groups.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Mar 2 '07 #4

"Amar" <am***************@gmail.comwrote in message
>I am a system programmer , doing my program in C/RedHat LINUX ES4.0
version. I want to do concurrent programming in C , which will utilise
my system's 4 processor simutaneously.
I need some one's help to proceed.
Looking for early reply.
Amartya
Threads won't help much. Threads are for running two calculations on one
processor, whilst you want to run one calculation on two processors.

The standard interface for parallel programming is MPI. There is an ng
devoted to it. Though the C interface to MPI is a natural one to use, it is
classed as an extension and thus not topical here. That might have to change
since MPI is not strictly a library and throws up some compiler and stdlib
issues.

There is an MPI tuitorial on my website.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Mar 3 '07 #5
Malcolm McLean wrote:
>
"Amar" <am***************@gmail.comwrote in message
>I am a system programmer , doing my program in C/RedHat LINUX ES4.0
version. I want to do concurrent programming in C , which will utilise
my system's 4 processor simutaneously.
I need some one's help to proceed.
Looking for early reply.
Amartya
Threads won't help much. Threads are for running two calculations on one
processor, whilst you want to run one calculation on two processors.
Where did the OP state that?

--
Ian Collins.
Mar 3 '07 #6

Malcolm McLean wrote:
"Amar" <am***************@gmail.comwrote in message
I am a system programmer , doing my program in C/RedHat LINUX ES4.0
version. I want to do concurrent programming in C , which will utilise
my system's 4 processor simutaneously.
I need some one's help to proceed.
Looking for early reply.
Amartya
Threads won't help much. Threads are for running two calculations on one
processor, whilst you want to run one calculation on two processors.
No, threads can be distributively scheduled among multiple processors.

<snip>

Mar 3 '07 #7
On Fri, 2 Mar 2007 14:55:06 -0600, Amar wrote
(in article <11**********************@v33g2000cwv.googlegroups .com>):
I am a system programmer , doing my program in C/RedHat LINUX ES4.0
version. I want to do concurrent programming in C , which will utilise
my system's 4 processor simutaneously.
I need some one's help to proceed.
Looking for early reply.
I suggest David Butenhof's excellent book on Posix Pthreads, and
comp.programming.threads as backup to it.
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Mar 11 '07 #8
On Fri, 2 Mar 2007 18:11:29 -0600, Malcolm McLean wrote
(in article <XP*********************@bt.com>):
>
"Amar" <am***************@gmail.comwrote in message
>I am a system programmer , doing my program in C/RedHat LINUX ES4.0
version. I want to do concurrent programming in C , which will utilise
my system's 4 processor simutaneously.
I need some one's help to proceed.
Looking for early reply.
Amartya
Threads won't help much. Threads are for running two calculations on one
processor, whilst you want to run one calculation on two processors.
This is completely incorrect.
The standard interface for parallel programming is MPI.
I detect a bias, but even bias doesn't explain wrong answers that well.
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Mar 11 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2785
by: Candice | last post by:
Please somebody help! I've deleted my admin username and password which was initially set at test. Now I can't log into my website as the administrator. How do I put Username and Password back so...
16
3899
by: Thomas G. Marshall | last post by:
This message is sent to these newsgroups because they are no longer valid: comp.lang.java comp.lang.java.api comp.lang.java.bugs comp.lang.java.misc comp.lang.java.setup comp.lang.java.tech
5
2040
by: TrvlOrm | last post by:
HI There, I have been struggling with JavaScript code for days now, and this is my last resort! Please help... I am trying to create a JavaScript slide show with links for Next Slide,...
21
1935
by: salad | last post by:
Thanks for reading this post and wasting your time. I was thinking about writing about the PCDatasheet vs The Pussyfarts war. The pussyfarts, as near as I can tell, have little to offer this...
19
3221
by: sasan3 | last post by:
Every thread I start goes out on a tangent simply because some of you people are not reading my posts carefully: Here is the phrase I am proposing for inclusion in the FAQ: "to existing...
8
3138
by: CM | last post by:
Hi, Could anyone please help me? I am completing my Master's Degree and need to reproduce a Webpage in Word. Aspects of the page are lost and some of the text goes. I would really appreciate it....
7
1480
by: Mickyd1561 | last post by:
Hey everyone I'm new to this groups thing and thought maybe someone can help me. My problem is that I can't view specific images on only one website. www.baseballu.net is my baseball team's...
6
1493
by: darren112 | last post by:
Hi Im new to python and I desperately need help with this task.... This is everything of what I need to do....... The program to be written in Python obviously...... The program should support...
1
1706
by: Sean128 | last post by:
Hi, I hope someone can help me - this seems like it should be a really simple problem but I've been having trouble trying to solve it all week. I have hosted my website on a Linux server in 1...
1
2465
by: Sean128 | last post by:
Hi, I hope someone can help me - this seems like it should be a really simple problem but I've been having trouble trying to solve it all week. I have hosted my website on a Linux server in 1...
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7388
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.