> micke wrote: > > Hi, is this possible in Solaris? > > > > in user-space: > > > > process A is running, its job is to schedule > threads. > > In Solaris the kernel does thread scheduling. Why > are you trying to do > thread scheduling in a userland process do you really > believe a userland > program knows better about how to schedule than the > kernel does (do you > cover HT, CMT, multicore, cc-NUMA)? > > What is the real problem you are trying to solve here > ?
Imagen a real-time system under overload that you, even under overload, want to have say 5% of the cpu available for other non real-time threads. So to answer your question, NO, the kernel cant schedule the threads good enough. ;) pthread_self() is useless for me since it only returns the "internal" tid for the process making that specific thread. and is of no use to other processes. So, my question is still: Is it possible to get the lwp_ip/thread id of an thread? and use it from another process the change to priority of this thread? This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
