[parsec-users] Thread creation in facesim (pthreads)

Vivek Rane vrane at seas.upenn.edu
Wed Aug 12 23:06:21 EDT 2009


That helps... thanks!

----- Original Message ----- 
From: "Christian Bienia" <cbienia at CS.Princeton.EDU>
To: "'PARSEC Users'" <parsec-users at lists.cs.princeton.edu>
Sent: Wednesday, August 12, 2009 10:10 PM
Subject: Re: [parsec-users] Thread creation in facesim (pthreads)


> Vivek,
>
> That's right, the master thread also serves as a worker.
>
> - Chris
>
>
> -----Original Message-----
> From: parsec-users-bounces at lists.cs.princeton.edu
> [mailto:parsec-users-bounces at lists.cs.princeton.edu] On Behalf Of Vivek 
> Rane
> Sent: Wednesday, August 12, 2009 7:39 PM
> To: parsec-users at lists.cs.princeton.edu
> Subject: Re: [parsec-users] Thread creation in facesim (pthreads)
>
> I need to obtain the thread IDs of all worker threads in facesim
> (built using pthreads). I was browsing through the code and found that
> the main loop created one thread less than the number specified
> (taskQDistCommon.c in the method taskQInit):
>
>  for ( i = 1; i < numThreads; i++)
>
> Does this mean that the main thread also acts as a worker thread? If
> not, where is the missing thread being created? This seems to be
> different from the strategy in blackscholes or bodytrack.
>
>  --
>  - Vivek
> _______________________________________________
> parsec-users mailing list
> parsec-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/parsec-users
>
> _______________________________________________
> parsec-users mailing list
> parsec-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/parsec-users
> 



More information about the parsec-users mailing list