Questions tagged as 'thread'

3
answers

Splash Screen loading with application

My application, when starting, does the first search in the database. Since I use Hibernate , this first connection is a bit more time consuming because it assembles all the database mapping. I'm thinking of adding a Splash Screen at the b...
asked by 24.07.2015 / 14:22
2
answers

What is a state machine?

I'm doing a site tour, researching on asynchronism, threads, parallelism, and the like. When I found this answer , I noticed that the author makes a citation regarding state machines . I did not quite understand what a state machine woul...
asked by 29.05.2017 / 14:12
1
answer

Difference between STAThread and MTAThread

What is the difference between STAThread and MTAThread and when should I use one or the other? Why and how do they say only about COM?     
asked by 08.07.2014 / 12:35
3
answers

JavaScript - Thread, Asynchronous, Ticks

Situation Studying about Thread , I understood that they are lines of execution within a process. Studying about Assincronismo em javascript , I understand that it does not support multiple Thread , but has loop de ev...
asked by 12.11.2015 / 13:55
1
answer

Thread or Asynctask? When and which one should I use?

When is it recommended to use threads ? At what time is it advisable to use AsyncTask ? I would like to know what to use and what time it is needed.     
asked by 08.06.2015 / 17:07
2
answers

What are the differences between background and foreground threads?

What are the differences between these two types of threads and foreground ?     
asked by 17.09.2014 / 21:36
1
answer

Delphi, TThread.Queue. Which is? When should it be used?

I was seeing this method that makes use of thread: procedure TFormClient.QueueLogMsg(const s: string); begin TThread.Queue(nil, procedure begin LogMsg(s) end ); end; What is this method TThread.Queue ? Unlike...
asked by 07.06.2014 / 17:00
2
answers

What is the difference between wait () and sleep ()?

The meaning of the two words seems very similar. What is the difference between wait() and sleep() ? When to use each?     
asked by 24.12.2016 / 03:54
1
answer

What is RunLoop?

I would like to know what the RunLoop in iOS is and how it interacts with it. It would also be interesting to understand how these two concepts interact with the autorelease pool.     
asked by 23.12.2013 / 13:05
1
answer

Parallel sorting algorithm Odd-even sort in python

I created the following serial code to perform the Odd-even sort ordering, which first sorts the odd / even and odd / even indices. import time def oddevenSort(x): sorted = False while not sorted: sorted = True #orden...
asked by 20.06.2017 / 21:30