LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 11-20-2012, 05:24 PM   #1
bunny85
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Threading in linux


I'm new to linux and learing about threading in linux. i would like to know how linux handles threads? and are threads faster in linux than in windows?
any reference or documents wuld really help

Last edited by bunny85; 11-20-2012 at 05:30 PM.
 
Old 11-20-2012, 05:35 PM   #2
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
Welcome to LQ, and yes Linux is faster in everyway you can imagine lol! There are a lot of differing camps and opinions on wither POSIX threading is faster or better than Win32 threading. Its difficult to make comparisons because the way Linux handles processes and threads is entirely different than the way a Windows system will handle them. So there is no real apples to apples comparisons to be made. The way Linux works is entirely different from Windows so its difficult to just pull out one aspect and compare them. I think you need to consider all of the functions an OS does in order to determine which is faster and or better. For more in dept information on how Linux or any POSIX compliant OS handles threads read this http://www.ibm.com/developerworks/li...ix1/index.html
 
Old 11-20-2012, 05:46 PM   #3
bunny85
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
thanks for the reply. i would like to know how linux handles user threads..
and r user threads given low priority in linux?

Last edited by bunny85; 11-20-2012 at 05:49 PM.
 
Old 11-20-2012, 05:55 PM   #4
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
There is a clear distinction between kernel and user in Linux , so by definition a user thread would be given a lower priority say over a kernel thread, this is to keep the core of the OS intact so no one user process could bring a system to it's knees. I think you should take some time and read this from the Linux Documentation Project, this site has TONS of resources for new users and you sound like your a programmer, this may be able to better explain what your wanting to know than I can http://www.tldp.org/FAQ/Threads-FAQ/index.html and all of their documentation can be found at http://www.tldp.org
 
Old 11-21-2012, 08:54 AM   #5
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,752

Rep: Reputation: 189Reputation: 189
http://www.ibm.com/developerworks/li...lpic1-v3-103-6
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
multi threading slower than single threading on dual core. why? nebojsa.andjelkovic Programming 13 01-30-2007 09:56 PM
threading in linux sameersbn Programming 1 06-13-2005 07:15 AM
Linux and Threading cpus Veteq Linux - Hardware 14 12-17-2004 02:06 PM
how to do threading in linux? shrike_912 Programming 2 11-04-2004 09:45 PM
Linux threading behaviour Marius2 Programming 2 03-02-2004 12:39 PM


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