python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
ThreadPoolExecutor really only executing amount if tasks given?
In my Main Class I'm calling the Runnable Class Browser multiple times with an URL using blockingQueue.offer(..), which is linked to my
ThreadPoolExecutor pool =
new ThreadPoolExecutor...

Max
Votes: 0
Answers: 0
How to show JList from a blockingQueue?
I'm using multi threading with Java, I have a thread that will post a message into a queue, a blockingQueue which is thread safe, and I have another thread, implementing a GUI with swing.
Everytime I'...

WHXY
Votes: 0
Answers: 1
Thread sending data to wrong client. Is this a thread safety issue?
I'm currently developing a server that deals with clients using a consumer/producer approach with threads and a blocking collection as shown below:
public class NetworkClient
{
private bool _start...
Tayyab Hussain
Votes: 0
Answers: 1
When to use BlockingQueue over TransferQueue?
Difference between BlockingQueue and TransferQueue have well explained the difference between these two queues, but looks like TransferQueue is just a better version of BlockingQueue.
Is there any sit...
Deqing
Votes: 0
Answers: 1