Boost logo

Threads-Devel :

Subject: Re: [Threads-devel] On Linux boost threads are listed as processes
From: Jon Biggar (jon_at_[hidden])
Date: 2010-02-27 02:48:09


Neetu Garg wrote:
> Hi,
>
> I have one very basic question. I am new to linux/Unix environment. I have very basic multithreaded program based on boost thread library(program pasted in end):
>
> In Windows Env:
> * compiled and linked program statically
> * Ran the program and saw just one process in "task manger"
>
> In Linux Env
> * compiled and linked program statically
> * Ran the program and saw 10 processes(I created 10 threads in my program) listed when I did "ps -e".
>
> I am not sure how I am end up creating 10 process.
>

Linux gives threads process ids. Don't worry, they are real threads.

-- 
Jon Biggar
jon_at_[hidden]
jon_at_[hidden]
jonbiggar_at_[hidden]

Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk