Operating System & Application Software
Total Page:16
File Type:pdf, Size:1020Kb
Lecture 4 Operating System & Application Software OS & Application Software OS & Application Software Application Software Operating System Driver Driver Hardware Introduction to Operating Systems Software Component Software Component Applications Operating System – API: application program interface – File management – I/O Drivers – Network MoDule – Kernel • Memory management • Resource scheDuling • Program communication • Security Linux Kernel MoDule Programming - 01 (If interesteD in Kernel programming, see the complete series) Operating System What is an Operating System Operating System hanDles Process & Task Management Interrupt & Exception Handling Memory ADDressing & Management Process ScheDuling & Synchronization File System Examples of Operating Systems Single-user, Single-task: PalmOS Single-user, Multi-task: MS WinDows anD MacOS Multi-user, Multi-task: UNIX, LINUX, WinDows Server 2008/2012 Device Drivers Device Drivers A device driver is a computer program which allows higher-level computer programs to interact with a hardware device. Drivers are hardware-dependent anD operating-system- specific. They usually provide the interrupt handling requireD for any necessary asynchronous time-dependent harDware interface. A device driver simplifies programming by acting as an abstraction layer between a harDware device anD the operating systems that use it. Drivers are usually written by the companies that develop the hardware or by others for free operating systems like Linux. Disk Operating System DOS IBM IntroduceD DOS (Disk Operating System) in 1981. Later many versions like MS-DOS (1982) by Microsoft were introduceD. Text baseD OS All DOS-type operating systems run on machines with the Intel x86 or compatible CPUs, mainly the IBM PC anD compatibles. DOS is a single-user, single-task operating system with basic kernel functions that are non-reentrant: only one program at a time can use them. Disk Operating System DOS DOS consists of two parts, the kernel anD the commanD.com which is the commanD interface. The DOS kernel provides various functions for programs, like displaying characters on-screen, reading a character from the keyboard, accessing disk files anD memory etc. CommanD.com provides the shell or the user anD system commanDs The new Windows versions provide emulated DOS commanD interface (cmD). Windows Operating System WinDows Operating System Microsoft Windows has a significant majority of market share in the desktop anD notebook computer markets Microsoft first introduceD an operating environment nameD Windows in November 1985 as an adD-on to MS-DOS in response to the growing interest in graphical user interfaces (GUIs). It was a 16 Bit OS running on top of DOS providing Multitasking anD GUI Windows 3.0 (1990) anD Windows Workgroup 3.11 (1992) improveD the design anD were 16/32 Bit OS. Windows 3.11 haD Internet Explorer browser as a part of the OS. Later came Windows 95 (1995), Windows 98 (1998) anD Windows ME (2000) which were 32 Bit OS anD useD FAT File System anD supported DOS also. Windows Operating System WinDows Operating System NTFS was introduceD in 1993 as the file system for Windows NT server anD it was later adopted as default File system for all later releases of Windows client anD server OS. Windows NT 4.0 (1996) was a popular server OS which was later replaced by Windows 2000 (2000). NT was the true Multi-User anD Multi-Tasking OS baseD on NTFS File System. Windows XP (2001), Vista (2006), Windows 7 (2010), Windows 8 (2012), Windows Server 2003 (2003), 2008 (2008) anD 2012 (2012) are all available in 32 bit anD 64 bit versions. The most recent client version of Windows is Windows 8; the most recent server version is Windows Server 2012. UNIX Operating System UNIX Operating System Servers generally run on Linux or other Unix-like systems UNIX was designeD as a Multi-User anD Multi- Tasking OS First Version was created in Bell Labs in 1969 Various Proprietary UNIX OS like IBM AIX, SUN Solaris, SGI IRIX, HP HP-UX etc anD public domain OS like various variants of LINUX anD BSD are available Today most of the proprietary OS are also available free anD for x86 platforms also Apple OS Apple Operating System Apple introduceD the Macintosh OS (Mac OS) in 1984 which haD a graphical user interface Various versions have come since then anD the latest version is OS X v10.9 called “Mavericks” Apple OS was baseD on Unix (much like BSD Unix) anD so it has always been more robust anD faster than windows. The processor useD in Apple computers was PowerPC until 2006 when they switched over to Intel platform. Now they are planning to use ARM processors. Multi OS System Multiple Operating System Multi-Boot system Combination of Windows anD Linux is the most popular Generally multi-boot system boots into any one OS at a time. Virtualization software like VMware can be useD to run multiple instances of OS simultaneously on the same physical machine. Boot Loader Boot LoaDer Booting is a process that starts operating systems when the user turns on a computer system. A boot sequence is the initial set of operations that the computer performs when it is switched on. The bootloader typically loads the main operating system for the computer. The bootloader may be multistage In Desktop Computers, the boot process involve running of system BIOS followeD by the seconD stage bootloader like GRUB, BOOTMGR, LILO or NTLDR which is locateD in the boot sector of the boot device or the harD disk. File System File System File system is a methoD for storing anD organizing computer files anD the data they contain to make it easy to finD anD access them. Most file systems make use of an underlying data storage device such as HarD Disks that offers access to an array of fixeD-size blocks which is the smallest logical amount of disk space that can be allocated to hold a file. File systems typically have directories which associate file names with files, usually by connecting the file name to an inDex in a file allocation table of some sort, such as the FAT in a DOS file system, or an inode in a Unix-like file system. File System File System File names are simple strings, anD per-file MetaData is maintained which is the bookkeeping information, typically associated with each file within a file system. MetaData coulD contain file attributes such as file size, data anD time of creation or moDification of the file, owner of the file, access permissions etc. File System Types of File System File system types can be classified into disk file systems, network file systems anD flash file systems. A disk file system is a file system designeD for the storage of files on a data storage device, most commonly a disk drive e.g. FAT, NTFS, ext3, ext4 etc. A network file system is a file system that acts as a client for a remote file access protocol, providing access to files on a server e.g. NFS, SMB etc. A flash file system is a file system designeD for storing files on flash memory devices. File System File System and OS Operating systems provide a file system, as a file system is an integral part of any moDern operating system. Windows Operating system supports FAT anD NTFS File Systems Linux popularly supports ext3 anD ext4 File Systems Other flavors of Operating Systems may support other File Systems like UFS in many UNIX Operating Systems anD HFS in MAC OS X. All Operating Systems provide a user interface like CommanD Line (CLI) or File Browser to access anD manage File System information. DOS/Windows File System FAT The File Allocation Table (FAT) file system was initially developeD for DOS Operating System anD was later useD anD supported by all versions of Microsoft Windows. It was an evolution of Microsoft's earlier operating system MS-DOS anD was the predominant File System in Windows versions like 95, 98, ME etc. All the latest versions of Windows still support FAT file system although it may not be popular. FAT haD various versions like FAT12, FAT16 anD FAT32. Successive versions of FAT were nameD after the number of bits in the table: 12, 16 anD 32. Windows File System NTFS NTFS or the NT File System was introduceD with the Windows NT operating system. NTFS allows ACL-baseD permission control which was the most important feature missing in FAT File System. Later versions of Windows like Windows 2000, Windows XP – Windows 8, Windows Server 2003 - , Windows Server 2008 also use NTFS. NTFS has several improvements over FAT such as security access control lists (ACL) anD file system journaling. Linux File System File System in Linux Linux supports many different file systems, but common choices for the system disk include the ext family (such as ext3 anD ext4), XFS, JFS anD ReiserFS. The ext3/ext4 or thirD/fourth extenDed file system is a journaleD file system anD is the default file system for many popular Linux distributions . It is an upgrade of its predecessor ext2 file system anD among other things it has adDed the journaling feature. A journaling file system is a file system that logs changes to a journal (usually a circular log in a dedicateD area) before committing them to the main file system. Such file systems are less likely to become corrupted in the event of power failure or system crash. References References Operating Systems: http://en.wikipedia.org/wiki/Operating_system Kernel: http://en.wikipeDia.org/wiki/Kernel_%28computing %29 Device Drivers: http://en.wikipedia.org/wiki/Device_driver File Systems: http://en.wikipedia.org/wiki/File_system Assignment 4 Assignment 4 1. If you install Windows and Linux on the same machine, first Windows needs to be installed and then Linux.