Mobile Operating Systems, Explained

UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 1.6 Free with a free account

Mobile Operating Systems

Introduction to Operating Systems · Chapter 1: Operating System FoundationsSection 1.6 · lesson 6 of 837 min · free with a free account

← Graphical User InterfacesNext lesson: The Command Line →

A free account plays all of Chapter 1 and 3 more lessons of Introduction to Operating Systems. Create a free account →

Earn 3 college credits for Introduction to Operating SystemsRecommended for credit by NCCRS · Computer Science 354 · self-paced · one payment, lifetime access

In this lesson

How Android and iOS save power, sandbox apps, and control permissions.

  • Explain how a phone's operating system differs from a laptop's
  • Compare Android and iOS by developer and foundation
  • Describe how app sandboxes and permissions protect private data
  • Explain how suspending and closing background apps saves power and memory

Free study notes

Get this lesson's notes by email

The key points and 4 practice questions with answers, in your inbox. One email, free.

One email. Unsubscribe in one click.

Transcript

Everything said in the video, section by section (915 words). Read along, or search it.

Opening Question

A Computer That Fits in One Hand

The phone in your pocket is a computer that fits in one hand. It runs all day on a small battery, knows where it is, listens for your voice, and sees through a camera. It also holds your photos, your messages, and your bank app. So it needs an operating system that's tough about three things: saving power, keeping apps apart, and working with a finger instead of a mouse.

Comparison

Phones Versus Laptops

A laptop sits on a desk, plugged into the wall, with a keyboard and plenty of memory. A phone is carried everywhere, on a battery. It has a small touch screen, less memory, and a pile of sensors. It's nearly always online, and its apps come from a store. None of this changes the three jobs from lesson 1.1. A phone OS still shares resources, hides the hardware, and protects programs from each other. It just does them more strictly, because a phone holds more private things than most desktops, on a tight energy budget.

Two Systems

Android and iOS

Two systems run almost all smartphones. Android is developed by Google. It's built on the Linux kernel, and its core is open source. So many phone makers, like Samsung and Motorola, ship their own version of it. An Android phone and a Linux server share a family tree. iOS is developed by Apple, and runs on Apple's iPhone. It shares a Unix-like foundation with macOS, and Apple controls both the hardware and the software. Tablets use close relatives: iPadOS on iPads, and Android on many others. And both share the same ideas: a touch interface, app sandboxes, permissions, power saving, and regular updates.

App Sandbox

Every App Behind Its Own Walls

On a desktop, you might install a game and give it free run of your files. A phone is stricter. Every app lives in its own sandbox: a walled area where it can use its own storage and memory, but can't read another app's data. It's the same isolation you met in lesson 1.1, now applied to every app by default.

Permissions

Asking Before Leaving the Sandbox

When an app needs something outside its walls, like the camera, your contacts, or your location, it must ask for a permission. You decide, and the OS enforces your answer. Picture the list a phone keeps. The camera app has camera and storage. A flashlight app has nothing. A maps app has location, and only location. So when the camera app uses the camera, the OS allows it. When the flashlight tries to read your contacts, it's blocked.

Quick Check

A Maps App Reaches for the Camera

Quick check, with the same list. The maps app wants to scan a code, so it tries to open the camera. What does the OS do? Pause, and decide. It blocks it. The OS checks the maps app's own list, and that list holds location, and nothing else. Camera isn't on it. Location is the tempting reason to allow it, but each permission opens one door only. Being installed opens none.

Common Mistake

Tapping Allow on Every Pop-Up

Now say the owner taps Allow on the flashlight's request. Contacts joins its list, and its next try succeeds. But a flashlight has no reason to read your contacts. That's the common mistake: tapping Allow on every pop-up just to make it go away. Each permission is a door into your private life. Ask: does this app need that door to do its job?

Power Saving

Background, Suspended, and Closed Apps

Now power. The processor and the screen use the most of it, so a mobile OS tries hard not to use them. When you leave an app, the OS moves it to the background. Soon after, it freezes it, or suspends it. A suspended app uses almost no processor time, but its state stays in memory, so it can come back instantly. If memory runs short, the OS may close a suspended app entirely. And so a frozen app can still alert you, the OS gathers notifications, and delivers them for the app.

Quick Check

The Game That Restarted

Quick check. You leave a half-finished game to take a photo. Ten minutes later, it's exactly where you left it. The next day, after you've opened a dozen big apps, the game starts again from its main menu, with no crash message. What happened to the game in between? Pause, and decide. Suspended, then closed. While suspended, it used almost no processor time, and its state stayed in memory, so it came back instantly. Later, those dozen big apps needed memory, so the OS closed it, and it had to start fresh. Running all day is the tempting idea. But that would drain the battery, which is exactly what a mobile OS avoids.

Real Example

Notifications Wake a Frozen App

Sam, who runs a small online bakery, wanted his phone to ring whenever an order came in. But his order app sat frozen in the background. Ivy, who looks after the computers at a school, turned on notifications for it. Now the OS wakes the app only when something arrives, she explained, instead of keeping it awake all day, asking whether anything has changed.

Key Takeaways

Same Three Jobs, Done More Strictly

To recap. A phone OS does the same three jobs as any OS, but more strictly, on a battery and a touch screen. Android, from Google, is built on Linux. iOS, from Apple, shares its core with macOS. Every app lives in a sandbox, and reaches outside it only with permissions you grant. And apps you can't see are suspended, and sometimes closed, to save power and memory.

Try It

Auditing Permissions and Battery Use

Here's something to try. Open your phone's settings, and find the permissions list for two apps. Does each app really need every permission it has? And on the battery page: which apps use the most?

About Introduction to Operating Systems at UPI Study

Introduction to Operating Systems (Computer Science 354) is a self-paced online course of 83 video lessons in 10 chapters, from what an operating system does and process scheduling to concurrency, memory, devices, file systems, networks, the internet, security and virtual machines. It carries a NCCRS credit recommendation for 3 semester credits.

Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Compare: Linux vs Operating Systems

Why take it here

Why students take Introduction to Operating Systems with UPI Study

What happens under every app you runIntroduction to Operating Systems explains the software that runs a computer: processes and scheduling, threads and synchronization, deadlock, memory and paging, devices and storage, file systems, networking, security and virtualization. It suits computer science and information technology degrees.
Credit at a fraction of the priceThe same 3 credits can cost $750 or more at a US college. Here it is one payment, self-paced, with lifetime access.
Finish your degree soonerTransfer credits reduce the courses you still owe, so you can graduate earlier or lighten a heavy semester.
Strengthen an applicationA completed college-level course on an official transcript shows admissions and scholarship committees you can do the work.
Study on your own scheduleNo start dates, no deadlines. Watch the lessons, practice, and take the final when you are ready.
130,000+students helped with college creditsACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Where the credit goes

Universities that work with NCCRS

Introduction to Operating Systems carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.

FAQ

Questions students ask us

About Mobile Operating Systems

What is the difference between Android and iOS?
Android is developed by Google, built on the Linux kernel, and has an open-source core, so many phone makers such as Samsung and Motorola ship their own versions. iOS is developed by Apple, runs on the iPhone, and shares a Unix-like foundation with macOS, with Apple controlling both hardware and software. Both use touch interfaces, app sandboxes, permissions, power saving, and regular updates.
What is an app sandbox on a phone?
An app sandbox is a walled area where each app can use its own storage and memory but cannot read another app's data. Mobile operating systems apply this isolation to every app by default, which is stricter than a typical desktop, where an installed game may roam freely through your files. To reach anything outside its walls, an app must ask for a permission.
How do app permissions work on Android and iPhone?
An app must request each permission it needs, you decide, and the operating system enforces your answer. Each permission opens one door only, so a maps app granted location still cannot open the camera. A common mistake is tapping Allow on every pop-up, such as letting a flashlight app read contacts. Ask whether the app truly needs that access to do its job.
Why do phone apps sometimes restart when you switch back to them?
A phone app restarts when the operating system closed it while it sat suspended in the background and memory ran short. A suspended app uses almost no processor time and keeps its state in memory, so it usually returns instantly. After many large apps have been opened, the system may close it entirely to free memory, so it starts fresh from its main menu.

About the Introduction to Operating Systems course

How many college credits is Introduction to Operating Systems?
Introduction to Operating Systems (Computer Science 354) carries a NCCRS credit recommendation for 3 semester credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
How much does Introduction to Operating Systems cost and what is included?
$250, paid once, with lifetime access: all 83 video lessons, a practice quiz after each, the graded work and final exam, and an official transcript when you finish. Students who want several courses choose UPI Study PRO instead.
Which universities accept UPI Study credits?
UPI Study has signed partner agreements with universities such as Thomas Edison State University, University of the People and Charter Oak State College, and works with universities such as Penn State, SNHU and SUNY. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities. Use "Find my college" on this page to check yours.
How long does Introduction to Operating Systems take?
It is self-paced with no deadlines. The 83 lessons total about 10 hours of video; most students add reading and practice time and finish in a few weeks to a few months, on their own schedule.
How are the exams done?
Quizzes and assignments are online in the course. The final exam is taken online with proctoring; a person on the UPI Study team checks assignments, usually within two days.
How do my credits reach my college?
When the course shows 100% complete, request the official transcript from your dashboard. It is sent to the college you name, and you can send it to more than one. Check your college first with "Find my college" on this page, or ask Athena.

Ready for the full course? Earn 3 credits in Introduction to Operating Systems.

83 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.

Updated

Introduction to Operating Systems
3 credits · NCCRS
Enroll →