Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-30-2013, 11:59 PM   #1
Registered: Nov 2010
Posts: 57

Rep: Reputation: 0
Question Using multicores for programming

Hi Friends,

I have intel core i5 processor. I am using Geant4 ( on Ubuntu 12.04. When I run the process, only one core is used for that.

So, I would like to know how can I use all the cores for same process to save the time?
Is there need to do some setting in OS?

Old 10-01-2013, 01:13 AM   #2
Senior Member
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,854
Blog Entries: 36

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
Multithreaded programming is not for the feint of heart. That being said you're using a program which does not support multiple cores. Simulation scripting is very different from a compiled language (e.g. C) where a programmer can use libraries (pthreads, openmp, openmpi, etc) to multi-thread and manage the threads. Since threaded programming is outside of the scope of your question I'll skip that as it doesn't apply here.

Looking at the Geant 4 website you provided I gather the program is currently single threaded. However, their planned features for 2013 state multi-threading (i.e. using multiple cores) is a goal. You'll have to contact the original developers to find out more information about it as I've just gleaned this from their website after a quick viewing.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] using multicores vardhan22 Linux - General 5 04-23-2012 02:39 PM
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:51 PM.

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