LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-13-2011, 01:49 AM   #1
fpfernando
LQ Newbie
 
Registered: Oct 2005
Distribution: RH 9
Posts: 24

Rep: Reputation: 15
Question on multi threading


I heard that, in Linux it not the process which is being scheduled instead its the thread which is being scheduled.

Now my question is that

I have two process P1 and P2, each process creates two threads, P1(T1, T2) and P2(T3, T4).
How will the threads be scheduled now.


Thanks in advance.

Fernando
 
Old 09-13-2011, 02:05 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
There are typically hundreds of processes and threads running on a typical Linux desktop. The scheduler determines when each gets to run. Scheduling is a complex subject.
 
  


Reply

Tags
scheduling, threads


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
Multi threading greplinux Linux - Newbie 2 12-29-2008 04:25 PM
multi threading slower than single threading on dual core. why? nebojsa.andjelkovic Programming 13 01-30-2007 09:56 PM
problems about multi-threading and/or multi-processing with tcp network in java ... alred Programming 5 06-23-2006 03:21 PM
Multi-threading question (for big time Pros) prakash_sinha Programming 13 07-14-2004 12:48 AM
Multi-threading rch Programming 3 03-30-2003 10:27 PM


All times are GMT -5. The time now is 03:56 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration