[Isolate-interest] JSR-121 aggregates and links (strawman 10)
Godmar Back
gback@cs.vt.edu
Wed, 29 Sep 2004 10:25:03 -0400
A few more comments/questions:
A model where you pass rights might make some things easier also - in
particular, it might simplify resource management for the application
which then would not have to worry about closing/freeing/nilling. I
am also wondering if preforked server models can't be accomplished in
a different and more efficient way. I've always thought of dup(2) as
a Unix relict in the line of fork() - in other words, something we
wouldn't repeat in a new design.
What about subtypes? If the object being sent it a, say
SSLServerSocket, will the object received by a SSLServerSocket also?
Is the JSR-121 obliging all subclassers of Sendables to implement
JSR-121 send semantics?
Third, how does terminal control work when stdin FileDescriptors are
exchanged between Isolates?
- Godmar
On Wed, 29 Sep 2004 15:12:36 +0100 (BST), Miles Sabin
<miles@milessabin.com> wrote:
>
>
> Godmar Back wrote,
> > Are these Miles personal opinions or the opinions of the EG, and if
> > the latter, could someone point me at where you documented your
> > reasoning?
>
> I'd better leave it to Pete to answer that ;-)
>
> > Why did you discount the alternative of transferring the rights
> > associated with a capability?
>
> You mean in the sense that the sending Isolate automatically loses the
> capability when it hands it to the receiving Isolate?
>
> A couple of reasons. Partly because we explicitly wanted to be able to
> support a "preforked server" model for network servers, which requires
> that all listening Isolates share the same listening descriptor. And
> partly because it's both more general and marginally simpler to
> implement. If an application wants transfer semantics it can have them
> simply by closing it's descriptor bearing object after the transfer.
>
> Cheers,
>
> Miles
>
>
> _______________________________________________
> Isolate-interest mailing list
> Isolate-interest@altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/isolate-interest
>