pthread.....threads or processes???

From: Arvind Varma Kalidindi (axvarma_at_lycos.com)
Date: 08/13/04


Date: 12 Aug 2004 18:54:51 -0700

Hi,
   I don't know whether this question has been covered in other
threads or not (i did a search and did not find similar topics in the
first 30 hits)...Anyways, my question is whether linux really
implements threads or not. I mean, threads are supposed to run in the
same address space as their parent. I wrote a couple of C programs and
used the pthread library. When I run ps -aux after invoking the
threaded program, i can see as many processes(with different process
id's) as there are threads in my program.
   If linux doesn't really create threads and creates processes
instead of them(this should be at the kernel level), then what's the
point of writing threaded programs in linux? Is the real thread
functionality going to be available in future revisions of linux or
did I misread something on my way??

Regards,
Arvind.



Relevant Pages

  • Re: Are you truly a M$ desktop alternative?
    ... Of course I'd rather update a single server than ... > question the move to a XP desktop amid the Linux hype in recent times. ... > integration and functionality? ... > The cost difference is obvious. ...
    (freebsd-questions)
  • RE: Are you truly a M$ desktop alternative?
    ... to run a kickarse Microsft 2K3 server Terminal Server, ... This email is going to any Linux house whom has pitched themselves via ... integration and functionality? ... The cost difference is obvious. ...
    (freebsd-questions)
  • Re: so sick of vendors who advertise linux compatibility but no real support
    ... level of functionality you are talking about with embedded linux if you had ... My review of the linux driver code and support documents shows that this ...
    (comp.os.linux.embedded)
  • Re: Duhh..( Ping Frozzy, Kai, Rev and that other d00tchie...)
    ... And that has a giant choice of Linux distro's like Red Hat, Mandrake, ... the level of quality and functionality of Microsoft's, ... even make use of what your software is capable of doing...the sad ... "Usenet Filters - Learn to shut yourself the fuck up!" ...
    (alt.2600)
  • Re: Duhh..( Ping Frozzy, Kai, Rev and that other d00tchie...)
    ... And that has a giant choice of Linux distro's like Red Hat, Mandrake, ... the level of quality and functionality of Microsoft's, ... even make use of what your software is capable of doing...the sad ... "Usenet Filters - Learn to shut yourself the fuck up!" ...
    (alt.2600)