Questions tagged as 'multithreading'

0
answers

Program involving threads in C

Basically, I have a program that has two threads: adicionar and remover . Both manipulate an integer variable called quantity. If quantidade reaches the value 10, the thread adicionar enters the suspended state a...
asked by 29.04.2018 / 17:10
0
answers

What better way to parallel this function?

I'm 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 = np.linalg.norm(b) if(norm_a == 0...
asked by 20.02.2018 / 19:15
1
answer

Difference between Task and Thread

I need to create a C # executable and I have the doubts: Do with thread or do with task ? In practice is there any difference between using Task and the "traditional" multi-thread ?? Is it true that a task...
asked by 13.04.2016 / 18:57
0
answers

How to shut down socket within an infinite loop?

Hello, I created a server-client project using a socket that listens on the port and sends the element of a Queue until the queue has no more elements. However, when I shut down the client application, the server remains open and listening. The p...
asked by 03.01.2018 / 18:30
0
answers

Search engine behaves same using multi-thread or a single thread

Good afternoon, I am developing a routine to do search in pdf files. My idea is to distribute the search processing in each file on different threads to optimize the response time. The SearchPDFText method below looks up and returns the files co...
asked by 20.12.2017 / 19:42
2
answers

Multi threads C #

I would like to create a program to act on multiple threads in a process, leaving it faster, that is, the threads working together to finish the service faster. But each one works individually in the process. Sample code: class Program {...
asked by 24.10.2017 / 16:17
1
answer

MultiThreading - Opening new window in WPF

I would like to know if any of you know how to solve this damn error, (I want to open another window but it gives this error when it starts) = can help?     
asked by 12.09.2017 / 02:39
0
answers

Thread in Webbrowser c #

I need to use a thread that can work together with a webbrowser in C #. It just needs to run the command, but as it's a visual component I'm not getting it. Below I detail some attempts and examples that I found. If anyone has a light or other i...
asked by 20.06.2017 / 05:56
1
answer

Multiprocessing or Multithreading

Good people, recommend what to optimize the code? multiprocessing or multithreading? the script is running in series, but has several for series. Full Code: link     
asked by 04.07.2017 / 18:43
1
answer

Queuing Problems for Asynchronous Controllers

Hello, I'm having some problems regarding Asynchronous Controllers because the server's request queuing continues to be blocked for the client during some operation. The routines work exactly, I can execute even parallel functions (for exam...
asked by 18.05.2017 / 03:06