users@concurrency-ee-spec.java.net

[jsr236-spec users] ThreadLocal/Priority/OLTP

From: Mohan Radhakrishnan <radhakrishnan.mohan_at_gmail.com>
Date: Tue, 5 Feb 2013 11:23:11 +0530

Hi,

1.
        I have a general question that probably applies to all thread pools
but in this spec. threads are explicitly managed by the container. Are
there any rules regarding 'ThreadLocal' required ? Since the container
manages the threads apart from the fact that they are pooled there could be
application security restrictions on the sensitivity of information stored
by ThreadLocals.

Is this outside the scope of the spec ?

2. What is the meaning of the requirement of a slightly higher priority ?
Does this actually mean that internally a java.util.concurrent Queue or
something like that handles this ?

 3.1.4.1.3 OLTP Thread Pool

The OLTP (On-Line Transaction Processing) Thread Pool executor uses a
thread pool with many more threads and a low hung-task threshold. It also
uses a thread factory that creates threads with a slightly higher priority
and a ContextService with a limited amount of context information.

3. Are high-throughput OLTP applications envisaged by the adoption of the
spec. ?

Thanks,
Mohan