Operating Systems: Types, History, and Functions
34 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

In the early history of operating systems, what was the primary motivation behind their creation?

  • To provide security for user data.
  • To simplify the setup and transition between jobs. (correct)
  • To enable multiple users to access the computer simultaneously.
  • To create graphical user interfaces for easier interaction.

What is the key characteristic of batch processing systems?

  • Real-time execution of programs.
  • Direct interaction between the user and the computer.
  • User submits programs and data to an operator. (correct)
  • Simultaneous execution of multiple programs by a single user.

Which of the following is a drawback of batch processing?

  • No direct interaction with the user during processing. (correct)
  • It allows for real-time processing of tasks.
  • High level of interaction with the user.
  • It requires minimal setup time.

What is the defining feature of interactive processing?

<p>Execution of programs in a dialogue with the user through remote terminals. (B)</p> Signup and view all the answers

In a time-sharing operating system, how is CPU time allocated among multiple users?

<p>Time is divided into intervals, with each job executing for one interval. (D)</p> Signup and view all the answers

What is the key difference between 'multiprogramming' and 'multitasking'?

<p>Multiprogramming involves multiple users sharing one machine, while multitasking involves one user executing many tasks. (C)</p> Signup and view all the answers

What is the role of system administrators in modern computing environments?

<p>To install new programs and equipment, manage user accounts, and resolve system problems. (B)</p> Signup and view all the answers

Which feature is characteristic of multiprocessor machines?

<p>They dynamically allocate resources to various processors for load balancing. (D)</p> Signup and view all the answers

Which of the following is a primary characteristic of embedded systems?

<p>Conserving battery power. (A)</p> Signup and view all the answers

Which of the following best describes 'application software'?

<p>Software that performs specific tasks for users. (B)</p> Signup and view all the answers

What is the main role of 'system software'?

<p>Providing infrastructure for application software. (B)</p> Signup and view all the answers

What is the primary function of 'utility software'?

<p>To extend and customize the operating system. (C)</p> Signup and view all the answers

Which of the following is an example of a text-based user interface (Shell)?

<p>Unix Bourne Shell. (B)</p> Signup and view all the answers

What is the role of the 'kernel' in an operating system?

<p>Performing basic required functions such as file management and device control. (C)</p> Signup and view all the answers

What is the function of a 'file manager' within an operating system?

<p>To coordinate machine's mass storage facilities and organization of files. (C)</p> Signup and view all the answers

What is the purpose of 'device drivers' in an operating system?

<p>To enable communication with peripheral devices. (C)</p> Signup and view all the answers

Which of the following statements best describes the function of an operating system's ‘memory manager’?

<p>Allocating and coordinating the use of main memory. (A)</p> Signup and view all the answers

What is the role of the 'scheduler and dispatcher' in an operating system?

<p>To determine which activities are considered for execution and allocate time to these activities. (D)</p> Signup and view all the answers

What is the primary function of a 'boot loader'?

<p>To start the computer and load the operating system into main memory. (B)</p> Signup and view all the answers

In the context of the booting process, what is the purpose of 'firmware'?

<p>To provide routines used by the boot loader before the operating system is functional. (A)</p> Signup and view all the answers

How does the operating system coordinate the machine's activities?

<p>By coordinating the execution of application software, utility software, and its own units. (B)</p> Signup and view all the answers

What is the key difference between a 'program' and a 'process'?

<p>A program is a static piece of code, while a process is the dynamic activity of executing that code. (B)</p> Signup and view all the answers

What information does the 'process state' contain?

<p>The current status of the process's activity, including the program counter and registers. (A)</p> Signup and view all the answers

What tasks are performed by the ‘scheduler’ in process administration?

<p>Adding new processes to the process table and removing completed processes. (C)</p> Signup and view all the answers

What will the ‘dispatcher’ do?

<p>The dispatcher controls the allocation of time slices to the processes in the process table. (B)</p> Signup and view all the answers

When does a ‘process switch’ occur?

<p>When the end of a time slice is signalled by an interrupt. (D)</p> Signup and view all the answers

Why is mutual exclusion needed in operating systems?

<p>Because it ensures that only one process at a time can execute a Critical Region. (B)</p> Signup and view all the answers

How can deadlocks be avoided?

<p>A and B (A)</p> Signup and view all the answers

What characteristic defines 'super users' in the context of operating system security?

<p>Super users can use all available resources and monitor the system using auditing software. (A)</p> Signup and view all the answers

Which of the following is a countermeasure against attacks from outside?

<p>Auditing software. (A)</p> Signup and view all the answers

What is the function of ‘privileged mode’?

<p>The function is to give access to all memory areas for the OS. (B)</p> Signup and view all the answers

Which of the following are related to password security?

<p>Not easy to guess. (D)</p> Signup and view all the answers

What is the difference between single-factor authentication and multi-factor authentication?

<p>Multi-factor needs multiple things such as What you have? What do you know? What you are? (C)</p> Signup and view all the answers

Signup and view all the answers

Flashcards

Operating System Functions

Software responsible for overseeing computer operations, storing files, providing a user interface, and coordinating program execution.

Batch Processing

Early computing approach where programs were submitted as 'jobs' requiring significant operator setup.

Interactive Processing

Processing mode allowing direct interaction with the user through remote terminals.

Time-Sharing

Operating system model that shares one machine among many users by dividing time into intervals.

Signup and view all the flashcards

Multitasking

An OS with one user executing many tasks simultaneously.

Signup and view all the flashcards

Embedded Systems

Operating systems in devices like medical equipment, vehicles, and phones.

Signup and view all the flashcards

Application Software

Software performing specific user tasks. (Productivity, games, etc.)

Signup and view all the flashcards

System Software

Software managing computer infrastructure. (OS, Utilities)

Signup and view all the flashcards

Utility Software

Software that extends/customizes the OS.

Signup and view all the flashcards

User Interface

Component that communicates with users.

Signup and view all the flashcards

Kernel

The core of an operating system: performs required functions.

Signup and view all the flashcards

File Manager

Operating system component ensuring organized file storage and manipulation.

Signup and view all the flashcards

Device Drivers

OS component that facilitates communication with peripheral devices.

Signup and view all the flashcards

Memory Manager

OS component managing main memory allocation.

Signup and view all the flashcards

Scheduler and Dispatcher

OS component that determines which activities to execute and allocates time.

Signup and view all the flashcards

Bootstrapping

Starting the computer by running a program from a specific memory address.

Signup and view all the flashcards

Boot Loader

The initial program stored in ROM or flash memory that starts the OS.

Signup and view all the flashcards

Firmware

Routines used before the operating system becomes functional.

Signup and view all the flashcards

Process

The activity of executing a program.

Signup and view all the flashcards

Process State

Current status of a task's execution.

Signup and view all the flashcards

Scheduler

Adds and removes processes from the process table.

Signup and view all the flashcards

Dispatcher

Controls the allocation of time slices to processes.

Signup and view all the flashcards

Process Switch

Switching the CPU to the next process in turn for a small time slice.

Signup and view all the flashcards

Semaphore

A "control flag" that informs a process whether a resource is in use.

Signup and view all the flashcards

Critical Region

Code needing exclusive execution.

Signup and view all the flashcards

Mutual Exclusion

Requirement that only one process can execute a critical region at a time.

Signup and view all the flashcards

Deadlock

Processes blocked awaiting resources held by others.

Signup and view all the flashcards

Ordinary Users

OS level for ordinary users with allocated resource access.

Signup and view all the flashcards

Super Users

OS level for full access, monitoring via auditing.

Signup and view all the flashcards

Auditing Software

Monitoring login attempts and resource use.

Signup and view all the flashcards

Nonprivileged Mode

OS level for restricted user processes.

Signup and view all the flashcards

Privileged Mode

OS level for unrestricted system processes.

Signup and view all the flashcards

Privileged Instructions

Those code commands that affect memory management and that are used in privileged mode.

Signup and view all the flashcards

Password Security

Strong passwords, upper/lower case, symbols and numbers.

Signup and view all the flashcards

Multi-Factor Authentication

Authentication with multiple validation forms (password, fingerprint, etc.)

Signup and view all the flashcards

Study Notes

Operating Systems

  • Operating systems coordinate the machine's activities, handle competition among processes, and provide security.
  • Examples: Windows (Microsoft, used in PCs), UNIX (larger computer systems), Mac OS (Apple, Mac machines), Solaris (Sun/Oracle machines), and Linux (originally non-commercial, small and large computers).
  • Smartphone operating systems include Apple iOS (published 2007, Unix based, still active) and Google Android (published 2008, Linux based, still active), Windows Phone (final release 2015), BlackBerry OS (final release 2012) and Nokia Symbian OS (final release 2012).
  • Functions: Overseeing computer operation, storing/retrieving files, providing user interface to request program execution, and coordinating program execution.

History of Operating Systems

  • A program is called a "job."
  • Early computers needed significant setup time, and each "job" needed its own setup.
  • Operating systems began as systems for simplifying setup and transitions between jobs.
  • Batch processing (job queue): User sends program, data, and program requirements to an operator, who loads materials to the computer. The operating system reads and executes them, and results are delivered to the user.
  • The jobs wait in the job queue for their turn using the first-in, first-out principle.
  • Instructions for the machine for execution were encoded with Job Control Language (JCL).
  • Interactive processing (real-time): A program is executed in a dialog with the user through remote terminals. Only one user at a time, with computer faster than the user.
  • Real-time processing: computer performs tasks in real time with a deadline in its environment.

Time-Sharing and Multiprogramming

  • Time-sharing: One machine is used by many users.
  • Multiprogramming: Time is divided into intervals with the execution of one job during an interval, then that job is set aside and another executed, creating the illusion of several jobs executed simultaneously, about 30 users simulataneously.
  • Multitasking: One user performs many tasks simultaneously.
  • PC:s work on their own, so Operators have disappeared.
  • System administrators install new programs and equipment, make new accounts, and resolve system problems.

Multiprocessor Machines and Embedded Systems

  • Multiprocessor machines use load balancing.
  • Time-sharing and multitasking are distributed to many processors.
  • Resources are dynamically allocated to various processors.
  • Scaling: Tasks are broken down into subtasks compatible with the number of available processors.
  • Embedded Systems: Specific devices such as medical devices, vehicle electronics, home appliances, and cell phones.
  • Embedded systems conserve battery power, work in real-time, and operate continuously without human oversight.

Operating System Architecture

  • Software of a computer: Application software and System software.
  • Application software performs specific tasks for users: productivity, games, or software development.
  • System software consists of tasks common to computer systems that take care of computer infrastructure and provide infrastructure for application software.
  • Utility software extends and customizes the operating system, for example, programs that format a disk or compress data.
  • Many programs started as application software but became part of utility software.

Operating System Components

  • Operating system needs to communicate with the user via a user interface. The internal part is the kernel.
  • User Interface: Text-based shell or a graphical user interface (GUI).
  • Text based (Shell) exmaples include Unix: Bourne shell (and others), Windows: command shell, Apple: Terminal utility shell.
  • GUI allows the user to operate it with pointing devices and keyboard, can be 2D or 3D.
  • GUI examples include Unix: X11 (and others), Linux window managers: KDE, Gnome (and others), Microsoft Windows and Apple IOS standard interfaces.
  • Kernel's performs basic required functions: file, memory, scheduler, and device driver management
  • File manager: Coordinates machines mass storage facilities: file manipulation, and hierarchical file storage.
  • Device Drivers: Communication management with peripheral devices.
  • Memory Manager: coordinates and allocates machine's main memory, may use virtual memory.
  • Scheduler and dispatcher: which activities are executed and allocation of time to these activities

Bootstrapping

  • When turned-on, machine starts to run a program from a particular memory address, known as Bootstrapping.
  • Initially, the volatile main memory is empty which makes the starter Boot loader program important.
  • The starter program Boot loader is stored in Read Only Memory.
  • Boot loader program runs by the CPU, transfers OS from mass storage to main memory and executes a jump to OS.
  • In embedded systems, the OS is copied from special flash memory.
  • Firmware include routines used by the boot loader before the operating system is functional. PC:s BIOS or EFI, Sun: open firmware, Embedded systems: CFE.

Coordinating the Machine's Activities

  • The OS coordinates the execution of application software, utility software and units within the OS itself.
  • After computer has started, user asks OS to execute utility or application programs, with user communicating to OS after execution is terminated.

Concept of a Process

  • A program is a piece of code, while the execution of a program is dynamic.
  • Process: The activity of executing a program.
  • Many processes are executed at the same time.
  • Operating System manages the execution of processes, competition of resources
  • Process State: Current status of activity, which include the position of program and what portion of main memeory its at

Process Administration

  • Scheduler: adds and removes new processes from the process table, scheduler adds the execution to the pool of current processes.
  • Each process has a current state: new, ready, running, waiting, terminated.
  • Dispatcher: Controls the allocation of time slices to the processes in the process table. Time and memory slice

Multiprogramming and Time Allocations

  • Multiprogramming: time is divided to small time slices (milliseconds, microseconds).
  • CPU is switched to next process in turn for one time slice -process switch. Figure 3.6 shows this.
  • When process gets time slice, a timer is started and the end of time slice is signaled by an interrupt.
  • Dispatcher selects the next process for execution via process table
  • All the time active processes (non-waiting) are run in CPU

Handling Competition Among Processes

  • Some resources can only be used by one process at a time, such as printers.
  • Semaphore A "control flag" which informs if a process has been allocated a certain resource.
  • Critical Region: Instructions should be executed by only one process for the integrity of the function
  • Example: is setting semaphore includes 1) reading semaphore, 2) setting semaphore. Process can not be dispatched between 1 and 2.
  • Mutual Exclusion: only one process allowed at a time to execute a critical task/region.
  • Processes block each other from continuing because each waits for a resource that is allocated to another.

Conditions for Deadlock

  • Competition for non-sharable resources
  • Resources requested on a partial basis
  • Allocated resources can’t be forcibly retrieved – Can be avoided if:
  • All resources are or seem to be sharable
  • All resources must be requested at one time
  • Resources can be forcibly made free

System Security

  • Ordinary users can only use resources allocated to them.
  • Super users can use all available resources and monitor system with auditing software.
  • Risks to the system are Attacks either from inside or outside the system. Attacks can be protected via auditing software.

Counter Measures

  • Problems arise when processes gain access to memory outside its designated area, when processes try to gain super user rights or acccess memory area of other processes and users.
  • Operating systems manage this via control activities via privilege levels and privileged instructions.
  • Privileged mode systems can access all memory areas
  • Non-privileged mode have user process restrictions
  • Privileged instructions that change memory limit registers can only be used in privileged mode.
  • Use strong passwords that contain upper and lower case, numbers, punctuation
  • Implement Multi-factor identification

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

Description

Explore the role of operating systems in coordinating computer activities, managing processes, and providing security. Learn about examples like Windows, UNIX, and Linux. Discover the history of operating systems and their evolution from simplifying setup to coordinating program execution.

More Like This

Introductory Quiz
10 questions

Introductory Quiz

AudibleTourmaline avatar
AudibleTourmaline
Betriebssysteme: Unix und Windows
42 questions
ChÆ°Æ¡ng 5 - HDH Windows Linux
58 questions
Introduction to Operating Systems (OS)
48 questions
Use Quizgecko on...
Browser
Browser