Long running processes prevent other processes from responding as quickly as intended. Typically a problem in UI programming, long running processes can prevent the UI from responding to user input.
Questions tagged [long-running-processes]
289 questions
3
votes
1 answer
Is it possible to get launching event of Applications in android?
I am developing an application which shows some specific allowed apps.If user tried to launch except these allowed apps i want to block them.
I know that it is possible to get running tasks using ActivityManager.getRunningTasks(..) and checked…

Devu Soman
- 2,246
- 13
- 36
- 57
2
votes
0 answers
Why program execution time differs running the same program multiple times?
Consider a nodejs cpu-bound program that generate primes numbers:
// generatePrimes.js
// long running / CPU-bound calculation
function generatePrimes(start, range) {
const primes = []
let isPrime = true
let end = start + range
for…

Giorgio Robino
- 2,148
- 6
- 38
- 59
2
votes
1 answer
Docker long-running command memory consumption grows over time
I am trying to run a long-running command in docker and I am seeing increasing memory consumption during the command execution.
I am running a test suite composed of 741 tests and 3390 assertions with PHPUnit in the context of a Laravel application.…

Lunfel
- 2,499
- 21
- 29
2
votes
1 answer
Can I use async controllers in the following scenario?
I have an application in Asp.net MVC where at some point I would like to display a modal dialog to the user that would display process execution progress indicator.
The process behind the scenes does a lot of database data processing (based on…

Robert Koritnik
- 103,639
- 52
- 277
- 404
2
votes
3 answers
asp.net output messages to user on long running task
What is the best way to send messages to the user during a long process in asp.net. In other languages there is a flush method and I see that asp.net has that as well but is that the best way? If not, how else can you do this?

user204588
- 1,613
- 4
- 31
- 50
2
votes
1 answer
Running background task in node.js
How do we run background tasks in node.js? So that I can perform multiple requests in parallel and simultaneously without blocking the UI. Once a request completes, I can inform the user that the operation is complete and the result is ready. While…

Aarish Rahman
- 59
- 1
- 3
2
votes
1 answer
Unable to find a shell script that runs in the background via pgrep or ps -grep
I have a file named toto.sh and the content of the file is:
#!/bin/sh
for i in $(seq 1 100);
do
echo "CREATE TABLE test_$i (id NUMBER NOT NULL);
! sleep 10
select * from test_$i;
! sleep 10
DROP TABLE test_$i;" | sqlplus…

totothegreat
- 1,633
- 4
- 27
- 59
2
votes
1 answer
Jquery AJAX Simultaneous and Long-Running Requests
I am using jQuery to loop through a large table (1,000 rows) and for each row I make an AJAX call to process some information and update a database. It takes roughly 30 minutes to complete this entire process and I use a jQuery UI progress bar to…

Gunnar
- 661
- 1
- 11
- 29
2
votes
1 answer
How do I get the status of a long running operation when calling the Dialogflow gRPC API?
Many Dialogflow RPC methods return a Operation message/object which represents a long running operation. How do I check on the status of the operation and retrieve the result if the operation is completed?
Dialogflow gRPC methods that return an…

mattcarrollcode
- 3,429
- 16
- 16
2
votes
2 answers
How can you check if SQL command is still running? Or is it frozen/dead...?
I created an index for my ginormous (250 million+ records) SQL table and it has been several hours. How can I tell if it's still going? Or if the process is frozen/dead?
If you have an answer about how to check if SQL (SQLite3) is still running in…

puifais
- 738
- 2
- 9
- 20
2
votes
1 answer
Qt QApplication::processEvents() in custom event handler
Is it possible to call QApplication::processEvents() inside the event handler, where there is a long process. My program terminates with Segfault. My code is something like this:
void MyApplication::customEvent(QEvent* event)
{
if(event->type() ==…

Yury
- 1,169
- 2
- 16
- 29
2
votes
1 answer
How to lock a long async call in a WebApi action?
I have this scenario where I have a WebApi and an endpoint that when triggered does a lot of work (around 2-5min). It is a POST endpoint with side effects and I would like to limit the execution so that if 2 requests are sent to this endpoint…

valorl
- 1,499
- 2
- 14
- 30
2
votes
7 answers
calculate running time of a huge c++ program
the suggested method of estimating the time is using the clock() function and then dividing the count of cpu cycles by cycles/second.
My problem is that the program i am trying to run takes a lot of time (in hours). This means the clock() function…

AnkurVj
- 7,958
- 10
- 43
- 55
2
votes
1 answer
Get details executed query in Postgresql
I am a newbie in PostgreSQL.
Please help me to find this out.
I have a table
company (
id bigint primary key,
name text,
age integer,
address character(50),
salary real,
gender character(1))
then i do simple query :
select * from…

enjelyna pardede
- 21
- 1
- 2
2
votes
5 answers
Considerations for ASP.NET application with long running synchronous requests
Under windows server 2008 64bit, IIS 7.0 and .NET 4.0 if an ASP.NET application (using ASP.NET thread pool, synchronous request processing) is long running (> 30 minutes). Web application has no page and main purpose is reading huge files ( > 1 GB)…

Xaqron
- 29,931
- 42
- 140
- 205