1 / 25

Operating System Concepts

Operating System Concepts. General Definition. An OS is a program which acts as an interface between computer system users and the computer hardware. It provides a user-friendly environment in which a user may easily develop and execute programs.

aria
Télécharger la présentation

Operating System Concepts

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 Concepts

  2. General Definition • An OS is a program which acts as an interface between computer system users and the computer hardware. • It provides a user-friendly environment in which a user may easily develop and execute programs. • OS has 2 parts –Kernel and Shell. Kernel is responsible for interacting with Hardware and shell is responsible for interacting with user .Shell act as command interpreter. • OS hides the complexity of hardware from uninterested users. • Some examples of operating systems are UNIX,MS-DOS,MS-Windows, Windows/NT,OS/2, MacOS.

  3. Computer System Components • Hardware – provides basic computing resources (CPU, Memory, I/O devices, Communication). • Operating System – Controls and coordinates the use of the hardware among various application programs for various users. • System & Application Programs – ways in which the system resources are used to solve computing problems of the users (Word processors, Compilers, Web browsers, Database systems, Video games). • Users – (People, Machines, other computers).

  4. Computer System Components Mainboard

  5. Functions or Services provided by an OS

  6. Functions of Operating System • Process Management: It takes care of creation and deletion of processes, scheduling. • Memory Management: It takes care of allocation and de-allocation of memory space to programs. • File Management: It takes care of issues such as storage, retrieval, naming, sharing and protection of files. • Security: It protects the resources and information of comp system against destruction and unauthorized access. • Command interpretation: It takes care of interpreting user commands and directing system resources to process the commands.

  7. Process management • A process is a program in execution. It is a unit of work within the system. • Process needs resources to accomplish its task CPU, Memory, files, I/O devices • Process termination requires reclaim of any reusable resources. OS is responsible for the following activities in connection with process management: • Creating and deleting both user and system processes • Suspending and resuming processes • Providing mechanisms for process synchronization • Providing mechanisms for process communication • Providing mechanisms for deadlock handling

  8. Memory Management • All data in memory before and after processing • All instructions in memory in order to execute • Memory management determines what is in memory when optimizing CPU utilization and computer response to users • Memory management activities are: • Keeping track of which parts of memory are currently being used and by whom • Deciding which processes and data to move into and out of memory • Allocating and deallocating memory space as needed

  9. Mass-Storage Management • Usually disks used to store data that does not fit in main memory or data that must be kept for a “long” period of time. • OS activities • Free-space management • Storage allocation • Disk scheduling • Tertiary storage includes optical storage, magnetic tape • Varies between WORM (write-once, read-many-times) and RW (read-write)

  10. Protection and Security • Protection–any mechanism for controlling access of processes or users to resources defined by the OS • Security–defense of the system against internal and external attacks even when protection is activated (viruses, identity theft) Systems generally first distinguish among users, to determine who can do what • User identities (user IDs, security IDs) include name and associated number, one per user • User ID then associated with all files, processes of that user to determine access control • Group identifier (group ID) allows set of users to be defined and controls managed, then also associated with each process, file • Privilege escalation allows user to change to effective ID with more rights

  11. The Layers Of A System Humans Program Interface User Programs O.S. Interface O.S. Hardware Interface/ Privileged Instructions Disk/Tape/Memory

  12. End User Programmer Application Programs Operating- System Designer System Programs Operating System Machine Language HARDWARE Layers of a Computer System Application Programs Utilities Operating-System Computer Hardware

  13. Views of OS • User View • Ease to use (Home PCs) • Efficient resource utilization (Work stations) • SYSTEM view of OS • OS is a resource allocator Manages all resources (CPU time, memory space, storage space, I/O and so on) Decides between conflicting requests for efficient and fair resource use • OS is a control program Controls execution of programs to prevent errors and improper use of the computer

  14. Views of an Operating System There are three classical views • Resource Manager – manages and allocates resources. • Resource Manager: • Manages and protects multiple computer resources: CPU, Processes, Internal/External memory, Tasks, Applications, Users,etc… • Handles and allocates resources to multiple users or multiple programs running at the same time and space (e.g., processor time, memory, I/O devices). • Decides between conflicting requests for efficient and fair resource use (e.g., maximize throughput, minimize response time). • Control program – controls the execution of user programs and operations of I/O devices. • Command Executer – Provides an environment for running user commands.

  15. Machine Language Hardware • With the advantage of easier programming provided by the OS, the hardware, its machine language and the OS constitutes a new combination called as a virtual (extended) machine. Operating System Virtual (Extended) Machine Machine Language Machine Hardware

  16. In a more simplistic approach, in fact, OS itself is a program. • But it has a priority which application programs don’t have. • OS uses the kernel mode of the microprocessor, whereas other programs use the user mode. • The difference between two is that; all hardware instructions are valid in kernel mode, where some of them cannot be used in the user mode.

  17. DOS (DISK OPERATING SYSTEM)

  18. Introduction to DOS • What is DOS? • DOS stands for Disk Operating System. DOS controls the computer’s hardware and provides an environment for programs to run. • Why You Need DOS?. • DOS controls the flow of information between you and the computer (translator). • DOS allows you to store information on your computer. • DOS allows you to retrieve information stored on your computer.

  19. Components of DOS • DOS is composed of a number of files. • These are IO.SYS, MSDOS.SYS and COMMAND.COM. • The disk which your computer uses to load and run DOS must contain these files and is called the System, or Startup, or Boot, disk.

  20. DOS Commands 1. CD Change Directory Command : • Changes the current directoryEXAMPLES • C:\>cd \ - Changes current directory to the root directory. • C:\>cd .. - Goes up one directory. For example if you are within the C:\WINDOWS\COMMAND> directory this would take you to C:\WINDOWS> 2. DIR (Directory) Command: • The DIRECTORY command lists the names and sizes of all files located on a particular disk. Example: • C:\> dir a: - Shows directory of drive A • C:\> dir \agis - Shows files in a subdirectory on drive C (default) • C:\> dir /w - Shows directory in wide format, as opposed to a vertical listing.

  21. 3.Wildcard Characters ? * • A Wildcard Character is a character which has special meaning. In DOS wildcards are the * (the asterisk) and ? (the question mark ). The question mark represents any single character, and the asterisk a string of characters Example 1: Display only those files in the root of C whose name ends with the .COM extension • DIR C:\ *.COM Example 2: Display those files in the DOS directory which start with DISK, are followed by 4 characters, and have any extension. • DIR C:\DOS\DISK????.*

  22. 4. MKDIR (MD) Make Directory Command: • This command creates a new directory. Example: • C:\> mkdir mine • Creates a directory called 'MINE' 5.RMDIR/RD Remove Directory: • Removes (deletes) a directory. EXAMPLE • C:\> RD C:\WINDOWS\PICTURES- Removes the PICTURES directory . 6. REN Rename Command: • Renames a file/directory or files/directories. EXAMPLE • C:\>ren c:\chope hope - Rename the directory chope to hope. • ren *.txt *.bak - Rename all text files to files with .bak extension.

  23. 7. COPY • Copies one or more files to another location. EXAMPLES • copy *.* a: - This would copy all files in the current directory to the floppy disk in drive a:C:\>copy autoexec.bat c:\windows - Copies autoexec.bat from the current directory to the Windows directory of the C: drive. 8. DELETE • Deletes one or more files. EXAMPLES • C:\>del c:\windows\test.tmp - Deletes test.tmp from the C:\Windows directory (if it exists).C:\>del c:\windows\temp\*.* /P - Deletes all files in the C:\Windows\temp directory, and requires confirmation for each file.

  24. 9. PRINT - prints a text file • The PRINT command allows you to obtain a print-out of a text file. Example : Print two text files • PRINT A:\TEMP-DIR\HELLO.BAK MESSAGE.BAT 10. TREE - displays the directory structure • The TREE command enables the user to obtain a graphical view of the structure of directories and subdirectories on a disk. Example 1: Display the structure of the DOCS directory • TREE C:\DOCS Example 2: Display the directory structure and files of C • TREE C: /F

  25. Thanks……

More Related