Questions tagged [long-running-processes]

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.

289 questions
1
vote
3 answers

Should I run everything in a background thread?

I am designing an application which has the potential to hang while waiting for data from servers (either Database or internet) the problem is that I don't know how best to cope with the multitude of different places things may take time. I am happy…
1
vote
4 answers

A Way to Run a Long Process From ASP.NET page

What are your most successful ways of running a long process, like 2 hours, in asp.net and return information to the client on the progress. I've heard creating a windows service, httphandler and remoting can be successful.
user204588
  • 1,613
  • 4
  • 31
  • 50
1
vote
2 answers

Keep App Alive in Background IOS7

I have created the application, which track the GPS Location of user at specific time period. This process is run 3 times in background. So, App need to keep alive in background. To achieve the our requirement, we use the Location manager (GPS)…
IOSDev_RKM
  • 41
  • 2
  • 4
1
vote
1 answer

Is it possible to make a .net console application return control while a thread is still executing?

Suppose I have a .net console application that executes some long-running code on a thread. I would like to make the console application terminate while the thread is still running. Specifically, I would like to launch the console application from…
Vivian River
  • 31,198
  • 62
  • 198
  • 313
1
vote
2 answers

ASP.NET background processing blocks status or UI feedback

I know this question has been asked many times, but my problem is a little different. I have page which lets user download and upload excel file. During downloading excel, it takes approx 2 mins to generate the file. I have added checkpoints which…
surya
  • 1,351
  • 1
  • 13
  • 29
1
vote
1 answer

Approach to serve multiple users concurrently with dancer

For some reason I could not find an answer to the question below, probably because it is just too obvious. During my experiments with perl dancer, I added a route, which just sleeps for 10 seconds and then returns something. I did this in order to…
1
vote
2 answers

Inconsistent behavior when attempting to terminate python subprocess running on a thread

I am running into problems when I attempt to terminate a run a long running process running on a separate thread. The below is the program. WorkOne creates a subprocess and runs a long running process "adb logcat" that generates log lines. I start…
Harkish
  • 2,262
  • 3
  • 22
  • 31
1
vote
0 answers

Getting a status update from WCF to an asp.net page

I'm wondering if I can access a static variable in a WCF service for status updates and how to do this if you can? I have a long process that updates 1000s of products. This process is fired off from an asp.net page and the user wants status…
user204588
  • 1,613
  • 4
  • 31
  • 50
1
vote
3 answers

Is there a way to implement long-running transactions in App Engine?

I have a function that makes many HTTP requests to collect data and stores it in the datastore. All calls must succeed or else everything must be rolled back. The length of time to execute approaches 10 minutes. The max transaction deadline on app…
1
vote
2 answers

Shutting down a Long-running process in a Windows Service

I have a Windows Service that performs a long-running process. It is triggered by a timer and the entire process can take a few minutes to complete. When the timer elapses the service instantiates a management object that performs the various tasks,…
user50622
  • 31
  • 1
  • 3
1
vote
1 answer

Returning status from long-running session bean method

I am using JSF 2.0 with RichFaces 4.2.2 running on Glassfish 3.1.2. I have created local stateless session beans with a long-running method that will be called by the JSF managed bean. I would like to be able to push status information from the…
user755070
  • 11
  • 1
1
vote
1 answer

Struts2 JMS request processing long running process

I have a Struts2 Action class that places a JMS Fetch request for a list of Trade in a JMS Queue. This JMS Fetch message is processed by an external process and can take either a few seconds or even few minutes depending on the number of Trade files…
Rahul Saini
  • 2,353
  • 1
  • 16
  • 19
0
votes
1 answer

Long running process using TPL. Could not find how to write callback?

I have used TPL to do long running process like generating 1,00,000 PDF in my asp.net application. Codes is like bellow: private Task GeneratePDF() { return Task.Factory.StartNew( --pdf generation goes here.... ) } Can…
0
votes
1 answer

Long running tasks, should I run them in another thread or another process?

Possible Duplicate: Why should I use a thread vs using a process? I have some long-running tasks, they consume cpu and memory heavily. Should I run them in another thread or another process? And what is the benefit of each option?
0
votes
2 answers

Parse continuous output of a long-running command

I could not find similar question, so decided to post it I have a long running job (*nix environment): program > job.out which is running over days and prints output in chunks. Can I instead of "job.out" have a script (maybe Perl?) that will modify…
af3
  • 13
  • 2