pthread.....threads or processes???
From: Arvind Varma Kalidindi (axvarma_at_lycos.com)
Date: 08/13/04
- Next message: Arvind Varma Kalidindi: "Re: Basic question: enforcing minimum kernel versions/package versions"
- Previous message: Patrick McDonnell: "Complex Network Setup"
- Next in thread: mjt: "Re: pthread.....threads or processes???"
- Reply: mjt: "Re: pthread.....threads or processes???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Arvind Varma Kalidindi: "Re: Basic question: enforcing minimum kernel versions/package versions"
- Previous message: Patrick McDonnell: "Complex Network Setup"
- Next in thread: mjt: "Re: pthread.....threads or processes???"
- Reply: mjt: "Re: pthread.....threads or processes???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|