Kinds of Operating Systems, Explained

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

Kinds of Operating Systems

Introduction to Operating Systems · Chapter 1: Operating System FoundationsSection 1.3 · lesson 3 of 838 min · free with a free account

← Software BasicsNext lesson: Layers and Kernels →

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

Batch, time-sharing, real-time, embedded, and distributed systems compared.

  • Compare batch processing with time-sharing using job completion times
  • Explain why real-time means predictable deadlines rather than raw speed
  • Describe embedded and distributed systems with everyday examples
  • Classify a machine into one or more operating system categories

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 (1,058 words). Read along, or search it.

Opening Question

From Airbags to Laptops

The computer in a car that decides when to fire the airbag runs an operating system. So does the phone in your pocket, the server behind a bakery's web page, and the laptop on your desk. But you'd never want the airbag computer to stop and think about it for a few seconds, the way a laptop sometimes does. Different jobs need different kinds of operating systems. Here's a map of them.

Analogy

One Oven, Three Orders

Start with one oven in a busy bakery, and three orders waiting. The baker could finish the whole first order, then the whole second, then the third. Or the baker could put a bit of each order in the oven, in turn. Both plans use the oven for the same total time. But they feel very different to the customers.

Two Approaches

Batch Systems Versus Time-Sharing

The first plan is how early computers worked. A batch system collects jobs into a group, a batch, and runs each one from start to finish, with nobody at the keyboard. It makes good use of an expensive machine, but it answers slowly: you hand in a job, and come back later. The second plan is a time-sharing system. The processor gives each job a very short turn, then moves to the next, around and around. Many people can use the machine at once, and each one feels it's theirs. Modern laptops and phones work this way.

Worked Example

Three Jobs Under Each Plan

Here are real numbers. Three jobs, A, B, and C, need four, two, and three units of processor time. In batch, A runs from zero to four, B from four to six, and C from six to nine. With time-sharing, one unit each in turn, the jobs rotate until each is done. Now B finishes at five instead of six, and every job gets its first turn within two units. But A finishes at nine, not four. Sharing slows the long job a little. That's the trade.

Key Benefit

Responsiveness for Interactive Users

What time-sharing buys is responsiveness: the quick feeling that the machine answers you. That's why every interactive computer works this way. Chapter 2 works out how the turns are really chosen.

Definition

Finishing Within a Fixed Deadline

Some systems are judged not on how much they do, but on whether they act on time. A real-time operating system, or RTOS, guarantees that a task finishes within a fixed deadline. If it misses that deadline, the result is wrong, even if the answer itself is right.

Quick Check

Two Brake Controllers Compared

Quick check. Two brake controllers are tested on ten thousand stops. Controller X usually answers in one millisecond, but now and then it takes two whole seconds. Controller Y answers in exactly twenty milliseconds, every single time. Which one can be a real-time system? Pause, and decide. Y only. Real-time means predictable: Y meets its deadline every single time, even though it's slower on average. X is the tempting pick, because it's usually faster. But a brake that sometimes waits two seconds has missed its deadline, and a late answer is a wrong answer. So real-time doesn't mean very fast. It means always on time.

Embedded Systems

Computers Hidden Inside Devices

An embedded system is a computer hidden inside a device: a microwave, a thermostat, a router, a car. It does one job, often with little memory, and it usually has no keyboard or desktop. Many embedded systems use an RTOS. Many others use a trimmed-down general OS, such as Linux. And the two ideas often overlap. The airbag controller is embedded, and hard real-time.

Distributed Systems

One Service Across Many Machines

A distributed system spreads one job across several computers linked by a network. To the user, it looks like one service. Take Sam, who runs a small online bakery. When a customer opens his shop's web page, one machine may serve the page, another the pictures, and a third the payments. Each machine has its own OS, and software on top makes them cooperate. Chapter 8 says more about network operating systems.

Where They Run

Desktop, Server, and Mobile Systems

Three more you already use. A desktop operating system, like Windows, macOS, or a Linux desktop, serves one person at a time, with windows, a mouse, and many general programs. A server operating system is built to stay up for months, serve many users over a network, and be managed without a screen. Linux is very common there, and Windows has server editions. And a mobile operating system runs phones and tablets. Android and iOS are the best known, and lesson 1.6 covers them.

Decision Guide

Questions That Place a Machine

To place a new machine, ask a few questions. Must it never miss a deadline? Then it's real-time. Is it a computer hidden inside a device, doing one job? Then it's embedded. Does it spread one service across many machines? Then it's distributed. Are people waiting at a screen for quick answers? Then it's time-sharing. If nobody's waiting, the jobs can be queued, and run as a batch. Many machines answer yes more than once. A phone, for example, is a mobile system that also uses time-sharing.

Quick Check

A Traffic-Light Controller

One more check. A traffic-light controller sits in a metal cabinet at one street crossing. It runs nothing but the lights, and it must switch them on schedule, with cars moving through. Which pair of categories fits it best? Pause, and decide. Embedded and real-time. It's a computer hidden in a cabinet, doing one job, so it's embedded. And lights that change late could cause a crash, so it must meet its deadlines. Distributed doesn't fit: it's one machine, not many. And nobody sits at it waiting for answers, so time-sharing for people isn't the point.

Real Example

Three Systems in One School

Ivy, who looks after the computers at a school, runs three kinds: lab desktops for the pupils, a Linux server that stores their files, and the hidden computer inside a classroom projector. Same word, three different operating systems, she says. The projector has no mouse, and the server has no screen at all. Nothing is wrong with either.

Key Takeaways

Categories Often Overlap

To recap. Batch runs whole jobs one after another. Time-sharing gives quick turns, so everyone gets fast answers. Real-time means always on time, not just fast. Embedded systems hide inside devices, and distributed systems make many machines look like one. And desktop, server, and mobile say where a system runs. Many systems fit more than one category.

Try It

Categorizing Five Everyday Machines

Here's something to try. Pick five machines you meet in a day: a phone, a TV, a microwave, a car, a school computer. Write down which categories fit each one. Then circle the one that must never miss a deadline.

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 Kinds of Operating Systems

What is the difference between a batch system and a time-sharing system?
A batch system runs each queued job from start to finish with nobody at the keyboard, while a time-sharing system gives each job a short turn on the processor and rotates through them. With jobs needing 4, 2, and 3 units, batch finishes them at 4, 6, and 9. Rotating one unit at a time finishes the 2-unit job at 5 but the 4-unit job at 9.
Does a real-time operating system mean a very fast one?
No, a real-time operating system means a task always finishes within a fixed deadline, not that it is fast on average. A brake controller that answers in exactly 20 milliseconds every time can be real-time, while one that usually answers in 1 millisecond but sometimes takes 2 seconds cannot. In real-time work, a late answer counts as a wrong answer.
What is an embedded system?
An embedded system is a computer hidden inside a device, such as a microwave, thermostat, router, or car, that does one job. It often has little memory and no keyboard or desktop. Many embedded systems run a real-time operating system, and many others run a trimmed-down general system such as Linux. A car's airbag controller is both embedded and hard real-time.
What is a distributed system?
A distributed system spreads one job across several computers linked by a network, yet looks like a single service to the user. An online shop's website might use one machine to serve pages, another for pictures, and a third for payments. Each machine runs its own operating system, and software on top makes the machines cooperate as one.

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 →