LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   using multicores (https://www.linuxquestions.org/questions/linux-general-1/using-multicores-941322/)

vardhan22 04-23-2012 11:09 AM

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.. :)

TB0ne 04-23-2012 11:18 AM

Quote:

Originally Posted by vardhan22 (Post 4660886)
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.

vardhan22 04-23-2012 12:55 PM

Quote:

Originally Posted by TB0ne (Post 4660896)
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...

vardhan22 04-23-2012 01:05 PM

Quote:

Originally Posted by TB0ne (Post 4660896)
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.

TB0ne 04-23-2012 01:15 PM

Quote:

Originally Posted by vardhan22 (Post 4660946)
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.

vardhan22 04-23-2012 01:39 PM

Quote:

Originally Posted by TB0ne (Post 4660951)
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,


All times are GMT -5. The time now is 04:17 PM.