[EMAIL PROTECTED] wrote:
>
> >Hi, is this possible in Solaris?
> >
> >in user-space:
> >
> >process A is running, its job is to schedule threads.
> >
> >process B is also running, making a new thread t1, process B wants A to
> >schedule this thread t1.
> >
> >is this possible? that is, I need to get the thread id from thread t1, in
> >process B this will just
> be an int when I use pthread_self(), I get lets say 1. That make no sense
> for process A, since 1 i
> s just the "local" thread id in process B.
> >
> >So how do I get to "global" thread id? and how to best send this to process
> >A?
>
>
> There is no such thing as a "global thread id".
On Linux, thread ids are PIDs and so Linux people believe this.
On Solaris tids are small numbers that are only valid in the same address space.
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code