LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial 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 12-14-2013, 03:09 AM   #1
doughyi8u
Member
 
Registered: Apr 2010
Posts: 154

Rep: Reputation: 1
what is a thread


In programming, what exactly is a thread? Is it when a program forks that it becomes another thread?
 
Old 12-14-2013, 11:49 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,770

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
No, fork creates a new process. Threads are 'sub-processes': they share the same address space. Read wikipedia for details.
 
  


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
Is there any way that application thread can boost priority of Kernel thread in Linux Chetansingh Parihar Linux - Kernel 4 07-25-2012 01:05 AM
How to bind a thread to specific thread in multithread application? h.aliee Programming 4 12-30-2010 03:11 PM
python thread safety: printing from thread to redirected stdout - safe? BrianK Programming 2 10-11-2010 11:28 AM
the return value of getpid() called from main thread and new thread r identical !!! cryincold Programming 3 02-29-2008 01:37 AM


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