I am using Executor Service for multithreading. I have the below code: ExecutorService executor = Executors.newFixedThreadPool(100); final Multimap<String,
I have been working for some time to find a way to graph incoming data from an arduino with a Python GUI. I was able to accomplish this using the Matplotlib ani
I'm trying to clarify two parameters: intra_op_parallelism_threads and inter_op_parallelism_threads . I assume intra_op_parallelism_threads means the number o
I'm getting an error when loading a function that contains an atomic operation. As a simple example, the file test.lisp contains: (defparameter *count* 0) (def
I have a server with 2 NUMA node with 16 CPUs each. I can see all the 32 CPUs in task manager, first 16 (NUMA node 1) in the first 2 rows and the next 16 (NUMA
I was actually trying to modify some yolov5 script. Here I'm trying to pass an array between threads. def detection(out_q): while(cam.isOpened()): r
list.parallelStream().forEach(element -> ...); How can I limit the number of parallel threads nowadays? There was a "hack" in the past to set a System prope
I have a simple Algorithm, I want to run it fast in parallel. The algo is. while stream: img = read_image() pre_process_img = pre_process(img) text
I am applying Multi-threading to a python script to improve its performance. I don't understand why there is no improvement in the execution time. This is the c
I am running a fixed amount of threads using newFixedThreadPool() and need to be able to know when one of the runnables has died, and know which specific run
I am working on a problem where I am implementing a program that mimics the producer-consumer paradigm. The code that I am using works when I only have one prod
I am new to this group, so I believe it is a possibility to get help here since I could not find any information about my question on Google. I am trying to imp
Here is my snippet: urls = ["http://goggle.com", "http://linux.com"] headers = {'Content-type': 'application/json', 'Accept': 'text/plain'} data= {"k1": "v1"} f
I'm using Locust for load testing. I want to register a Kafka consumer in separate thread to measure the time of message processing. Here is what I got now: def
I read in a few places that .GetAwaiter().GetResult(); could cause deadlocks and that we should use async/await instead. But I see many code samples where this
I want to execute f1 and f2 at the same time. but the following code doesn't work! from multiprocessing import Pool def f1(x): return x*x def f2(x): return x
I used ThreadPoolExecutor in my API. in the test case, I generated a Movie instance and saved it in the database (PostgreSQL). I printed movie count in the test
From what i read here Thread join on itself ; When join method is called on itself, it should wait forever I am currently preparing for ocajp 8 certificatio
Hi how to read into a processus and how to use IMAGE_FILE_HEADER to read the pe header in this processus, thanks for replies:) sorry for my english i'm french
In java-9 the new method completeOnTimeout in the CompletableFuture class was introduced: public CompletableFuture<T> completeOnTimeout(T value, long time