Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 09-13-2011, 02:49 AM   #1
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.

Old 09-13-2011, 03:05 AM   #2
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: 330Reputation: 330Reputation: 330Reputation: 330
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.


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

All times are GMT -5. The time now is 04:38 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