Newsgroups: comp.os.parix
From: oberhube@Informatik.TU-Muenchen.DE (Michael Oberhuber)
Subject: Re: Thread ID ?
Organization: TU M"unchen (FRG)
Date: 8 Nov 1994 08:56:06 GMT
Message-ID: <39nef6$acq@hpsystem1.informatik.tu-muenchen.de>


In article <39l0l1$4uv@rzsun02.rrz.uni-hamburg.de>, jim@ariel.ti2.tu-harburg.de (Juergen W. Meyer) writes:
|> Hi netters,
|> 
|> does anyone know, if it there exists something like a tread ID or
|> a simple thread number when using Parix? It is easy to find out
|> on which processor a tread is running, but I need to know which
|> of one processor's threads is calling a global function.
|> 
|> Any idea?
|> 

Hi Juergen,

this depends on the parix version you are using. In case of 
Parix1.2 for PowerPC it is quite easy. There exists a function
called 'GetGlobId' providing a global id of each thread (including 
the one that is calling). 
Otherwise the only thing to identify a thread is its pointer
to 'thread_t' structure. There exists a function called 'GetThreadPtr', 
that might provide the thread_t pointer of the calling thread, but 
i neither know the semantics nor the syntax of it.

hope that helps
 Michael


           

