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
--~--~---------~--~----~------------~-------~--~----~
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