Most voted "multithreading" questions
Multithreading is a popular programming model that allows multiple line execution within a simple context, sharing process resources, and capable of running independently.
Learn more…199 questions
Sort by count of
-
1
votes1
answer181
viewsHow do I know the app’s web service is down?
Scenario: The app consumes data from a web service, so that the app does not get "locked" I added the task of downloading the data in a secondary trhead, according to the following code:…
-
1
votes1
answer9581
viewsMulti-thread in Java Socket
I have no Java experience, so once again, I turn to Stack to help me, I have a basic code from a server that receives a message from a client via socket and the code from that client, I need to…
-
1
votes2
answers634
viewsStart multiple threads in a repeat command
I have a project where I need to start 30 times a thread which will run the same method, and wanted to do this in a repeat command, for example: for (int i = 0; i < 30; i++) { Thread t = new…
-
1
votes3
answers861
viewsTime Count For Move (Threads)
What you need to answer the question is comments in the code: using System; using System.Threading.Tasks; class Program { static void Main(string[] args) { player1.Start(); t.Start(); while…
-
1
votes2
answers686
viewshow to use exactly Sleep and wakeup in python3?(multithread)
Hello I am trying to do in python3 the famous problem of the producer/consumer, transcribing from my book of S.O. however I have been facing a problem , apparently the Wait() Just put it to sleep…
-
1
votes2
answers96
viewsHow to debug errors in Realm DB?
How can I debug this error and know its origin: lib c++Abi.dylib: terminating with uncaught Exception of type Realm ::Incorrect threadexception: Realm accessed from incorrect thread.…
-
1
votes1
answer140
viewsFor nested in parallel
I’m trying to spin two for nested. The second would like it to be parallel. It follows my code. for (int i = 0; i < original.Width; i++) { Parallel.For(0, original.Height, j => { Color…
-
1
votes1
answer386
viewsWhat do the terms CPU-time Wall-clock-time mean?
Some documentation (programming) refers to these terms when there is some sort of limitation as to the use of the CPU, for example: Background tasks are limited by the amount of time use of…
terminology multithreading functional-programming cpu clockasked 7 years, 8 months ago rubStackOverflow 7,372 -
1
votes2
answers1318
viewsMake one method wait for the end of the other
Good morning, you guys, I am with the following doubt, when clicking a button my program makes to execute 2 methods simultaneously, method of sending email, and method of generating the pdf, it…
-
1
votes2
answers73
viewsUse unique identifier timestamp in a PHP process?
That is the scenario: A trading site that handles many transactions per second. Hosted on high-performance multi-core computers at AWS. The function is being used time() php to generate a unique…
-
1
votes1
answer2403
viewsThread - How to use it without freezing screen?
I have a system that goes through some html elements, collecting some links. I would like to wait for a while, but whenever I use Thread.Sleep it freezes my program for the set time. I have used…
-
1
votes1
answer79
viewsQueue of tasks or my own solution for Thundering Herd?
I am developing a network server application in C++ and came across the problem Thundering Herd, once I designed to have multiple accepting threads (accept()) customers' connections simultaneously.…
-
1
votes0
answers763
viewsUsing Tidhttp and Tidconnectionintercept created in Runtime
I have a method that makes a connection to a Restful server and for this uses the components Tidhttp, Tidconnectionintercept and others created in Runtime, so far so good, the problem is that I need…
-
1
votes1
answer506
viewsHow to "generate" multiple TCP clients using Threads in the same script?
I wrote the code of a simple TCP client: from socket import * # Configurações de conexão do servidor # O nome do servidor pode ser o endereço de # IP ou o domínio (ola.python.net) serverHost =…
-
1
votes1
answer82
viewsTask em await Task.Whenall New transaction is not allowed because there are other threads running in the Session
I’m doing a show Console, where he basically performs these 4 procedures Recovers a IEnumerable<_Url> Make a stop on those urls Inserts to the Database Mark this _Url as read (processed) so it…
-
1
votes1
answer44
viewsDownload Async + Copy = Copying image 0 bytes
I am simultaneously downloading several photos, and also need to make the copy to a certain folder. What happens is that it makes the copy before finishing the download. public static async Task…
-
1
votes2
answers42
viewsParallel function on website
I have a class that generates a file .xls for download. The problem is that it has more than 30,000 entries, so it takes about 10 minutes to generate. And in that time I have to keep the page open…
-
1
votes1
answer100
viewsNested for conversion to threads
I got the following for nested throughout the length of an image bitmap in C#. I would like to rotate the second one with threads to be executed in parallel. Bitmap alterado = new…
-
1
votes1
answer201
viewsHow to implement my java program to be Multithread?
My program is not running properly, I can start the server but does nothing else. I want to be able to write a message in the program and have the same message as a response. This is the client…
-
1
votes1
answer177
viewsEscrenvendo on the Async Island
How to make a Console program, while it processes some task it execute a writing on the console (like a counter) asynchronous? independent. In other words, he will be writing independently of other…
-
1
votes1
answer1560
viewsHow to make a python script run two processes simultaneously?
A little while ago I learned to capture videos via webcam using Python with the Opencv library. After that, I had the idea of making a script that automatically starts and ends the recording of a…
-
1
votes1
answer753
viewsHow to create a pause method and one that resumes a Thread?
The following script shows the x variable every 3 seconds, while the xx class, which is running on a thread, increases the x value every second. I would like when the value of x reaches 13, the…
-
1
votes0
answers87
viewsMulti-threaded chat
Guys I’m developing a chat bot, the question with the answer that the bot gives is all right, my problem is when more than one person comes in contact with the chat, he is treating as if both are…
-
1
votes1
answer120
viewsAsynchronous Method Blocking Queue
I’m using MVC and so I approached asynchronous methods for Actions in Controllers in order not to block access to other pages of the site while a long-term process is taking place. However, I have…
-
1
votes1
answer1300
viewsExchange of information between Python classes
How can I exchange information between two different classes? I need to pass data from one to the other. Each class is running in a different process. An example of the structure, the code is too…
-
1
votes0
answers81
viewsWhat better way to parallelize this function?
I am trying to parallelize a function that calculates the Cosine similarity: Here is my code: import numpy as np def cos_sim(a,b): dot_product = np.dot(a,b) norm_a = np.linalg.norm(a) norm_b =…
-
1
votes1
answer168
viewsProgram to convert mp3 using multiprocessing module is looping
import subprocess from multiprocessing import Process, Lock def ConverteMusica(a,lock): input_file_fmt = '{}.mp3' output_file_fmt = a for x in range(1, 5): subprocess.call(['ffmpeg', '-i',…
-
1
votes0
answers267
viewsRegister certified "https" protocol for SOAP(Axis 2) request
I created a service to register the "https" protocol and inject the certificate into it using the Socketfactory implementation, but it works well only one request at a time, but when using…
-
1
votes1
answer932
viewsHow to perform functions simultaneously through a Socket?
I’m developing a program in Python that’s basically a Chat, just for training. I would like it to have functions like: microphone, webcam, message and screen sharing. I’ve managed to do each of…
-
1
votes1
answer542
viewsMultiprocessing in Python
I’m creating processes using multiprocessing in Python, but need to create processes within other processes, ie child processes. It is possible to do this using multiprocessing? Code: import time…
-
1
votes0
answers29
viewsHow are event subscribers executed after the call?
I’m trying to make a visual representation of random number generation using UWP. Basically, there are X rectangles on a screen, each represents a number, so the first rectangle is 0, the second 1…
-
1
votes2
answers102
viewsHow does the pthread_cond_timedwait() function work?
The purpose of this function is to show the hours, wait for 2 seconds, and show the hours again to make sure that 2 seconds have passed. I am not using sleeps as this function is to help me…
-
1
votes1
answer210
viewsThread Pool for multiplication of arrays in java
In short: How can I split matrix operations and pool threads with a fixed amount of threads using the amount of user cores? I’m cracking my head, looking at the gringo SOF, but nothing that clears…
-
1
votes0
answers34
viewsMutex ignoring time out without having given release (windows)
Hello! I’m developing a sort of local server with door access to a college paper. What limits the amount of users on this server is a mutex, where only one client at a time must connect to the…
-
0
votes1
answer1278
viewsHow to fill a Listbox using multi thread in VB . NET?
In a Windows Form Application I have a List Box that is filled from a list of IP’s. It works like this: there is a text file (config.eep) which contains a number of IP’s, by pressing a button to…
-
0
votes1
answer404
viewsWorking with Entity Framework, Multithreading and SQL Server in C#
I’m using the Entity Framework and Multithreading on a project C# and I am going through problems of connection with the SQL Server. Well, I wanted to improve the speed of some data searches for a…
c# sql-server entity-framework linq multithreadingasked 10 years, 1 month ago Vinicius Botelho Bizarri 1 -
0
votes1
answer543
viewsHow to perform actions at a given time using Ruby on Rails
In my project I would like to create alerts that run at each given interval or at a certain date, Some way to do, using as little memory as possible?
-
0
votes1
answer228
viewsUsing Multiple Threads to Run a Faster Build on Maven
What the Maven offers in terms of parallelism for the execution of builds? If I execute one build in a machine with more than one processor, how can I take advantage of more resources for…
java maven multithreading parallelism continuous-integrationasked 9 years, 4 months ago Filipe Miranda 3,138 -
0
votes1
answer256
viewsIs reading files in Python updated in real time?
I am developing an application where I will create a multithreading that will read a file .json and based on a key from this file (status: 'pending' or status: 'completed') I will perform an action…
-
0
votes1
answer71
viewsReport Error while copying files and folders using Threadpool
I have a Windows Form application which copies files and folders to various networked machines. When the copy is not possible, the name of the machine is added to a list and, at the end, I present…
-
0
votes0
answers199
viewsParallel Return Problem.Foreach
Good evening, everyone! I am making a system in C# Windowsforms for validation of phone bills model FEBRABAN V2. The files usually have between 600Mb to 15Gb, for this reason I opted for the use of…
-
0
votes1
answer324
viewsLaravel 4.2 - Working with asynchronous tasks to generate reports . xlsx
Hello, I am working with an application in Laravel 4.2 and need that, when the user makes the request to generate a system report, a task is launched to generate the report, when this report is…
-
0
votes1
answer199
viewsHow to work with Threads without crashing the GUI
I created a program that reads the information of some websites, stores this information in Arraylist’s each with its respective class. In the GUI I put some options like search by name and date and…
-
0
votes0
answers231
viewsMulti-thread concurrency control
I need to develop a Windows Service with C# that checks a table in the database (Sql Server 2008). This table has the data I need and a Status field(Ready,Processing, Processed, Error). The service…
-
0
votes0
answers43
viewsAccessing object created by another thread
I am creating an application in C#. The graphical interface elements are created by main-thread, and put a second thread to perform a process that is too long. The problem is that I am trying to…
-
0
votes1
answer118
viewsMultiprocessing or Multithreading
Good people, recommend what to optimize code? multiprocessing or multithreading? the script is running in series, but has several for in series. Complete code: https://pastebin.com/WtD6XbVT…
-
0
votes1
answer112
viewsMultithreading - Opening new WPF window
I was wondering if any of vcs knows how to fix this damn error, (I want to open another window but it gives this error at start time) = can help?…
-
0
votes0
answers57
viewsphp class Singleton thread type
I have a class that accesses the service layer of my application. This class is a Singleton. Through the service, it accesses the data in a uniform way, so that my application has the expected…
-
0
votes1
answer272
viewsSolution for Python Unisex Bathroom Problem
Suppose you are at a party in the Republic Calamity Public that has only one bathroom with n boxes, where box is a compartment with a toilet. The republic rule says that the bathroom can be used by…
-
0
votes1
answer615
viewsHow to recover the return of a function that was executed within a Thread in Python3?
I need to run a function through a Thread only I’m not sure how to recover the return of this function. Below an example of how I want to do: from threading import Thread import time def…