LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-16-2009, 10:25 AM   #1
jkeertir
Member
 
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,
Keerti
 
Old 04-16-2009, 11:01 AM   #2
sneakyimp
Member
 
Registered: Dec 2004
Posts: 795

Rep: Reputation: 50
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.
 
  


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
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


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