Questions tagged as 'multithreading'

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
1
answer

Scanning on the Async console

How to make a Console program, while it processes some task it perform a write in the console (type a counter) asynchronous? independent. In other words, it will be writing independently of the other processes. Something like: ex:...
asked by 17.01.2017 / 13:09
1
answer

Task in await Task.WhenAll New transaction is not allowed because there are other threads running in the session

I'm doing a program Console , where basically it executes these 4 procedures Retrieves a IEnumerable<_Url> Parse these urls Inserts into Database Mark this _Url, as read (processed) so it does not process anymore...
asked by 10.10.2016 / 19:24
0
answers

Using TIdHttp and TIdConnectionIntercept created in runtime [closed]

I have a method that makes a connection to a RestFUL server and for that it uses the components TIdHttp, TIdConnectionIntercept and others created in runtime, so alright, the problem is that I need to get the return of the "OnReceive" event of t...
asked by 29.04.2016 / 22:06
1
answer

Task queue or my own solution for thundering herd?

I'm developing a network server application in C ++ and I came across the thundering herd problem, since I designed to have multiple threads accepting ( accept() ) client connections simultaneously. p> By my searches, the most common s...
asked by 28.02.2016 / 03:36
2
answers

Memory competing and sharing between threads

I have the following code: class Objt { public List<t> list_t1; public List<t> list_t2; public Objt() { // faz inicializações } public void handleLists(List<t> list) { for(t e: l...
asked by 02.07.2016 / 21:49
1
answer

Split Array into Multiple Threads

I need to make a Query in my Database, which will return each of the Lines. However, for each of them, during the Retorno, I have to wait about 5 seconds, because it is the time that I have to wait for Ping to complete and return to me if the Ho...
asked by 23.11.2018 / 01:28
2
answers

What is wrong with my thread using synchronized - Java

I started to study tread I saw some examples of java7 and java8 using lambda, I came in a part to use the synchronized which is to type a waiting list of threads where the next one and executed after a finish, I am testing but not I'm getting mu...
asked by 15.10.2017 / 00:15
1
answer

How to fill a ListBox using multi thread in VB .NET?

In a Windows Form Application I have a List Box that is populated from a list of IP's. It works like this: there is a text file ( config.eep ) that contains a series of IP's, at the press of a button to update the List Box, a loop is cal...
asked by 31.01.2014 / 19:42
1
answer

How to execute actions at a given time using Ruby on Rails

In my project I would like to create alerts that run at every given interval or on a certain date, Any way to do it, using as little memory as possible?     
asked by 25.12.2014 / 22:34