Thanks again,
I think I have found what I am looking for, I will summarise and leave
the list for the moment but I hope in the future it will be useful the
project. My questions can be somewhat answered by telling you that in
general I am on the right tracks and there are various implementations
of the JVM that may provide optimizations. It requires more study.
I have designed (not built) a framework very similar to MINA however one
of my aims was to make synchronization an inherent part of the design,
i.e. remove any cases that required you to explicitly synchronize on a
particular object. The idea is to factor out any component code that
deals with 'locking' so the developer does not have to worry about
making it 'thread safe'.
At the moment I am trying to find out where it will plug in, I will come
back when I have something more tangible. I have enjoyed watching this
project grow over the years, keep up the good work.
Simon
Emmanuel Lecharny wrote:
Simon Funnell wrote:
Dear List,
This is not exactly Mina specific, its more general, but its close to
the problem Mina surrounds. I have been working on an approach to
concurrency and I have come to the point where the Java Thread model
is causing me problems. I would like to create my own threading model
that does away with shared memory and thread memory, so there is just
shared memory. My original idea was to use a single thread and
implement my own threads within that thread. The difficulty with this
is that there is still copying from shared memory to thread working
memory (as I understand it). I would like to cut out this shared
memory to thread memory and back to shared memory copying. Is this
possible?
Some good pointers :
http://www.cs.umd.edu/~pugh/java/memoryModel/
http://www.javaconcurrencyinpractice.com/
http://java.sun.com/docs/books/jls/second_edition/html/memory.doc.html
FYI, MINA is a "network application framework which helps users
develop high performance and high scalability network applications
easily.". Nothing related to you needs, AFAIK.
Please let this mailing list focused on MINA related questions.
Thanks !