Difference between revisions of "Uno/Effort/Binary/Extend Threading-Model"
(→Tasks) |
(Replace threading framework with extended threading-model.) |
||
Line 1: | Line 1: | ||
Type: [[Uno/Term/Effort|effort]] Status: in progress(UTF2) Owner: [[KR|Kay Ramme]], [mailto:Kai.Sommerfeld@sun.com] | Type: [[Uno/Term/Effort|effort]] Status: in progress(UTF2) Owner: [[KR|Kay Ramme]], [mailto:Kai.Sommerfeld@sun.com] | ||
− | '''The mission of the [[Uno]] threading | + | '''The mission of the [[Uno]] extend threading-model is, to provide a way to design an applications [[Uno/Term/Threading-Architecture|threading-architecture]] independent of the implementations.''' This can be described as [[Uno/Term/Transparent Concurrency|'''transparent-concurrency''']] wrt the implementations. |
==Problem== | ==Problem== | ||
− | Not everything should be required to be implemented [[Uno/Term/Thread Safe|thread-safe]]. | + | Not everything should be required to be implemented [[Uno/Term/Thread Safe|thread-safe]]. E.g. see [http://home.pacbell.net/ouster/threads.pdf comments] from John Ousterhout regarding multi-threading. Encapsulation of [[Uno/Term/Thread Affine|thread-affinity]] should be easy. |
− | Encapsulation of [[Uno/Term/Thread Affine|thread-affinity]] should be easy. | + | |
==Solution== | ==Solution== | ||
− | The [[Uno]] | + | The extended [[Uno]] threading-model is going to basically introduce the notion of an apartment into the [[Uno]] world. An apartment in [[Uno/Term|Uno terms]] is a [[Uno/Spec/Purpose Environment|purpose environment]]. Such an environment can be seen as a dedicated part of a process, giving space for objects of the same [[Uno/Term/Object Binary Interface|Object Binary Interface (OBI)]] and the same purpose. An environment can only be entered and left via defined doors, being proxy objects representing objects outside respectively inside the environment. |
[[Image:UNO_Envs.jpg]] | [[Image:UNO_Envs.jpg]] | ||
− | All calls from one [[Uno/Spec/Environment|Uno Environment]] to another are intercepted, references to local objects are replaced with proxies to these local objects, this operation is called "mapping" in | + | All calls from one [[Uno/Spec/Environment|Uno Environment]] to another are intercepted, references to local objects are replaced with proxies to these local objects, this operation is called "mapping" in Uno terms. Actually, an object gets "mapped" from one [[Uno/Spec/Environment|Uno Environment]] to another. Proxies already representing to be mapped objects of another [[Uno/Spec/Environment|Uno Environment]] become reused during the "mapping" operation, ensuring that an object can only be "mapped" once. |
− | [[Uno/Spec/Purpose Environment|Purpose environments]] may be dedicated to MutExes or threads. In the sense, that a MutEx becomes acquired or a thread gets switched before a call enters an environment. | + | [[Uno/Spec/Purpose Environment|Purpose environments]] may be dedicated to MutExes or threads. In the sense, that a MutEx becomes acquired or a thread gets switched to before a call enters an environment. |
==Time Frame== | ==Time Frame== | ||
− | Current understanding of the topic lets us think, that the first changes of OOo / [[Uno]] on behalf of the | + | Current understanding of the topic lets us think, that the first changes of OOo / [[Uno]] on behalf of the extend threading-model are going to be integrated into one of the next updates, probably late in 2006. The plan is, to implement the whole stack into the UTF2 CWS to ensure that everything works as expected, and to split the implementation into 'integration chunks', to be integrated with different CWS, to reduce the risk of breaking anything. |
==Tasks== | ==Tasks== |
Revision as of 11:30, 25 October 2006
Type: effort Status: in progress(UTF2) Owner: Kay Ramme, [1]
The mission of the Uno extend threading-model is, to provide a way to design an applications threading-architecture independent of the implementations. This can be described as transparent-concurrency wrt the implementations.
Contents
Problem
Not everything should be required to be implemented thread-safe. E.g. see comments from John Ousterhout regarding multi-threading. Encapsulation of thread-affinity should be easy.
Solution
The extended Uno threading-model is going to basically introduce the notion of an apartment into the Uno world. An apartment in Uno terms is a purpose environment. Such an environment can be seen as a dedicated part of a process, giving space for objects of the same Object Binary Interface (OBI) and the same purpose. An environment can only be entered and left via defined doors, being proxy objects representing objects outside respectively inside the environment.
All calls from one Uno Environment to another are intercepted, references to local objects are replaced with proxies to these local objects, this operation is called "mapping" in Uno terms. Actually, an object gets "mapped" from one Uno Environment to another. Proxies already representing to be mapped objects of another Uno Environment become reused during the "mapping" operation, ensuring that an object can only be "mapped" once.
Purpose environments may be dedicated to MutExes or threads. In the sense, that a MutEx becomes acquired or a thread gets switched to before a call enters an environment.
Time Frame
Current understanding of the topic lets us think, that the first changes of OOo / Uno on behalf of the extend threading-model are going to be integrated into one of the next updates, probably late in 2006. The plan is, to implement the whole stack into the UTF2 CWS to ensure that everything works as expected, and to split the implementation into 'integration chunks', to be integrated with different CWS, to reduce the risk of breaking anything.
Tasks
Area | Title | State | Location |
Binary Uno | Implement Threading-Model | 90% | UTF2 |
Binary Uno | Adapt Threading Architecture | 90% | UTF2 |
Binary Uno | Uno/Effort/Binary/Implement Environment Stack Support | 50% | UTF2 |
Binary Uno | Purpose Bridge Tester | 80% | UTF2 |
C++ Uno | Threading-Model | 75% | UTF2 |
C++ Uno |
Misc Improvements
|
100% | krmisc |
C++ Uno | Purpose Bridge Implementation Helper | 100% | UTF2 |