Questions tagged as 'thread'

1
answer

Run concurrent threads in java with parameters, run method

I have a service today that I need to calculate its execution time with multiple accesses, for this I am trying to execute concurrent threads and that loguem this time, the problem is that for the run method of the Thread class I can not pass pa...
asked by 14.03.2018 / 20:21
1
answer

Thread occupying a lot of memory

Come on. I'm loading Buttons in a panel through the BackGroundWorker. That is, inside this BackGround I execute a query in the bank through EF and fill in the panel with the Buttons that contains information coming from this query. The more time...
asked by 08.04.2016 / 08:23
1
answer

How to run multiple threads sequentially?

I have to execute an x thread and let the y thread start only when x terminates regardless of the time it will take, and then execute z only when a and terminate. Anyone know what the best way to do this? Thank you in advance.     
asked by 30.10.2015 / 21:08
1
answer

Capture message update automatically on the front end

I would like to know how the process of capturing post and post updates (backend) is automatically done through the font-end (like the one performed by facebook). Anyone have an idea? Is this done through threads in js?     
asked by 10.10.2014 / 17:06
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

Do I really need to start from a main to run a schedule in java?

I'm developing a web application, and now I've come to a point where I'll have a process running in parallel in my application (in the background) every day at an x time. To test the process, I did a class inside the project with a main, and cir...
asked by 28.03.2018 / 22:34
3
answers

When and why should we use threads?

When and why should we use threads? I would like some examples.     
asked by 01.08.2016 / 20:05
1
answer

How does the BackgroundWorker e.error work?

I'm creating an application that makes multiple connections simultaneously. For each connection I create a TextBox and a BackgroundWorker . When I run DoWork of BackgroundWorker I use several ProgressPercentage...
asked by 28.11.2016 / 17:27
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