Share « concurrency « Java Thread Q&A

Home
Java Thread Q&A
1.concurrency
2.Development
3.Exception
4.Notify
5.Operation
6.Socket
7.State
8.synchronize
9.Thread Safe
10.ThreadPool
Java Thread Q&A » concurrency » Share 

1. Is it possible for two ExecutorServices to share a thread pool?    stackoverflow.com

I've got a collection of records to process, and the processing can be parallelized, so I've created an ExecutorService (via Executors#newCachedThreadPool())). The processing of an individual record ...

2. Why do threads share the heap space?    stackoverflow.com

Threads each have their own stack, but they share a common heap. Its clear to everyone that stack is for local/method variables & heap is for instance/class variables. What is the benefit of ...

3. Java share a variable between two threads    stackoverflow.com

I have two threads. One invokes the update method of a class that modifies a variable. Another invokes the update method of a class that reads the variable. Only one thread ...

4. Java Concurrency: Shared Memory Between Threads    stackoverflow.com

Suppose I have a Singleton class (any class can get the instance):

class data
{
      Color sun = "WHITE";
      String luminance = "HIGH";
 ...

5. Are static variables shared between threads?    stackoverflow.com

My teacher in an upper level java class on threading said something that I wasn't sure of. He stated that the following code would not necessarily update the ready variable. According ...

6. Java Threads reading and writing from a shared stack array    stackoverflow.com

The result of this program should be the same with 1 or 2 or 3 threads. However, the result with thread 1 is the real one. I think I am meshing ...

7. Data share between different threads    stackoverflow.com

I have one method under lock (ReentrantLock) this method sending some message to server, receiving response right away and create/save data in database. This response have id of message that was send. ...

8. What are the performance implication of sharing objects among threads?    stackoverflow.com

I know that reading from a single object across multiple threads is safe in Java, as long as the object is not written to. But what are the performance implications of ...

9. Concurrency accessing a shared resource    stackoverflow.com

I am writing a Java application, that access to a configuration file stored as a shared resource in a Windows server. The app is thought to be used by around 500 ...

10. Shared object / concurrency    coderanch.com

Hi folks, I have an object that is shared by several threads and is an observer. This object has the following methods: public void update( Observable arg, Object task ) throws IllegalStateException { setChanged(); notifyObservers( task ); } public void execute() { // do something } Considering several threads share this object to invoke the execute() method and that the update() ...

11. Sharing with Concurrency    forums.oracle.com

SwingWorker is not what im looking for. Imagine my process thread is an email messaging system, or an air traffic control system or something. Just because a component needs to access one thing in the system doesnt mean the whole system should be a SwingWorker. Essentially, in the locked "process(task)" method of my system, I need to pause and share something ...

12. shared data - concurrent access    forums.oracle.com

jverd wrote: I have no idea what you're asking. I cannot provide clarification until you do. Ok. let me explain further. my question is , is it a good idea that whenever we need shared concurrent data access in a application Entity bean is the best ? Why? does it really outsmart the jdbc DAO access methodology whenever it comes to ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.