Re: Threading Concept in Linux....?



On May 28, 1:19 pm, Murali <nalajala.mur...@xxxxxxxxx> wrote:
Hi all,

1) I have a small doubt in Linux Basics.
Wether the Linux having threading concept ?

The Linux kernel doesn't, everything in Linux is a process.

I heard Linux treat everything as a process ? Is it true ?

Yes

If not how can i found that linux suppport threading concept ?

Processes in Linux can share certain resources with other processes.
Libraries like pthread make use of this feature to bring threads to
user-space. Threads in Linux are processes that share their process
address space with other processes.

For a mored detailed explication have a look at
http://www.samspublishing.com/articles/article.asp?p=368650&seqNum=3&rl=1

2) I would like to know the difference between Process/Thread and
Task.

Task: AFAIK there is no official definition, i'd say something like
"unit of concurrency"

Process: Each process has it's own address space

Thread: A thread shares it's address space with other threads

regards

Matthias


.



Relevant Pages

  • Re: Threading Concept in Linux....?
    ... | 1) I have a small doubt in Linux Basics. ... | Wether the Linux having threading concept? ...
    (comp.os.linux.embedded)
  • Threading Concept in Linux....?
    ... I have a small doubt in Linux Basics. ... Wether the Linux having threading concept? ...
    (comp.os.linux.embedded)
  • Re: Wasting our Freedom
    ... I recognize that writeup about the Atheros / Linux / SFLC story is a ... Theo is going to make sure people understand what ... people that have been working on it for the Linux kernel has added their own ... It is now obvious that you have no interest in facts, ...
    (Linux-Kernel)
  • [reiserfs] exception/panic while trying to write data
    ... While trying to upgrade from Linux 2.6.7 to Linux 2.6.11.12, ... Aug 8 16:37:46 linux kernel: ReiserFS: hdh1: checking transaction log ... invalid format found in block 12812288. ... Fsck? ...
    (Linux-Kernel)
  • Re: patches question
    ... Speaking of which, here's the FAQ update patch I sent Richard last month, just ... +The Linux Kernel ... It explains how to compile, install, and run a Linux kernel. ... -Linux Documentation Project ...
    (Linux-Kernel)