micke wrote: > 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.
By real-time do you mean the processes are running in the RT scheduling class ? Which scheduling classes are A and B in for your example ? > So to answer your question, NO, the kernel cant schedule the threads good > enough. ;) I seriously doubt you could do that in userland either but without knowing what sched classes you are doing I can't be sure. Though to my knowledge even if you could get the id type you needed there is no way a userland process can make scheduling choices for an lwp in another process. > 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? No it isn't. -- Darren J Moffat _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
