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

Christian Bienia cbienia at CS.Princeton.EDU
Wed Aug 12 22:10:14 EDT 2009


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

More information about the parsec-users mailing list