threadpool
Using a concurrent hashmap to reduce memory usage with threadpool?
I\'m working with a program that runs lengthy SQL queries and stores the processed results in a HashMap. Currently, to get around the slow execution time of each of the 20-200 queries, I am using a fi[详细]
2023-04-01 11:03 分类:问答Java Executor Service Thread Pool [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-04-01 03:16 分类:问答Asynchronous socket reading: the initiating thread must not be exited - what to do?
I have a NetworkStream which I read asynchronously (using async/await) await Task<开发者_如何学C;int>.Factory.FromAsync((cb, state) => stream.BeginRead(buffer, offset, readLen - offset), stre[详细]
2023-03-31 22:18 分类:问答Threads within threads in Java?
I am currently thinking about how to design a multithreading system in Java that needs to do some heavy network processing and database storage. The program will launch three basic threads at first. A[详细]
2023-03-31 14:44 分类:问答Multithread with workerpool modul
import os import urllib import workerpool from datetime import datetime class DownloadJob(workerpool.Job):[详细]
2023-03-31 12:05 分类:问答So I got myself a threadpool-task manager system. Should I from now on use only it for all threads creation?
So I have a thread pool that allows dynamic resizing and uses task paradigm. I wonder - when people get such thing do they stop creating threads by hand at all and just use tasks all the time? So is i[详细]
2023-03-31 11:56 分类:问答How to change boost threads limitation?
So I try to create simple speed bench with boost 1.47.0. But if I try to create more than 1450 threads it throws exeption. How to get rid of such boost::tread limitation?[详细]
2023-03-31 10:37 分类:问答Using Rx to queue operations I don't want executed until particular time?
Summary: I have a web app that executes workflows on business objects and sometimes needs to deliberately wait several seconds or minutes between steps. I\'m looking to (perhaps via Rx.NET), improve t[详细]
2023-03-31 07:10 分类:问答Create a worker thread and run from a servlet or Spring controller
I would like to execute some task after a user request in background. My initial idea is to create a work thread and execute it from a servlet. However, I do not want too many threads to be running at[详细]
2023-03-31 03:31 分类:问答How to make boost::thread_group smaller having boost::asio::io_service::run in its threads?
Generally as I\'ve seen it is common way to create thread pools via \"io_service + thread_group\". Its really great for const size thread pools. Or pools that can only get bigger. But I wonder how to[详细]
2023-03-31 01:14 分类:问答