LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-25-2009, 01:13 AM   #1
chamila1986
Member
 
Registered: Oct 2009
Posts: 31

Rep: Reputation: 15
Several threads in multi core machine


If a process executes several threads(in multi core machine) does these threads are executes under same core where the process is running or is the linux kernel determine which thread to run in which core????????
 
Old 10-25-2009, 06:36 AM   #2
haikan
LQ Newbie
 
Registered: Jul 2009
Location: Ålesund, Norway
Distribution: Slackware, Linux Mint
Posts: 20

Rep: Reputation: 2
Quote:
Originally Posted by chamila1986 View Post
If a process executes several threads(in multi core machine) does these threads are executes under same core where the process is running or is the linux kernel determine which thread to run in which core????????
The kernel will schedule all threads freely between available CPU cores, unless you assign a CPU affinity mask.
 
1 members found this post helpful.
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multi threads server lrios Programming 3 06-20-2008 01:24 AM
what should I be care of multi-threads C program naihe2010 Programming 4 11-05-2006 10:36 PM
Multi Squids on One machine------ pal Linux - Newbie 4 07-04-2005 10:06 AM
Email and multi-distro machine idris1388 Linux - Software 6 03-21-2004 08:42 AM
Multi-machine download manager? Saffsd Linux - Newbie 2 01-21-2004 06:14 AM


All times are GMT -5. The time now is 01:14 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration