Category "multithreading"

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

Visible order of operations with acquire/release fence in C++

I have a following program which uses std::atomic_thread_fences: int data1 = 0; std::atomic<int> data2 = 0; std::atomic<int> state; int main() {

How to test a singleton generic template to be thread safe?

How do I make Singleton generic template, and how can I test it? Right now I am interested in seeing with my own eyes that 2 threads that invoke get_instance()

Python PyQt update GUI

basically I am having trouble with Updating my new GUI. Windows 10 | Python 3.8 | PyQt5 I got a class like class My_GUI(): def __init__(self): ..

How does a debugger identify a thread?

When using a debugger to debug a mutli-thread application, the debugger usually shows the currently running threads. Either with some GUI or command like info t

Understanding Wait in Thread Java

I have the following code:- class ThreadB extends Thread { int total; @Override public void run() { synchronized (this){ for(int i=

Can we invoke method outside the thread block by any technique in C#? so that we can use same thread method to invoke other methods as well.?

e.g. Here in this example, if I want to start thread on method M1 this way, Purpose is I need to call M2, M3 on same thread method to avoid repeated code. Is th

How to limit execution time of a function call?

There is a socket related function call in my code, that function is from another module thus out of my control, the problem is that it blocks for hours occasio

Java cant edit thread stopwatch timeout

Hey I created this code for timeout in my tcp communication, but after I run thread, I can't change the end time? any ideas? public class Timer extends Thread{

Does a java thread come back to running state soon after it receives the response in wait state after making rest template call?

I have a REST API service which makes an REST API to an external system using RestTemplate. Time out set is 3 sec. To make this external call, I have an Executo

Main thread usage loop advise needed

Im building an app on Linux in C++, and I find it convenient to move all periodic tasks to other threads. This is my first multi-threaded Linux app(and basicall

Share django transaction across threads

I've a problem where one API implemented in a django (3.2) web app running with gunicorn (gevent) has to fetch different prices from multiple APIs and store tho

Strange infinite loop in thread in c# using network sockets

I made a little experiment where a server send continually a message to a client until a second client be connected. Testing with telnet, the first client recei

Java : Are sub threads lock the main thread?

I am new to Java, I have want to starts 02 thread to increase an attribute of an object and I want to print out the value of this attribute until it reach a cer