Questions tagged as 'thread'

1
answer

How to declare a method to be executed from time to time in an ASP.NET application?

I have an ASP.NET WebForms application and I need to create an event to run on specific times. The event is about sending emails. I think I read somewhere about IIS to download the application from memory when it reaches certain tim...
asked by 10.06.2014 / 20:25
1
answer

How to wait for the end of a Thread and how to receive values from it?

I'm working on a situation that requires the use of multiprocessing. I need to read files and a bunch of processes that can take some time. During this process, I want to display a sort of window to user (Aguarde...) without compromisi...
asked by 10.04.2014 / 15:33
0
answers

Thread in eternal wait state, does not wake up with notify

Good morning, I'm having a problem with a project involving Threads, I'm starting to mess with Threads now in a college job and I'm having doubts about Thread being in WAINTING state but not waking up even with the call from a "notifyAll", I...
asked by 17.11.2018 / 18:39
0
answers

Problems with Threads in Windows Form

I'm trying to implement Threads in my algorithm, but when I add and run my software the Windows Form of it hangs and does not take any action, can you see something wrong in the code below? I know there is Async/Await to be...
asked by 12.08.2018 / 06:14
0
answers

System.Threading.ThreadAbortException: The thread was being aborted. When consuming webservice operation

I have the following code: proxy_hom_recepcionarLoteRps.RecepcionarLoteRPS proxy = new proxy_hom_recepcionarLoteRps.RecepcionarLoteRPS(); proxy.Url = url + "/arecepcionarloterps"; string resp = proxy.Execute(CABECALHO, xmlEnvio); Execute...
asked by 05.04.2018 / 16:59
1
answer

Difference calling a function in DllMain by CreateThread or calling directly

What's the difference in calling a function in the following ways: The first way to create a thread. Example: DWORD WINAPI Metodo1(LPVOID) { // Meu código aqui... return NULL; } int WINAPI DllMain(HMODULE hModule, DWORD dwReaso...
asked by 04.10.2017 / 20:41
0
answers

Problems with Traffic Lights (Readers and Writers)

I am trying to implement the problem of readers and writers in Java, and for this I am based on the method used by Tanenbaum in the book of Operating Systems. With only one thread writer and one thread reader the program works fine, the problem...
asked by 02.11.2017 / 00:29
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
1
answer

How to reuse a pthreads?

I'm using pthread.h and using the following functions: // // Cria A thread // thread_argsPP[contthreadsPP] = contthreadsPP; pthread_create(&threadsPP[contthreadsPP], NULL, ReceivePinPad, (void *) &thread_argsPP[cont...
asked by 21.07.2016 / 15:13
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