Category "multithreading"

The publishing code below is stalling on time.sleep() how can i change this behaviour + what would be a good way to implement a thread safe cach

For refreshing skills for a new job i have been trying to implement a very simple price publisher + client + mtm_cache. In the code below in publishing.py the c

Parallel traveling salesman problem solver finishes prematurely

Good time of the day. I'm doing an assignment which involves writing a program that solves Traveling Salesman Problem in parallel using brute-force method. I ma

TIdHTTP::OnAuthorization in multithreaded application

I'm writing a DLL in C++Builder XE6 to communicate with a REST server. The DLL creates a TThread-derived thread to do GET requests in the background, using TIdH

Measuring OpenMP Fork/Join latency

Since MPI-3 comes with functionality for shared memory parallelism, and it seems to be perfectly matched for my application, I'm critically considering rewritin

Split work between writing output from .exe and reading the output

I have a simple .exe downloaded from the apple app store. It gives real-time updates on crypto prices and their percentage change. I am extracting percentage ch

Comparing latency of mutex vs. spinlock wake time

I am curious about the latency of a mutex vs. spinlock, measured as the time between when one thread unlocks it and another waiting thread can access it. I wrot

Restoring Interruption flag status in Java

Good Day! I have been going through the Java Docs & some online resources on properly handling the InterruptedException due to bug reported by SonarQube. Bu

java.lang.IllegalStateException Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException

I m getting the following error in the google play console, and no idea how to solve it. I don't use SQLite in my app. The error started appearing after targeti

Load data from reading files during startup and then process new files and clear old state from the map

I am working on a project where during startup I need to read certain files and store it in memory in a map and then periodically look for new files if there ar

Java concurrent deadlock

Run the Main.main() method seems like a deadlock has occurred. I found out it can be fixed if replace notify() with notifyAll(). But why? Shouldn't the worst ca

Signal and Wait in C#

In the below application there are two parties that are calling ChannelReservationCache to fetch or add information. I want to use the "signal and wait" thing i

DifferentialEquations.jl multithreading

The code below is solving an ODE with different variables, and PAs corresponding to diffrent Δs the only data I'm interested in after each loop. Since the

Delegate task from Multiprocess to Sub Process in Python

Hi currently I am using python telepot to: Listen to incoming message Based on the message it will do a long operation to generate some image. Problem: The mess

Creating Game using multithreading, but have problems with smoothness of background movement in Java Swing

I'm working on a project which is about creating a game. I was implementing threads to move my background but had some problems with the smoothness of backgroun

How to address the "Lock was destructed while held" Visual C++ runtime assertion

In a program that uses DirectX to render a 3D component I use a dedicated rendering thread that apparently gets created if I call DispatcherQueueController::Cre

Java Selenium register and handle unexpected notification element

In an effort to make my test project more robust, I'm trying to deal with an issue where an unexpected notification element on the page messes with my interacti

Where to pass the lock object? what is ws, msg?

I'm trying to use yliveticker library to connect to yahoo finance websocket and simultaneously log data into df using a different thread. I dont understand what

How to effectively run tasks parallelly in pyspark

I am working on writing a framework that basically does a data sanity check. I have a set of inputs like { "check_1": [ sql_query_1, sql_query_2 ], "check_2":

Is C# System.Thread using the Win32 API?

Is the C# Mulithreading with System.Thread using the Win32 API or how is System.Thread working?

GCP PubSub java client's Publisher - concurrency not working Multi threaded environement

I am trying to consume messages from Kafka and publish them to Google PubSub. We have 4 Kafka concurrent consumer threads and I injected the Google pubsub clien