Category "multithreading"

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

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

The work manader's work is not controlled

I have a wok manager that I run from the Main Activity when the user logs into the application. So, I will tell you in more detail what I do in the manager: in

Multithreaded EJB client

I would like to parallelize multiple ejb calls from a java client and maintain a single transaction. the ejb is exposed on an websphere application server, and

I'm creating a reddit bot using python, PySimpleGUI, and PRAW. It runs in my IDLE, but fails with a threading error after converting to an executable

I'm working on a bot that uses PRAW to scan all new comments in a user defined subreddit and searches for specific phrases to reply to. I've used PySimpleGUI fo

Single thread and asynchronous confusion

I've read various articles and similar questions, and I know that the two concepts are different, but I don't seem to know the correct answer. I understood that