Questions tagged as 'multithreading'

0
answers

Problem with multithreading crawler using jsoup

Hello, I'm developing a multithreading crawler, each job (thread) deals with X sites to parse certain content with the jsoup lib. The sites are all accessible. The problem is that the final results is never the same. That is, when I run the c...
asked by 08.12.2016 / 22:26
1
answer

HttpContext.Current.Session is null in thread

Hello, I have a problem with my code. I'm doing a function that lasts about 3/4 hours in length, and so I decided to do that function on a thread so it does not block the overall system operation. after some research I found some solutions and t...
asked by 06.10.2016 / 20:49
0
answers

Reusing threads

I'm making an addon for nodejs. One of the functions is responsible for making parameterizations the incoming audio of the various clients. I want this parameterization done in a thread. void buffering(const FunctionCallbackInfo<v8::Value&g...
asked by 22.10.2015 / 15:29
3
answers

Time Throwing (Threads)

What you need to answer the question is in comments in the code: using System; using System.Threading.Tasks; class Program { static void Main(string[] args) { player1.Start(); t.Start(); while (t.IsAlive); //...
asked by 27.12.2014 / 21:17
1
answer

Multiprocessing in Python

I'm creating processes using multiprocessing in Python, but I need to create processes inside other processes, that is, child processes. Is it possible to do this using multiprocessing ? Code: import time import multiprocessing...
asked by 05.10.2018 / 03:41
1
answer

How to create a method that pause and one that resumes a Thread?

The following script shows the x variable every 3 seconds, while the xx class running on a thread increases the value of x every second. I would like, when the value of x reaches 13, the thread where the xx class is being executed would stop....
asked by 11.02.2017 / 22:40
2
answers

How to debug errors in Realm DB?

How can I debug this error and know its source: lib    c ++ abi.dylib: terminating with uncaught exception of type realm :: IncorrectThreadException:     
asked by 26.05.2016 / 17:40
2
answers

Start multiple threads in a repeat command

I have a project where I need to start 30 times a thread that will execute the same method, and wanted to do this in a repeat command, for example: for (int i = 0; i < 30; i++) { Thread t = new Thread(MetodoVoid);...
asked by 10.03.2016 / 13:00
1
answer

Doubt Multithreading in C #

I have the following scenario: You can create three types of threads in the program, imagine that they are A, B and C. I have to respect the following rule: A C thread can not access the critical region if there are already one or more B...
asked by 08.12.2014 / 19:24
1
answer

Multi-thread in Java Socket

I do not have experience with Java, so once again I go to the Stack to help me, I have a basic code from a server that receives a message from a client via socket and the client's code, I need to modify both, to accept connections of more custom...
asked by 06.12.2014 / 20:29