Re: Threading Concept in Linux....?



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
.



Relevant Pages

  • Re: How Common Lisp sucks
    ... Except that Linux has a process for managing change, ... The POSIX standard is analogous to the hyperspec. ... the Posix community has processes for developing and evolving ...
    (comp.lang.lisp)
  • Re: PTHREAD_DETACHED portabel?
    ... Einsatz des Linux Kernels POSIX Konformität zur Zeit nicht erreicht ... Wissens nach) noch nie einen Linux-kernel gegeben, ... Linux ist nicht einmal zu sich selbst konform, ... nur den Linux kernel gibt und der in jeder Version seine Schnittstellen ...
    (de.comp.os.unix.programming)
  • Re: cvs commit: src/usr.sbin/sysinstall main.c
    ... If it wasn't obvious from my post, I think that the POSIX putenvis ... most of the software in ports probably runs more often on Linux than ... :> Solaris (judging by Open Solaris's putenv() implementation). ... This breaks Linux and Solaris and POSIX as well. ...
    (freebsd-arch)
  • Re: 32 bit FORTH ??? Different tack! Jona
    ... get the whole Linux community to switch to your kernel. ... Linux is not just Linus. ... When you implement quite radical changes, you still can add a POSIX layer on ...
    (comp.lang.forth)
  • Re: cvs commit: src/usr.sbin/sysinstall main.c
    ... If it wasn't obvious from my post, I think that the POSIX putenvis ... most of the software in ports probably runs more often on Linux than ... :> Solaris (judging by Open Solaris's putenv() implementation). ... This breaks Linux and Solaris and POSIX as well. ...
    (freebsd-arch)