background-process

WP7 Invalid cross-thread access - ScheduledTaskAgent

江枫思渺然 提交于 2019-11-26 20:15:09
问题 In WP7 app I am calling some code to update a live tile from the onInvoke method on the ScheduledAgent class. Getting an invalid cross-thread error. The line it is failing on is var fontForeground = new SolidColorBrush(Colors.White); I understand that there are limitations ans API's that I cannot call from within this background task, but I am only trying to setup some stuff to generate my own image to display on the Live tile. Is there something obvious I am doing wrong here. thanks Update..

On Android, what's the difference between running processes and cached background processes?

随声附和 提交于 2019-11-26 19:52:04
问题 On Android, when I look into "Setting" -> "App", under the tab "running", I can see the memory is cut into to parts: "used memory" and "memory free", also the applications are either put into "used memory", or "memory free". The applications in "memory free" part are noted as "cached background process". So, what are "cached background processes"? They are still in memory, rather than switched to "disk" (as desktops/laptops do), right? When the user tab one of these "cached background

PHP exec() as Background Process (Windows Wampserver Environment)

可紊 提交于 2019-11-26 18:32:19
I'm trying to setup a php trigger file that will set off a background process. (see this question ) I'm doing this on a Windows Wampserver environment. So for example I have trigger.php that runs the exec function that calls for my backgroundProcess.php to be parsed and executed. However the problem is that my trigger.php file is waiting for the exec() command to finish running backgroundProcess.php before it stops. The background process runs for about 20-30 seconds, and trigger.php is waiting all that time until backgroundProcess.php has fully finished. Is that making sense? Here is the

Keep a Service running even when phone is asleep?

寵の児 提交于 2019-11-26 17:03:00
I have a Service in my application which is designed to run every 10 minutes. It basically checks up on our servers to see if everything is running properly and notifies the user of any problems. I created this application for internal use at our company. My co-worker used the application over the long weekend and noticed that no checks were performed when the device went to sleep. I was under the impression that the Service was supposed to keep running in the background until I explicitly call stopService() in my code. So ultimately, my goal is to have the service running until the user hits

Simple approach to launching background task in Django

折月煮酒 提交于 2019-11-26 16:14:40
问题 I have a Django website, and one page has a button (or link) that when clicked will launch a somewhat long running task. Obviously I want to launch this task as a background task and immediately return a result to the user. I want to implement this using a simple approach that will not require me to install and learn a whole new messaging architecture like Celery for example. I do not want to use Celery! I just want to use a simple approach that I can set up and get running over the next half

iOS application executing tasks in background

回眸只為那壹抹淺笑 提交于 2019-11-26 15:54:27
I was wondering if I could send some webservice calls while my application is in the background. How does skype do it? Even if I press the home button my call stays connected. Nathan Jones Building on what rckoenes stated, applications are allowed to register background tasks to be completed after the user hits the home button. There is a time limit of 10 or 15 minutes for these tasks to complete. Again, you can register a task to complete immediately after the user hits home, this does NOT allow you to execute code say an hour after they exit the app. UIApplication* app = [UIApplication

Executing a function in the background while using limited number of cores/threads and queue the extra executions?

不想你离开。 提交于 2019-11-26 14:56:52
问题 I want to use a limited number of threads (at most 2 ) to run a function in a class for removing some files on disk in the background. The rest of my code within the same class is independent of this background function and might get executed tens of times more than the background function. However, I still need to enforce the core/thread limit. So it is possible that the background jobs might exceed 2 and I need to queue them. Note that my background function does not take any arguments. I

Healthkit background delivery when app is not running

巧了我就是萌 提交于 2019-11-26 14:25:24
Can HealthKit background delivery launch the application if is not running? Particularly in a terminated state? After a full day of testing (iOS 9.2) I can confirm that HealthKit background delivery DOES WORK in all of the following application states: background (in background and executing code), suspended (in background but not executing code), terminated (force-killed by the user or purged by the system). Keep in mind : part 1 Some HealthKit data types have a minimum update frequency of HKUpdateFrequencyHourly . That said, even if you set up a background delivery with frequency

iOS: Keep application running in background

China☆狼群 提交于 2019-11-26 12:41:45
问题 How do I keep my application running in the background? Would I have to jailbreak my iPhone to do this? I just need this app to check something from the internet every set interval and notify when needed, for my own use. 回答1: Yes, no need to jailbreak. Check out the "Implementing long-running background tasks" section of this doc from Apple. From Apple's doc: Declaring Your App’s Supported Background Tasks Support for some types of background execution must be declared in advance by the app

How do I kill a backgrounded/detached ssh session?

▼魔方 西西 提交于 2019-11-26 12:08:27
问题 I am using the program synergy together with an ssh tunnel It works, i just have to open an console an type these two commands: ssh -f -N -L localhost:12345:otherHost:12345 otherUser@OtherHost synergyc localhost because im lazy i made an Bash-Script which is run with one mouseclick on an icon: #!/bin/bash ssh -f -N -L localhost:12345:otherHost:12345 otherUser@OtherHost synergyc localhost the Bash-Script above works as well, but now i also want to kill synergy and the ssh tunnel via one