Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-16-2009, 10:25 AM   #1
Registered: Mar 2008
Posts: 70

Rep: Reputation: 15
process and threads

Dear ALL,

Can anyone tell me how does kernel differentiates between a thread and a process?

With regards,
Old 04-16-2009, 11:01 AM   #2
Senior Member
Registered: Dec 2004
Posts: 1,025

Rep: Reputation: 67
A process has a lot more data associated with it and is typically scheduled by the kernel. A process may have several threads. If you have two processes working together, getting them to communicate with each other can be quite an involved task.

Threads, on the other hand, live within a process and essentially share variables. In fact, you have to take special care to prevent them from fighting over the same variables and data resources as they run.

Maybe start with this wikipedia article on lightweight processes.


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
syncing threads from different process navderm Programming 3 01-05-2009 11:06 AM
Can i find all threads by a process? msbinu Linux - Newbie 1 09-19-2008 12:32 AM
what happens to threads if i kill the process ? psh2001 Programming 4 08-11-2007 11:21 PM
How to View Threads per Process Shashi Linux - Software 0 08-01-2003 01:37 AM
Threads And Process Penguinizer Programming 1 02-18-2003 09:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:32 AM.

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