The Android OS is Linux, literally.

So literally, it will have a Linux scheduler.

The switching generally happens based on time slices...

The current scheduler used by *Linux* is the Completely Fair Scheduler..

http://en.wikipedia.org/wiki/Completely_Fair_Scheduler

However, at the level of an *app* you don't see this as much.  You
interact with the Dalvik VM and other higher level facilities of the
Android runtime system, not really the scheduler.

Dalvik has a thread scheduler, or at least, what you might call a
threading model.  Within Dalvik, Threads are treated as actual
pthreads (at least, the last time I checked).

kris

On Tue, Sep 25, 2012 at 5:55 PM, bob <[email protected]> wrote:
> What causes the Android OS to switch to a different process?
>
>
> Does it do a process switch after every x nanoseconds or so?  After every x
> instructions?
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" 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-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to