Questions tagged as 'thread'

0
answers

Threads and interrupt ();

I would like to know how to pause my Thread efficiently and correctly with the Interrupt () method; I am with a part of my class that I started, but I would like to pause it. My project consists of a websocket , which I would like to st...
asked by 02.02.2018 / 19:50
0
answers

What is the correct way to break a thread in Delphi?

I am creating a thread with the basic information and structure, as indicated below. Apparently everything is working fine, but I noticed that when running Terminate , the thread does not pass Destroy . Putting a breakpoint from D...
asked by 17.12.2017 / 15:46
1
answer

Get StartAddress with the name of the Module of a Thread from an external program

I'm trying to differentiate the threads of a particular program. with the "ProcessExplorer" software I can easily get through the Start Address, since the method name appears: ItriedtogettheStartAddresswiththiscodeinC#:Process[]process=Proce...
asked by 03.11.2017 / 04:08
0
answers

Concurrent programming

Hello, I'm having trouble finding the error in the code below. It is a problem in which ideally, having 5 available positions, any of the types of threads (server or trainee) can be to sit freely, but when they fill the vacancies, the next vacan...
asked by 03.11.2017 / 18:43
1
answer

Application continues to run even after it is closed

I'm having a problem with my application. It remains in the list of processes even after its completion, in addition to it, the ClickOnce application also appears in the list. Scenery My application communicates with a ratchet through a...
asked by 24.08.2017 / 16:01
1
answer

Bound Service using IntentService

I'm creating an IntentService with Binder, so I can communicate with this service from an Activity public class MyService extends IntentService { private ChatManager chatManager; private final IBinder mBinder = new MyBinder(); p...
asked by 31.07.2017 / 17:12
0
answers

Thread initialization using interface runnable [closed]

I have a problem creating threads: The error is:    "The method UpdatesRunnableProduct (Branch, List,   ArrayList) is undefined for the type Principal " in the Main class: for (Filial filial : listaFiliais) { Thread threads =...
asked by 03.04.2017 / 17:41
0
answers

Multi thread chat

I'm developing a bot chat, the question with the answer that the bot gives is all right, my problem is when more than one person contacts the chat, he is treating as if both were one, I I believe the problem is in the way that I am handling the r...
asked by 13.03.2017 / 21:11
0
answers

InvokeMainThread Xamarin

I'm having a problem invoking a UIThread in PCL. I made a method like this: private void PopularConteudo() { Task<List<Departamento>> taskDep = new Task<List<Departamento>>(() => {...
asked by 18.03.2017 / 01:49
1
answer

Thread Usage in c ++

I created a code to check the prime numbers, but I'm trying to use all the cores in my processor to calculate them. #include <iostream> #include <Windows.h> #include <vector> #include <algorithm> #include <thread>...
asked by 03.03.2017 / 22:51