Questions tagged as 'thread'

2
answers

Run parallel process in PHP

I have a Web service that is consumed by some applications. On the Web service server you should use the Amazon API and execute a process whenever a change of record is made via Web service . Initially, I thought about running the Amaz...
asked by 31.03.2015 / 14:52
3
answers

Setting thread priority in C ++ 11

In the program I'm developing I have two std :: threads that are always active throughout the life of the program. However, I consider that the function of one of them is minor and would like to change their priority. I took a look at the doc...
asked by 05.02.2014 / 01:05
2
answers

Are static classes shared by threads?

Are static classes, methods, and properties shared across the application's threads? That is, if I modify the static property foo in ThreadA , and then modify the same static property foo in ThreadB , what will be th...
asked by 16.06.2016 / 15:32
1
answer

Using WaitAll in C #

I have the following problem: A program generates two types of threads A and B through clicks on their respective buttons. Both types can not run at the same time. If I have 10 threads A, B can only execute when 10 of type A ends. I can re...
asked by 15.12.2014 / 01:08
1
answer

ProgressDialog in C #

I'm trying to create a form similar to ProgressDialog in android, in C # .. The idea would be for this to happen: //criar o controle na thread principal frmWaitingProgress fl = new frmWaitingProgress(this); fl.Show(this); //fazer todo o p...
asked by 08.12.2016 / 13:04
6
answers

Log System losing data, how to use Threads?

I currently have a mid-level system where I need to record detailed Log of everything that happens in the system, the Company that is divided into Departments audits everything that happens through Log! I have a simple Procedure that a...
asked by 31.10.2015 / 12:06
1
answer

Thread Safe (TS) and Non Thread Safe (NTS) - What are they, what's the difference?

When someone is going to download PHP, you have these 2 options: ts and nts , as well as language extensions. My doubts are as follows: What are Thread Safe and Non Thread Safe (NTS) ? Are there any differences between them...
asked by 27.05.2016 / 20:24
1
answer

Number of threads on a 16-processor machine

A question fell on my test of Operating Systems and I was in doubt. During the test I got confused and I marked the alternative D, today I know that she is wrong and has nothing to do. I'm tending more to alternative A, given that the maximum pe...
asked by 10.12.2015 / 18:56
1
answer

Modify visual element by another thread

I want to define a Thread in a RichTextBox but I get an error saying    Can not make calls from another thread than the same TextBox I've heard that it's possible to use the Control.Invoke option, so I was very much in doubt at th...
asked by 18.10.2015 / 00:46
1
answer

Client Threads Server

In the following class SocketServidor I send a single thread with the out and the in , but the class is supposed to be able to send two threads when it runs. You're supposed to do this:    The server should work in mult...
asked by 15.12.2015 / 15:37