Gaia/Architecture Proposal: Difference between revisions

m
Line 343: Line 343:
= Threading Model =
= Threading Model =


One of the goal of the architecture is to provide an easy way to create multi-threaded applications via bridge abstractions and the avaibility of main-thread-only APIs for worker threads.<br />
One of the goal of the architecture is to provide
* an easy way to create multi-threaded applications via bridge abstractions
* a workaround to make main-thread-only APIs available to worker threads


That said this is hard to predict which threading model will fit better for which device. So the architecture is intended to be able to run on different threading models based on runtime informations such as the available number of cores, and the available memory of the device.
That said it's hard to predict which threading model will fit better on which device. So the architecture is intended to be flexible and run on different threading models based on runtime metrics such as the available number of cores and the available memory of the device.


This should let us use different threading model on a per hardware basis based on a configuration file per app.
This should let us use different threading model on a per hardware basis based on a configuration file per app.
Confirmed users
51

edits