Category "multithreading"

asio::thread created in object with global scope causes strange behavior, but not if it is created in main

I have been battling a problem for a day or so and "solved" it but I wonder if anyone knows why it must be so, or whether I have just hacked my way around a dee

Multi-threaded input processing

I am new to using multithreading and I am working on a program that handles mouse movement, it consists of two threads, the main thread gets the input and store

Implementation of HttpClient request limiter and buffer

In our project, we have a few services that make requests to a 3rd party API, using a key. This API has a shared rate limit between all endpoints (meaning reque

How to cancel the delayed thread?

I am executing set of tasks, and in order to span them over time I've used Thread.sleep(forTimeInterval: ... ) It adds pauses between executions. Then, on the m

@Transactional on @Async methods in Spring Boot with shared object

I have a requirement where I have to save a lot of data into an Oracle DB. I want to use multithreading to speed things up. Everything is in a transaction. I ha

Selenium / C# Challenge / Threaded / Multiple drivers for each tab on the same browser opened by Selenium

As a preamble: I have an Excel-VBA workbook which can open an IE browser, login to a website with username,password, set up half a dozen webpages in tabs, and i

Read multiple serial port at one time using python

I'm trying to read out multiple serial ports at the same time with Python. I found some code to make it, but its not going well. The code not read the serial pr

SLURM nodes, tasks, cores, and cpus

Would someone be able to clarify what each of these things actually are? From what I gathered, nodes are computing points within the cluster, essentially a sing

Locking thread and creating new cursors not resolving sqlite3 "recursive use of cursors not allowed"

I am trying to make a simple flask web server that presents two graphs of data using matplotlib from a DHT22 sensor stored in a sqlite3 database. The code is ba

Multi-threading and events exercise in Python

"Write a program using two threads such that one writes even numbers in increasing order and the other odd numbers in incresing order with respect to a certain

Exception in monitor thread while connecting to server <xyz> using mongo-driver-core-4.1.2 jar

I have upgraded mongo java driver <mongodb.version>3.12.8</mongodb.version> to mongodb-driver-legacy 4.1.2. since then when ever i am trying to up

How to prepare Data-Set for main thread in an additional thread and stay threadsafe?

Description: (Following is only a low level description) Assume you have a List of automates, one of people and one of tasks. The corresponding Data comes from

LINQ script class throwing TaskCanceledException Error

I am working on .NET CORE 6 application along with Entity Framework CORE 7. I have class where I have written LINQ script. This is async method. I am not sure w

python win32ui.error: BitBlt failed & CreateCompatibleBitmap failed in multithreading

I'm here to ask for help on a recent problem I encountered with my program.... I am getting this error when I try to use BitBlt and CreateCompatibleBitmap: win3

How do I create a child process with clone and use waitpid to wait until its done?

The code below is wrong for at least 2 reasons. I'll be rewriting this in assembly so I'll need the solution to be only linux system calls. What I'd like to do

Error Missing Type specifer - int assumed . Note C++ does not support default init

In order to make two objects, User1 and User2, of a class User sending and receiving messages, #include <iostream> using namespace std; class reply { p

What is the best mechanism to send data through queues in a multithreaded program?

I am making a multi-threaded application, where a main process sends messages to the appropriate thread through a queue. My doubt is in the part of the thread:

How do I speed up the running of terraform deployments using threading?

When creating terraform deployments, I have to wait until the command completes before running the next command. If I have multiple deployments in parallel - (t

multithreaded C++ read access violation 0XCDCDCDCD

I'm writing a simple multithreaded md5 hash cracker using a task farm, except i keep getting read access violations seemingly at random. heres the function the

UI thread slow to respond to Progress updaters on async Task method using VS2022 & Net6.0

I’ve run into a performance obstacle and I’m uncertain of the cause, all of this is running under VS2022 & Net6.0. As this is my 1st time using