Questions tagged as 'thread'

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
2
answers

What is a Thread? How does it work?

I was confused about what a thread is and what it represents. I found the following definition for it:    Thread is a small program that works as a subsystem, being   a way for a process to self-divide into two or more tasks. It's th...
asked by 28.10.2015 / 23:20
4
answers

How does C # lock work?

I was checking out an MSDN article, but it was not clear why use this. class Account { decimal balance; private Object thisLock = new Object(); public void Withdraw(decimal amount) { lock (thisLock) {...
asked by 12.08.2014 / 17:41
3
answers

Is there a difference between Program, Thread and Process?

I would like to know if there is a difference between Thread , Process and Program ? These three words are widely used in the area of Information Technology, so it would be interesting to know the difference between each one if it exists,...
asked by 29.05.2016 / 06:23
1
answer

Discrepancy execution times in parallel programming

I made a parallel code in C to verify its execution time. It was treated: Threads; Mutex; False Sharing; Synchronization. When running time of Linux with code execution, it was generally possible to compute at the following t...
asked by 22.02.2014 / 15:16
1
answer

How to freeze frozen thread?

Studying about JS: Javascript - Thread, Asynchronous, Ticks Asynchronous programming does it work in JavaScript?    There is only one thread to run your code, so you should avoid this code from blocking the thread as much as possibl...
asked by 27.11.2015 / 00:48
2
answers

What are the states of a thread?

I've been searching in some places on the internet but I have not found any coherence in the definitions given on the subject of thread in Java. What are the possible states of a thread and what are its definitions.     
asked by 06.10.2016 / 16:03
1
answer

How to make the application wait for a while?

It is common to have situations that we need to delay the execution of the code for a period, either to show or delete a message or something visual soon after, either to try something again, wait for something in a test or something creative th...
asked by 09.09.2015 / 16:55
3
answers

What is the solution for asynchronous processes in PHP?

In PHP, often in the middle of an operation, I need to send an email, make a webservice call, or log a log, and these can sometimes take a long time to process, but I do not have to wait for them end a request. I've been looking around, and I...
asked by 26.05.2017 / 16:04
1
answer

Difference between Pipes, Fork and Threads

From this question , I came to the curiosity of wanting to learn more about the subject, then researching more deeply, I came across with more doubt on the subject. I've seen a string of ways to use Threads. We can see the threads as small p...
asked by 02.08.2016 / 15:47