LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-23-2012, 12:09 PM   #1
vardhan22
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Rep: Reputation: Disabled
using multicores


hi all,
i want to implement parallel programming in C
my processor is dual core, so i think i can assign each cores to work simultaneously. Is it possible. if yes,how to do this?
One thread will work with one core other will work with other core and finally i can get the combined result.
I want to this in C...

Help..
 
Old 04-23-2012, 12:18 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,716

Rep: Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091
Quote:
Originally Posted by vardhan22 View Post
hi all,
i want to implement parallel programming in C
my processor is dual core, so i think i can assign each cores to work simultaneously. Is it possible. if yes,how to do this?
One thread will work with one core other will work with other core and finally i can get the combined result.
I want to this in C...

Help..
Help with WHAT? You're essentially asking us to write your code for you. Sorry, but no.

There are MANY examples of this you can find on the Internet...choose one, and modify it according to what you need.
 
Old 04-23-2012, 01:55 PM   #3
vardhan22
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Help with WHAT? You're essentially asking us to write your code for you. Sorry, but no.

There are MANY examples of this you can find on the Internet...choose one, and modify it according to what you need.
Sir,
i have created a multi-threaded program, in C, but it is executing sequentially, i want it to be executed parallely, what to do for that? i have searched it, but could not find the proper answer for that.
This i wanted to ask, but your reply was very rude. I thought this place is a very simple way of getting help. we can get help of almost every thing on internet, but there should be some place where you can get everything very easily with effective presentation and in easy understandable form. This is the place, if you do not want to reply, do not reply, but please do not discourage interested students.
I think, http://http://www.linuxquestions.org is also for beginners, not only for a pro like you...

Last edited by vardhan22; 04-23-2012 at 02:00 PM.
 
Old 04-23-2012, 02:05 PM   #4
vardhan22
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Help with WHAT? You're essentially asking us to write your code for you. Sorry, but no.

There are MANY examples of this you can find on the Internet...choose one, and modify it according to what you need.
And there is also a possibility that my question is not clear. If so, you should have said that, its a request from you sir, do not be rude with us.. This may discourage us.
 
Old 04-23-2012, 02:15 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,716

Rep: Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091
Quote:
Originally Posted by vardhan22 View Post
And there is also a possibility that my question is not clear.
Nope, very clear. You posted this:
Quote:
Originally Posted by vardhan22
i want to implement parallel programming in C
my processor is dual core, so i think i can assign each cores to work simultaneously. Is it possible. if yes,how to do this? One thread will work with one core other will work with other core and finally i can get the combined result.
I want to this in C...
You TELL us what you want/expect, but show NO effort of your own.
Quote:
If so, you should have said that, its a request from you sir, do not be rude with us.. This may discourage us.
Asking others to do your work, FOR YOU is rude. Also, you posted a similar thread here:
https://www.linuxquestions.org/quest...reduce-940589/

..where you say you're familiar with multi-thread programming, and were pointed to tutorials for it. Putting "linux multi core programming examples" into Google pulls up examples, one of which you were given in your other thread. More are easily found:
http://www.cs.stolaf.edu/mtl/

Again, showing some effort/code on your part will make it more likely for you to get help. TELLING us to look things up for you probably won't.

Last edited by TB0ne; 04-23-2012 at 02:21 PM.
 
Old 04-23-2012, 02:39 PM   #6
vardhan22
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Nope, very clear. You posted this:

You TELL us what you want/expect, but show NO effort of your own.

Asking others to do your work, FOR YOU is rude. Also, you posted a similar thread here:
https://www.linuxquestions.org/quest...reduce-940589/

..where you say you're familiar with multi-thread programming, and were pointed to tutorials for it. Putting "linux multi core programming examples" into Google pulls up examples, one of which you were given in your other thread. More are easily found:
http://www.cs.stolaf.edu/mtl/

Again, showing some effort/code on your part will make it more likely for you to get help. TELLING us to look things up for you probably won't.
Sir,
now i understood what you wanted to tell.
Next time, before posting any new thread, i will go thoroughly to whatever i am getting on googling. Actually, the forum makes things easy for me, from googling, i did not get what i want easily, but here i got, so i did this, next time i will not repeat this.

And one more thing, your link seems to be very useful, and i think i got what i want . Now, I will work on that.

Thank You Sir,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel, MySql, common apps and multicores Frakk Linux - Software 2 03-01-2011 07:10 AM
Measuring performance on MultiCores duryodhan Programming 6 04-30-2008 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration