473,385 Members | 1,409 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,385 software developers and data experts.

parallel processing

My question is to know how sophisticated is C for programming in parallel, all what I know is that C is sequential until know. Do you know if there have been some attends or versions of C to program in parallel.

I know that Haskell is there but you have to know to know something called Functional Programming.

Currently, Intel and AMD are using dual or quak cores but I can sense that they are still not using all of those cores. They might be sending a whole task to one core and the next to another core, but they are not parallelizing a task. It is hard to split one task when there are so many dependencies between data.

There are some algorithms already implemented in hardware but that is not parallel yet.

Well if somebody know about it. Let me know. Either if C is working on it or any other usefull information regardig this interesting topic. I am all ears, that is not a problem...

Thank you for your time.

Mario
Feb 12 '09 #1
3 2093
JosAH
11,448 Expert 8TB
Have a look at the pthread library; it is portable and offers multiple threading for your C programs in a simple way.

kind regards,

Jos
Feb 12 '09 #2
donbock
2,426 Expert 2GB
To the best of my knowledge, the "volatile" keyword is the only feature of the C language itself that has anything to do with parallel processing.

The real question is what support your operating system provides for parallel processing; and whether you have "C bindings" for those operating system features. That is, C-callable library functions to make use of the operating system features.

It would be possible to write your own nonpreemptive multi-thread environment that doesn't rely on the operating system (after all, many operating systems are written in C); but that would be a huge undertaking. I don't think that's what you're talking about.
Feb 13 '09 #3
donbock
2,426 Expert 2GB
@donbock
OK, maybe not huge ...
Expand|Select|Wrap|Line Numbers
  1. for (;;) {
  2.    thread1();
  3.    thread2();
  4.    ...
  5.    threadN();
  6.    }
... but the effort grows fairly quickly as you make this framework more flexible.

The thread functions shown above are little state machines: each time you call one it does a different portion of its overall task and then returns.
Feb 13 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Alexandre MELARD | last post by:
HI, I have a tricky problem about parallel processing using JavaScript. a script makes use of classes. 2 objects A and B are created at intialisation. The two objects make use of the same...
4
by: Mark D Powell | last post by:
SQL Server 2000 SP3A Last week one of our processes starting issuing or suffering deadlock detected errors every 15 minutes or so. I have read several articles at MS on the subject. I set a...
14
by: Dave Booker | last post by:
I'm doing some analysis that is readily broken up into many independent pieces, on a multicore machine. I thought it would be best to just queue like 1000 of these pieces in the ThreadPool, and...
4
by: sesling | last post by:
I currently use an SQL command line that utilizes parallel threads. ex. select /*+ PARALLEL (ACCOUNT 20) */ Account_ID, Customer_Name, Add_Date from Customer_Info. By running this query using...
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...
5
by: George Sakkis | last post by:
I'm looking for any existing packages or ideas on how to implement the equivalent of a generator (in the Python sense, i.e. http://www.python.org/dev/peps/pep-0255/) in a parallel/distributed way....
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...
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...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.