-2
votes
0answers
25 views

eclipse console and cmd console - different results

I have problem with results of my code. It's a game application which consists of server and player classes. The problem is why using Eclipse program is working well, but using windows cmd results are ...
0
votes
0answers
18 views

How to run a long running processor async and use it from same thread?

Basically, we have a class called OfficeManger which acts as a driver to connect to openoffice software, it needs to be connected all the time so we can use the converter to convert documents. We ...
1
vote
3answers
52 views

Is this code threadsafe? Static method modifying http servlet request

I've a class with a static method which takes two parameters- HttpServletRequest request and HttpServletResponse response : public class RequestProcessor { public static ...
2
votes
1answer
38 views

Threads in ExecutorService not completing

I have a producer-consumer pattern. 1 producer (that does some work) and 7 consumers (on a 8 core machine). A producer is meant to download 7 files at a time (out of 2000) and wait for 7 threads to ...
1
vote
4answers
44 views

List concurrency failing

I have an Arraylist that I am constantly adding to and removing from in separate threads. One thread adds, and the other removes. This is the class that contains the changing list: public class ...
0
votes
0answers
36 views

How can host I Java application online? [on hold]

So I created this Multithreaded Java Application that makes hundreds of http requests per second and then analyzes the returned info. I'm running this program on my computer (consumes a lot of RAM) in ...
1
vote
1answer
16 views

Manage the response message in a Java client-server application

i'm working on an Java client-server application. The client send a message sequence (the messages can be different types, i,ve got header), and listens for the replies. I've got 2 thread, one for ...
-2
votes
2answers
38 views

Is it right to pass a JPanel as a parameter to other classes?

I'm sure it's not, but I am experiencing headaches thinking of alternative ways. I have a videogame panel with a background and a character-thread in it. The character keeps changing his position on a ...
0
votes
1answer
8 views

In JVisualVM thread count decreases drastically without any change configuration concern

We are monitoring JBOSS application for last few days and seeing thread count was ranging from 4000 to 6000. yesterday, All of sudden it decreased to 600-800 range and point to note down is we haven't ...
-1
votes
1answer
22 views

Shutdown Idle Threads ExecutorService

Is there a way to tell the ExecutorService to shutdown idle threads in a fixed threadpool scenario? Regards! ::Edit: Ok, I am getting frustrated. I have now switched to a ThreadPoolExecutor which ...
0
votes
2answers
58 views

Java multithreading and linkedlist operations

I run a java server to support an android game i am working on. The server receives a client socket, opens a new thread, read the object being sent from the client and perform operations on a ...
0
votes
1answer
32 views

wait()/Notify abnormal behaviour for current thread while receiving notifications

private boolean getNodeReachability(final String ip) { // TODO Auto-generated method stub if(!nodeReachabilityStatusMap.containsKey(ip)){ statusAvailable = Boolean.FALSE; new ...
0
votes
2answers
26 views

ProcessBuilder is holding a lock to the spawned process

I am invoking an external JAVA process from my program. I am consuming the output generated by that spawned process like this: DataInputStream dis = new DataInputStream(new ...
-1
votes
0answers
32 views

In an Android app, the content of an static ArrayList vanishes(= disappears) [on hold]

We have a lot of code and it's really messy and we can't show it. Everything works perfect, then when we add the code that reads from a JSON-file from the Internet it works perfect but then at a ...
0
votes
1answer
28 views

FATAL EXCEPTION: Thread-166

I'm trying to toast values in callscreen. This is my phonestate class, which extends phonestatelistener. Inside this I have created a thread class like this: class Test extends Thread implements ...

15 30 50 per page