Close ad

We all know the lesson "multitasking = the ability to perform several processes at the same time". We use it in our computers without being particularly aware of its presence. Switching between applications or windows of one application takes place (for us) in real time and we take this capability of the operating system for granted.

Task different

The operating system allocates the processor to all applications in small time intervals. These periods of time are so small that we cannot notice them, so it seems as if all applications are using the processor at the same time. We might think so multitasking in iOS 4 works exactly the same. It is not so. The main reason is of course the battery capacity. If all the applications were really left running in the background, we would probably have to look for a socket in a few hours.

Most applications compatible with iOS 4 are put into "suspended mode" or put to sleep after pressing the Home button. An analogy might be closing the lid of a laptop, which immediately goes into sleep mode. After opening the lid, the laptop wakes up and everything is in exactly the same state as before the lid was closed. Furthermore, there are applications where pressing the Home button causes them to end. And by that we mean a real termination. Developers have a choice of which of these methods to use.

But there is another category of applications. These are the apps that really run in the background, even though you're doing something completely different on your iDevice. Skype is a good example because it needs a constant internet connection. Other examples could be applications playing background music (Pandora) or applications requiring constant use of GPS. Yes, these apps drain your battery even when running in the background.

Sleep or shoot down?

Certain applications compatible with iOS 4, which should be put to sleep (put into "suspended mode") after pressing the Home button, continue to run in the background. Apple gave developers exactly ten minutes for the app to complete its task, whatever it was. Let's say you're downloading a file in GoodReader. Suddenly someone wants to call you and you just have to accept that important call. The call did not last more than ten minutes, you will return to the GoodReader application. The file may already be downloaded or is still being downloaded. What if the call takes more than ten minutes? The application, in our case GoodReader, will have to stop its activity and tell iOS that it can be put to sleep. If she doesn't, she will be mercilessly terminated by iOS itself.

Now you know the difference between "mobile" and "desktop" multitasking. While fluidity and speed of switching between applications are important for a computer, battery life is always the most important thing for mobile devices. Multitasking also had to be adapted to this fact. Therefore, after reading this article, if you press the Home button twice, you will no longer see the "bar of applications running in the background", but essentially only the "list of recently used applications".

Author: Daniel Hruška
Source: onemoretap.com
.