// you’re reading...

Android

Android A to Z: Multitasking

Multitasking

Multitasking is a word you'll hear a lot around here and at other places on the Internet that talk about smartphones or other tech. It doesn't mean what it used to, back when dinosaurs with long beards first dreamed up computers, but it still makes a very big difference for some folks and can be the deciding factor when picking a smartphone operating system. Let's have a look and see what the fuss is all about, and how it relates to Android.

A long time ago, in a laboratory far, far away, some Jedi masters decided that computers should do more than one thing at a time. They really already were doing plenty of things behind the scenes, but to the user it was a case of entering a command, and waiting for it to finish. Using threads and schedulers, and probably a little magic and a lot of luck, engineers were able to work up an operating system that could run more than one user command at a time, and multitasking was born. When you switch to a new VT (virtual terminal) on a Unix box with no GUI, you're multitasking. When you have more than one window open on your Windows or Mac or other computer that does have a GUI, you're multitasking. You're doing more than one thing at a time, and the computer is running more than one user task at a time. You can now read Android Central while your completely legal torrents are downloading in the background.

On a smartphone, multitasking is a bit different. We don't have the luxury of a 20-inch monitor, so showing more than one "thing" running at a time isn't a big deal. Samsung is testing the waters and trying it with the Galaxy S III with the Pop-Up Play feature, but for the most part whatever we're doing takes the whole screen to do it. We also don't have tons of RAM and video memory available and have to watch the power usage. This means smartphone multitasking has to be a bit, well, smarter. 

Smartphones have been multitasking for a long time. All the mobile operating systems do it a bit differently — some suspending all other apps in the background, some saving the state and closing the app itself, and others just letting everything run. The way Android does it is to let threads and processes run depending on their priority. If you're using Google Play Music, the processes that make the sound come out of the speaker have a high enough priority to stay running when you switch away from the app. Not all of it is running in the background, but enough of it is to keep the tunes playing. Other apps can be killed if they aren't being used, and some apps get "frozen" (for lack of a better word) and restore themselves when brought back to the foreground. What's important, and prioritized, is decided when the application is written and compiled so the end user doesn't have to worry about it. It's not perfect, but it follows the very strong multitasking model from Linux and tweaks it for Android. It's all open-source, so manufacturers and ROM builders can (and have) tweaked things to allocate memory the way they want it allocated. Sometimes the tweaks are great, sometimes not so much. 

In the end, remember the next time you open an app and start up where you left off that you're seeing multitasking at work. 

Check out the complete Android Dictionary

read more

Discussion

No comments yet.

Post a comment

Multiply Profits AND Automate Your Business

AWeber's email marketing software makes it easy.

Learn how they can do it for you, too.


RSS Android Updates

  • Reminder: HTC wants to show us something tomorrow, and we’ll be there blogging it live
    HTC keeps trying to tease everybody about what may be in store for tomorrow's event, and you can find out just as soon as they tell the world by tuning in to the live blog tomorrow. We'll be on-site in both New York and London, giving you the play-by-play as it happens. While the details […]
  • Monday Brief: More webOS drama, a BlackBerry Z10 Oreo, the Nokia Lumia 620 review, and more!
    Mobile Nations Podcast Feed Mobile Nations on iTunes Mobile Nations YouTube ZEN and TECH 51: Fitness month nutrition special! Iterate 40: The future of iOS design Is this the HTC One in black? Android 4.2.2 factory images now available for Nexus devices Android malware scanners — should you use one? Top 10 tips for the […]
  • Gundotra: ‘Committed to making Nexus phones insanely great cameras’
    'Just you wait and see,' senior VP of engineering replies on Google+ Google's Senior VP of Engineering at Google, Vic Gundotra, took to Google+ this morning in a photography-themed post to reply to comments about the quality of Nexus phone cameras. The Nexus 4 is a pretty notable improvement in camera quality over what we […]
  • LG finally reveals Optimus G Pro specs, price, availability
    LG technically officially announced the Optimus G Pro for the Korean market a few days ago, but now we've got all of the gritty details on the device. As we saw before, the new device will sport a full HD 1080×1920 5.5-inch (that's 440 ppi) display, with seemingly tiny bezels. Under that screen will be a […]
  • Utter! Voice Command Beta: control your phone by voice
    The recent update to Google Now has just made one of the nicer Jelly Bean features — offline voice recognition — available for third party developers to use, and voice command app utter! is the first to take advantage of this feature. Utter! is positioning itself to help accomplish most anything that could normally be […]
  • International roundup: HTC One and Galaxy S4 rumors, new LG phones confirmed and an early Xperia Z launch
    As Phil mentioned in this week's column, the next two weeks in the smartphone world are going to be particularly crazy. We've got events from HTC and Sony next week, and Mobile World Congress starting the following weekend. (And we have a feeling March is going to be even more action-packed.) So in the run […]
  • Google Takeout now includes Blogger blogs and Google+ pages
    Google Takeout — or Takeaway as it seems to be calling itself these days — is the data liberating service of your dreams. Allowing you to export your Google based content should you wish to leave forever, or just want to have a copy for yourselves, the service has been gradually expanding to cover more […]