> Hi Micke,
> micke 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 is 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?
> >
> >
> >
> Are you doing this in an attempt to implement
> SCHED_SPORADIC in
> solaris? Or is there a specific application that
> needs scheduling to be controlled by another process?
> If the latter,
> hy not "control" the scheduling from within the
> process?
> As I understand, from your later emails on this, you
> are using real-time
> and want to make sure that some thread(s) (non-real
> time) within the
> process get at least 5% of the cpu time? You could
> have a high priority
> thread that wakes up periodically and adjusts
> priorities of other
> threads as needed. (Of course, figuring out how much
> time each thread
> is running in order to determine the 5% figure may be
> problematic, but I
> suspect this could be figured out based on the work
> that each thread does).
>
> As Darren asked, what is the real problem you are
> trying to solve? Why
> are you using real-time?
>
> max
> > Thanks
> > /Micke
> >
> >
> > This message posted from opensolaris.org
> > _______________________________________________
> > opensolaris-code mailing list
> > [email protected]
> >
> http://mail.opensolaris.org/mailman/listinfo/opensolar
> is-code
> >
> >
>
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolar
> is-code
The real problem is that I'm doing a user-space scheduler, for education
purpose, and I need my scheduling thread to change the priority of threads in
other processes. But it seems impossible to do in an easy way. :( And yes it
have to be a real-time scheduler, because I'm studying real-time systems and
scheduling real-time systems.
Thanks
/Micke
Message was edited by:
mikber-0
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code