|
Home > Archive > Unix Programming > April 2006 > fork function
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| bob@coolgroups.com 2006-04-27, 7:56 am |
| let's say you call the fork function on unix c++.
does this create a new process or a new thread?
if it's a process, how do you create a new thread?
| |
| Barry Margolin 2006-04-27, 7:56 am |
| In article <1145578628.670054.206350@i40g2000cwc.googlegroups.com>,
bob@coolgroups.com wrote:
> let's say you call the fork function on unix c++.
>
> does this create a new process or a new thread?
Process. Isn't this in the first sentence of its man page on your
system?
> if it's a process, how do you create a new thread?
pthread_create
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
| |
| DaVinci 2006-04-27, 7:56 am |
|
Barry Margolin wrote:
> In article <1145578628.670054.206350@i40g2000cwc.googlegroups.com>,
> bob@coolgroups.com wrote:
>
>
> Process. Isn't this in the first sentence of its man page on your
> system?
>
>
> pthread_create
I had installed the dev man pages, but I can't find the man page of
pthread_create and other pthread_* .
I can find the man pages of fork ,c library and so on.but no thread
>
> --
> Barry Margolin, barmar@alum.mit.edu
> Arlington, MA
> *** PLEASE post questions in newsgroups, not directly to me ***
> *** PLEASE don't copy me on replies, I'll read them in the group ***
|
|
|
|
|