1 / 12

Operating System Structure

Operating System Structure. Lecture: - Operating System Concepts Lecturer: - Pooja Sharma Computer Science Department, Punjabi University, Patiala. Operating System Components. Process Management

Download Presentation

Operating System Structure

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Operating System Structure Lecture: - Operating System Concepts Lecturer: - Pooja Sharma Computer Science Department, Punjabi University, Patiala.

  2. Operating System Components • Process Management A process is a program in execution. A process needs certain resources, including CPU time, memory, files, and I/O devices, to accomplish its task. • Creating and deleting both the user and system processes. • Suspending and resuming processes • Providing mechanism for process communication • Providing mechanism for deadlock handling

  3. Operating System Components • Main Memory Management Memory is a large array of words or bytes, each with its own address. It is a repository of quickly accessible data shared by the CPU and I/O devices. Main memory is a volatile storage device. It loses its contents in the case of system failure. • Keeping track of which parts of memory are being used and by whom • Deciding which processes are to be loaded into memory when memory becomes available • Allocating and deallocating memory space as needed

  4. Operating System Components • File Management A file is a collection of related information defined by its creator. Commonly, files represent programs (both source and object forms) and data. • Creating and deleting files • Creating and deleting directories • Supporting primitives for manipulating files and directories • Mapping files to secondary storage • Backing up files on storage media

  5. Operating System Components • I/O System Management • A general device driver interface • Drivers for specific hardware devices • Secondary Storage Management Since main memory (primary storage) is volatile and too small to accommodate all data and programs permanently, the computer system must provide secondary storage to back up main memory. Most modern computer systems use disks as the principle on-line storage medium, for both programs and data. • Free Space Management • Storage Allocation • Disk Scheduling

  6. Operating System Components • Network System • A distributed system is a collection processors that do not share memory or a clock. Each processor has its own local memory. • Communication takes place using a protocol.(ftp, http, NFS) • Protection System (User Authorization) • Command Interpreter System (Shell)

  7. Operating System Services • Services that provide user-interfaces to OS • Program execution - load program into memory and run it • I/O Operations - since users cannot execute I/O operations directly • File System Manipulation - read, write, create, delete files • Communications - interprocess and intersystem • Error Detection - in hardware, I/O devices, user programs • Services for providing efficient system operation • Resource Allocation - for simultaneously executing jobs • Accounting - for account billing and usage statistics • Protection - ensure access to system resources is controlled

  8. System Calls • Interface between running program and the OS. • Assembly language instructions (macros and subroutines) • Some higher level languages allow system calls to be made directly (e.g. C) • Passing parameters between a running program and OS via registers, memory tables or stack. • Unix has about 32 system calls • read(), write(), open(), close(), fork(), exec(),…..

  9. System Programs • Convenient environment for program development and execution. User view of OS is defined by system programs, not system calls. • Command Interpreter (sh, csh, ksh) - parses/executes other system programs • File manipulation - copy (cp), print (lpr), compare(cmp, diff) • File modification - editing (ed, vi, emacs) • Application programs - send mail (mail), read news (rn) • Programming language support (cc) • Status information, communication

  10. UNIX System Structure • UNIX – limited by hardware functionality, the original UNIX operating system had limited structuring. The UNIX OS consists of two separable parts. • Systems programs • The kernel • Consists of everything below the system-call interface and above the physical hardware • Provides the file system, CPU scheduling, memory management, and other operating-system functions; a large number of functions for one level.

  11. UNIX System Structure

  12. System Design & Implementation • Traditionally written in assembly language, operating systems can now be written in higher-level languages. • Code written in a high-level language: • can be written faster. • is more compact. • is easier to understand and debug. • An operating system is far easier to port (move to some other hardware) if it is written in a high-level language.

More Related