Re: Threading Concept in Linux....?
- From: Michael Schnell <mschnell_at_bschnell_dot_de@xxxxxxx>
- Date: Mon, 28 May 2007 17:52:22 +0200
Murali wrote:
Hi all,
1) I have a small doubt in Linux Basics.
Wether the Linux having threading concept ?
That depends on what you mean by a "thread". I suppose to most people the main difference between threads and processes are that threads share things like memory pages and file handles. In Linux processes _can_ share memory pages and file handles. _Posix_ threads share time slices, so that a multi-threaded process is not granted more CPU time than a non-threaded process
I heard Linux treat everything as a process ? Is it true ?
No. That was true for he Linux Kernel up to v 2.4. Threads were done as processes sharing resources. The (Posix) Library made them look similar to (Posix-) threads.
With v 2.6 we have "NPTL" ("Native Posix Thread Library"). Here a process can get multiple threads with support of the Kernel. The (Posix) Library makes them real (Posix-) threads.
If not how can i found that linux suppport threading concept ?
"Posix thread library".
2) I would like to know the difference between Process/Thread and
Task.
see above
-Michael
.
- References:
- Threading Concept in Linux....?
- From: Murali
- Threading Concept in Linux....?
- Prev by Date: Re: Threading Concept in Linux....?
- Next by Date: Re: *** Software Architect & Lead Openings @ Hyderabad
- Previous by thread: Re: Threading Concept in Linux....?
- Next by thread: compiling c code but libraries are compiled in c++
- Index(es):
Relevant Pages
|