LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 10-25-2009, 12: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, 05:36 AM   #2
haikan
LQ Newbie
 
Registered: Jul 2009
Location: Ålesund, Norway
Distribution: Slackware, Linux Mint
Posts: 21

Rep: Reputation: 3
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



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
multi threads server lrios Programming 3 06-20-2008 12:24 AM
what should I be care of multi-threads C program naihe2010 Programming 4 11-05-2006 09:36 PM
Multi Squids on One machine------ pal Linux - Newbie 4 07-04-2005 09:06 AM
Email and multi-distro machine idris1388 Linux - Software 6 03-21-2004 07:42 AM
Multi-machine download manager? Saffsd Linux - Newbie 2 01-21-2004 05:14 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:07 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
Open Source Consulting | Domain Registration