Each task (Active Object or AO) has a run function that does some work
and then relinquishes control back to the scheduler. The task can
request additional time, schedule itself to run again at some future
time, or wait for another task to send it a message to wake it up.

On Dec 5, 1:05 am, jason <[EMAIL PROTECTED]> wrote:
> Hi Dave Sparks,
>
> Thanks :-)
>
> Would you like to describe the scheduler model? It may help me to
> understand the opencore arch.
>
> Best Regards
> Jason
>
> On Dec 5, 4:03 pm, Dave Sparks <[EMAIL PROTECTED]> wrote:
>
> > OpenCore has a cooperative multi-tasking scheduler that runs on a
> > single pthread. You will probably recognize the scheduler model if
> > you've worked on another prominent OS for mobile devices.
>
> > I'm not that familiar with the scheduler code, but I believe that's
> > the equivalent of a thread ID.
>
> > On Dec 4, 11:37 pm, jason <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I have some questions about scheduler:
>
> > > 1. Is there a scheduler in one thread?
> > > 2. In multi-thread case, how to schedule these threads by scheduler?
> > > 3. I see the iNumAOAdded++, but no iNumAOAdded-- as follows
>
> > > void PVActiveBase::AddToScheduler()
> > > {
> > >     iThreadContext.EnterThreadContext();
> > >     if (iThreadContext.iScheduler)
> > >     {
> > >         iAddedNum = iThreadContext.iScheduler->iNumAOAdded++;
>
> > >         ...
> > >     }
>
> > > }
>
> > > Does it adds the counter as calling AddToScheduler?
>
> > > Best Regards
> > > Jason- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to