Docsity

computer hardware and system software 12, Slides of Computer Fundamentals

Partial preview of the text

Download computer hardware and system software 12 and more Slides Computer Fundamentals in PDF only on Docsity!

MIS 210 3

Computer Hardware and

System Software

Fall 202 3

Lecture #1 2

Operating Systems

Bare Bones Computer System § Does not load instructions into main memory § No user interface except for I/O routines provided with executing program § Is idle when waiting for user input § No facility to store, retrieve, or manipulate files § No ability to control peripheral devices § Can run only one program at a time

Operating System – Basic Services § Programs (software) that accept commands and requests from a user and a user’s program § Manages, loads, and executes programs § Manages hardware resources of the computer § Act as an interface between the user and the system

Operating System – Additional Services § Provides interfaces for the user and the user’s programs § File support services § I/O support services § Means of starting the computer § Bootstrapping or booting the computer § Handles all interrupt processing § Network services § Provides tools and services for simultaneous (concurrent) processing

OS Parts

§ Memory Resident § Always loaded in memory § Commonly called the kernel § Contains essential services required by other parts of the operating system and applications. § Typically responsible for managing memory management, processes and tasks, and secondary storage § Memory Non-resident § Applications § Infrequently used programs , software tools, and commands § Bootstrap program § Diskless workstations or thin clients § a workstation or personal computer without disk drives, which employs network booting to load its operating system from a server

Simplified Diagram of Operating System Services

Single Job Processing

§ Only one program is loaded into memory

and executed

§ Example: MS-DOS

§ Memory resident components

§ Command interface shell

§ I/O routines, including BIOS

§ File management system

§ User program in control

OS Regains Control

§ When program is finished control is

transferred back to the command

interpreter

§ If the user’s program requests I/O

§ The user wishes to stop the program

execution via a keyboard interrupt

§ System malfunctions (function improperly)

Concurrent (simultaneous)

Operations

§ Multitasking (multiprogramming) vs.

multiprocessing which implies multiple

CPUs

§ Concurrent processing vs. simultaneous

processing

Achieving Multitasking

§ While one program is waiting for I/O to

take place, another program is using the

CPU to execute instructions.

§ Time-slicing: The CPU may be

switched rapidly back and forth between

different programs

§ Dispatching is the process of selecting

which program to run at any given

instant

User Interface and Command Execution Services § Types of user interfaces § CLI - Command Line Interface § GUI - Graphical User Interface § Menu environment § Shell § User interface and command processor that interacts with the kernel § UNIX: C, Bourne and Korn shells § Command Languages § IBM Mainframes – JCL (Job control language) § MS Windows – BAT files, Windows Scripting Host § UNIX – shell scripts

File Management

§ File - logical unit of storage § Basic file management system provides § Tools to copy and move files § Information about each file in the system and the tools to access that information § Security mechanisms to protect files and control access § Additional file management features § Backup, emergency retrieval and recovery § File compression § Transparent network file access (i.e., sharing files)

Memory Management

§ Keeps track of memory

§ Identifies programs loaded into memory § Amount of space each program uses § Available remaining space § Prevents programs from reading and writing memory outside of their allocated space

§ Maintains queues of waiting programs

§ Allocates memory to programs that are next to

be loaded

§ Deallocates a program’s memory space upon

program completion

Scheduling

§ High-level scheduling

p Placed in queue based on level of priority and eventually executed

§ Dispatching

p Actual selection of processes that will be executed at any given time

§ Context switching

p Transfer control to the process that is being dispatched

§ Processing requirements

p CPU vs. I/O bound