Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [threadpoolexecutor]

In Java, an ExecutorService that executes each submitted task using one of possibly several pooled threads.

threadpoolexecutor
1 vote
1 answer
25 views

All thread blocked in a pool while handling multiple tasklist

I have some problems while using ThreadPoolExecutor and I cannot figure it out. I try to use two List<CompletableFuture<Void>> taskList lists to store tasks and then submit to a threadpool ...
lant's user avatar
  • 498
0 votes
0 answers
25 views

ThreadPoolExecutor slows down while running

I have a list of arguments that can be executed in any order. I have written one function to parse and write to an S3 bucket. The function output is a CSV file that's written to the bucket. def func(...
academy_courses2021's user avatar
1 vote
1 answer
43 views

Python: ThreadPoolExecutor or ProcessPoolExecutor out of memory

I have written an interface, which is mainly used to query data and return it to the front-end data file after processing. In the process of querying data, I use multiple threads, and processing data ...
ning's user avatar
  • 11
0 votes
1 answer
67 views

Why does my code time out with ThreadPoolExecutor but not with normal Threads

Trying to solve https://leetcode.com/problems/web-crawler-multithreaded/ This code works (well at least for the toy test cases before eventually TLE'ing) from collections import deque from urllib....
user1114's user avatar
  • 1,101
0 votes
2 answers
90 views

Getting an exception with MySQL queries and ExecutorService#submit

I'm trying to make the sql queries asynchronous but I'm getting the following exception: Exception in thread "main" java.sql.SQLException: Operation not allowed after ResultSet closed And ...
Santiago Narvaez's user avatar
0 votes
0 answers
11 views

Skipping any unreachable network device using concurrent.futures.ThreadPoolExecutor in python

With my portion of the code below using concurrent.futures.ThreadPoolExecutor if __name__ == "__main__": xw.Book("Main_Template.xlsm").set_mock_caller() test1 = ...
Flow-Pleyah's user avatar
0 votes
1 answer
52 views

Python - httpx or ThreadPoolExecutor

I have read a lot of things about ThreadPoolExecutor, httpx, requests and aiohttp on this website and others. But, for a production script, I don't know if it's better to use httpx or ...
Jeremy's user avatar
  • 69
0 votes
0 answers
29 views

Need to implement custom thread pool executor for tomcat 6.0.18 used by jboss 5.1.0 GA

I am using jboss 5.1.0 GA which internally uses tomcat. I need to clear MDC values before http thread goes into the pool/waiting stage I was searching for a way i can create custom thread pool ...
jayesh's user avatar
  • 11
-1 votes
1 answer
58 views

Concurrency thread not responding back

I'm trying to execute the below code for concurrency but the concurrency threads are never responding back. Please find the below pseudo-code, after creating the 10 parallel threads and the control is ...
Arun Sai Mustyala's user avatar
1 vote
0 answers
27 views

How to optimize apscheduler for parallel processing with ThreadPoolExecutor and ProcessPoolExecutor

I'm using apscheduler to run several robot tasks in parallel, but I'm experiencing inconsistent performance. Initially, tasks process quickly, but they slow down over time. I need to process 5,000 ...
Luana Nitsche's user avatar
1 vote
1 answer
56 views

Java asynchronous servlets

We are using asynchronous servlets with the following mechanism (Asynchronous servlet not acting asynchronously) @WebServlet(urlPatterns = { "/test" }, asyncSupported = true) public class ...
benchpresser's user avatar
  • 2,188
0 votes
0 answers
41 views

ThreadPoolExecutor cant be interrupted

When i execute the following script i get outputs even after i pressed ctrl C or used interrupt in Pycharm which is the same as KeyboardInterrupt i think. I have to press ctrl C three times to stop it....
Thomas 's user avatar
1 vote
0 answers
27 views

Using MultiThreading to Call and API. How to get kill slow processes?

I need to kill tasks that are running long. I have a bunch of api calls that I need to make. I'm currenting using ThreadPoolExecutor to have 12 workers to run in parallel. Each worker will call the ...
Micah Pearce's user avatar
  • 1,885
0 votes
1 answer
63 views

Getting the status code of 2000 URLs and storing them as a dictionary output in a fast way

I want to get the status code of 2000 urls. I want to store the status code of the url as a dictionary key and the value being the url itself. I also want to do this as quickly as possible. I've seen ...
beginner_coder_22's user avatar
1 vote
0 answers
30 views

In Webflux TraceID not Populated in Thread Created by Executer Service Pool

I'm encountering an issue with a Webflux application where the TraceID is not being populated in a thread created from the ThreadPool. Here's the scenario: I have a Webflux application where I'm using ...
Ashwani Kumar's user avatar

15 30 50 per page
1
2 3 4 5
75