Questions tagged as 'thread'

0
answers

Java slowness warning

How to check that a method is taking a long time to be finalized and to display a warning to the user. There is a method in the application that can take a while ... I made a test code to detect the slowness of a method and to show a warning...
asked by 08.08.2018 / 21:47
1
answer

How to perform communication between Threads and PySide Qt?

The graphical user interface window created in PySide runs normally following the normal program flow. The program's true python script runs on a Thread in parallel. But this thread script needs to send the logs to the QPlainTextEdit of the grap...
asked by 17.07.2018 / 17:59
0
answers

python sigint and ctrl c have different effects

Hello, I need to run an executable made in c, this executable executes operations on a board and writes to a file, the problem is that the write event occurs when the program receives a ctrl + c. I tried to send a sigint (as far as I know they ar...
asked by 06.07.2018 / 01:25
1
answer

Log activity for synchronization capturing task data running in background

Develop an application in Cordova, which synchronizes with an online database, the sync part is all in Java. (Context of the app) I'm developing a "Log" screen for synchronization which will show the user how many records have been successful...
asked by 23.07.2018 / 19:49
1
answer

Calculate Factorial Array using Thread's

I'm having trouble in the following exercise    Write a program that, given a vector with the first 5 numbers   cousins, throw 5 threads. Each of them will calculate the value of the   factorial of one of the positions of the vector and   cal...
asked by 29.04.2018 / 12:22
0
answers

Program uses the threading module but I did not notice any parallelism in the execution. What's wrong?

I made a script to decrease the quality of some mp3s by calling the ffmpeg program through the subprocess module. I added Threads thinking of doing the process in parallel for several files at the same time. The program works but I have seen NO...
asked by 10.04.2018 / 02:14
0
answers

I understand a parallel execution using _thread. Is there any more pythonic way of writing the same code?

import _thread def filho(tid): print('Ola da thread', tid) def pai(): i = 0 while True: i += 1 _thread.start_new_thread(filho, (i,)) if input() == 'q': break pai() Is there any more pythonic way of writing...
asked by 07.04.2018 / 22:36
0
answers

Get the Start Address of a thread from a process and terminate it individually

What I want to do is open up to check if a process is open, view the thread list, identify it by the Start Address, and end a thread specific to the process. I can do it manually by the processhacker, but I need a script for it. Itriedtomake...
asked by 17.03.2018 / 11:02
1
answer

Difficulty working with Thread in Spring Boot

Notice how my controller is @PostMapping("/anexo") public DeferredResult<String> uploadAnexo(@RequestParam("files[]") MultipartFile[] files){ DeferredResult<String> resultado = new DeferredResult<>(); //...
asked by 03.04.2018 / 15:21
0
answers

android thread overload

I'm doing an old game for Android, I did following the book I have. The example teaches to create the logic of the game for two players to play on the same phone, worked correctly, but the example only teaches to create a screen that goes str...
asked by 17.01.2018 / 02:45